summary refs log tree commit diff stats
path: root/tests/lexer
Commit message (Collapse)AuthorAgeFilesLines
* fix dot calls with resolved symbols in templates (#22076)metagn2023-06-121-23/+15
| | | | | | | | | | | | | * fix dot calls with resolved symbols in templates * make old code work * fix custom number literals test * remove leftover debug marker * enable "bug 9" test too * fix renderer, add test for #7085
* some test cleanups & category reorganization (#22010)metagn2023-06-061-0/+10
| | | | | | | | | | | | | | | | | * clean up some test categories * mention exact slice issue * magics into system * move trangechecks into overflow * move tmemory to system * try fix CI * try fix CI * final CI fix
* int64/uint64 as bigint in JS (#21613)metagn2023-04-111-1/+3
| | | | | | | | | | | * int64/uint64 as bigint in JS * fix CI * convert to compile option * fix lie * smaller diff, changelog entry
* fixes #15688; handle `strongSpace` overflow issues (#20724)ringabout2022-11-031-0/+2
| | | | | | | * fixes #15688; handle `strongSpace` overflow issues * stop at 1 * change the type of strongSpaceA to bool
* Unicode Operators are no longer experimental (#20444)ringabout2022-09-281-1/+0
| | | | | | | | | * Unicode Operators are no longer experimental * fixes tests * Update doc/manual.md Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* unicode operator bugfixes (#18802)Andreas Rumpf2021-09-041-1/+3
|
* implemented Unicode operators (#18789)Andreas Rumpf2021-09-032-0/+15
| | | | | | | | | | | | | | | * implemented Unicode operators; refs https://github.com/nim-lang/RFCs/issues/388 * bugfix * better test * arguably more elegant implementation * Update changelog.md Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* typo: nonexistant => nonexistent (#17918)Timothee Cour2021-05-021-2/+2
| | | | | * typo: nonexistant => nonexistent * fix test (ordering differs because of https://github.com/nim-lang/Nim/issues/17910)
* unify tuple expressions (#13793)Arne Döring2021-03-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * unify tuple expressions * fix test * fix test * apply feedback * Handle empty tuples * Fix rendering named unary tuple * Protect static NimNode against stripping * Slightly less hacky * Revert "Slightly less hacky" This reverts commit 170c5aec0addc029f637afbc948700ca006b7942. * Slightly less hacky * Cleanup * Fix test * Fix another test * Add condsym * Rebase fallout * changelog: Move from compiler changes to language changes * Add stricter tests * Add empty tuple example to doc/astspec * Fix test Co-authored-by: Clyybber <darkmine956@gmail.com>
* followup custom literals (#17500)Timothee Cour2021-03-273-18/+80
|
* custom integer literals bugfixes (#17499)Andreas Rumpf2021-03-241-0/+3
| | | | | * custom integer literals bugfixes * make nimsuggest compile again
* custom integer literals (#17489)Andreas Rumpf2021-03-244-26/+160
| | | | | | | * user defined integer literals; refs #17020 * updated renderer.nim * use mlexerutils helper * imported all test cases from https://github.com/nim-lang/Nim/pull/17020 * final grammar updated
* make unary minus part of number literals, refs #17020 (#17488)Andreas Rumpf2021-03-241-0/+76
| | | | * make unary minus part of number literals, refs #17020 * fixes regression
* use doAssert in tests (#16486)flywind2020-12-281-7/+7
|
* megatest: make it green on LinuxAraq2018-12-111-2/+1
|
* require errormsg to be specified before file.Arne Döring2018-12-117-14/+6
|
* updated tests to be executedArne Döring2018-11-231-1/+13
|
* Unicode escape in string literals (#9390)Oscar Nihlgård2018-10-171-3/+3
|
* make tests green againAndreas Rumpf2018-07-051-1/+1
|
* Deprecate 'c', 'C' prefix for octal literals, fixes #8082 (#8178)Vindaar2018-07-032-0/+16
| | | | | | | | | | | | | | | * deprecate `0c`, `0C` prefix for octal literals Deprecates the previously allowed syntax of `0c` and `0C` as a prefix for octal literals to bring the literals in line with the behavior of `parseOct` from parseutils. * add `msgKind` arg to `lexMessageLitNum` for deprecation messages * change literal tests to check all valid integer literals Also adds the `tinvaligintegerlit3` test to test for the (still) invalid `0O` prefix.
* Lexer: do not accept some invalid integer literals (#8089)Hiroki Noda2018-06-272-0/+14
| | | | | | * Lexer: do not accept some invalid integer literals * Use Natural instead of uint, and result variable
* A minimal patch enabling the new typedesc and static types syntaxZahary Karadjov2018-06-161-1/+1
|
* Combine some of the lexer tests into a single fileOscar Nihlgård2018-06-053-20/+27
|
* make tests green againAraq2018-05-141-1/+1
|
* make tests green againAndreas Rumpf2017-11-051-2/+2
|
* Remove expr/stmt (#5857)Arne Döring2017-07-251-4/+2
|
* adds support for unicode hexcode in string literals.Parashurama2016-06-011-1/+5
|
* tests: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-047-75/+75
| | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* renamed writeln to writeLine in testspatrick dw2015-06-191-2/+2
|
* new tester; all tests categorizedAraq2014-01-139-0/+215