Andreas Rumpf
078e78d208
do not produce the annoying small 'l' warning
2017-10-10 21:59:23 +02:00
Andreas Rumpf
eddf9abd13
beginnings of the new nimpretty tool; still unusable
2017-10-05 08:43:22 +02:00
Araq
3ccc9c467d
'with' and 'without' are not keywords anymore
2017-09-30 18:32:44 +02:00
Andreas Rumpf
ee43fc82d5
bugfix: keep the information of a raw float literal in the AST
2017-07-06 13:52:21 +02:00
Andreas Rumpf
b652b3cd52
remove en-dash from the language
2017-04-02 15:21:10 +02:00
Andreas Rumpf
f162ff7773
nimsuggest: make tdot1 test case green again
2017-03-14 10:28:50 +01:00
Andreas Rumpf
4912300ca7
Merge branch 'devel' into faster-nimsuggest
2017-03-14 10:18:20 +01:00
Andreas Rumpf
c5566f7c37
nimsuggest: make 'con' work again
2017-03-10 13:20:32 +01:00
Andreas Rumpf
db888475dc
nimsuggest: make tests green again
2017-03-10 09:57:36 +01:00
Araq
57ea01309e
nimsuggest: more things work
2017-03-09 17:09:39 +01:00
Araq
4755795416
nimsuggest: more precise cursor tracking
2017-03-09 14:58:14 +01:00
Araq
0f63c101e4
fixes nimsuggest bug #45
2017-03-08 13:21:40 +01:00
Araq
1887390b0f
nimsuggest: fixes nimsuggest bug #45 ; do not show suggestions in string literals or comments
2017-03-08 12:53:21 +01:00
Araq
773d17cd14
big refactoring: step 1
2016-10-31 15:34:44 +01:00
Araq
6ade7c0e0d
adapting the lexer for curlysyn
2016-10-12 17:52:29 +02:00
Jacek Sieka
3cd4cf4320
remove unused stuff
2016-08-09 22:54:27 +08:00
Andreas Rumpf
39ebe2175b
compiler almost free of deprecated expr/stmt names
2016-07-30 16:34:42 +02:00
Andreas Rumpf
84c3830c6b
fixes #4301
2016-07-12 02:14:26 +02:00
Andreas Rumpf
56f99f56ac
fixes edge cases in the lexer
2016-07-12 01:05:52 +02:00
Parashurama
8ce9739f11
adds support for unicode hexcode in string literals.
2016-06-01 23:36:46 +02:00
Araq
724cd631d8
allow tabs in multi-line comments
2016-05-10 22:03:07 +02:00
Jacek Sieka
298620c267
avoid overwriting token.indent in lexer.getNumber
...
if it wasn't for bug #3978 , assignment from getNumber would overwrite
tok.indent (which is set at top of rawGetTok, but not in getNumber)
2016-03-18 23:02:10 +08:00
Andreas Rumpf
c9966a3e17
use 'using' instead of 'sig' keyword; cleans up new features a bit
2016-02-29 12:19:54 +01:00
Andreas Rumpf
38dee2095c
added 'sig' feature; removed tfShared support in the compiler
2016-02-28 19:56:41 +01:00
Andreas Rumpf
3114523a6f
fixes multi-line comments
2016-01-17 23:46:23 +01:00
Andreas Rumpf
71cf1f650e
fixes multiline comments
2016-01-17 21:42:13 +01:00
Andreas Rumpf
a4aeb6fbec
implements final version of multiline comments
2016-01-17 20:29:50 +01:00
Andreas Rumpf
2e71bd50b2
implements multi-line-comments; pounds are stripped from the doc comments
2016-01-16 21:40:54 +01:00
Araq
edb495a6b3
fixes a critical error handling bug for nimsuggest
2015-11-18 12:33:09 +01:00
Araq
8d39669233
fixes #2909
2015-06-15 00:56:20 +02:00
Oscar Campbell
3998220f86
Non-base10 overflow allowed if bit-stable. Tests.
2015-06-12 13:45:14 +02:00
Oscar Campbell
a723362d85
Fix bug #1179 + some more found while testing.
...
- The char(-1) < char(0) is not covered in this PR - different beast.
- Additionally to #1179 , I found that non base-10 literals wheren't bounds checked at all.
2015-06-12 13:45:14 +02:00
pdw
9764ba933b
Dropped 'T' from types
2015-06-04 13:15:07 +02:00
Andreas Rumpf
51488ebd12
Merge pull request #2848 from ozra/bugfix-2523-number-literal-lexing
...
Bugfix #2523 number literal lexing
2015-06-04 11:40:00 +02:00
Oscar Campbell
44b0bf59d9
Change const def to cleaner code per suggestion.
2015-06-02 22:22:27 +02:00
Oscar Campbell
dd30bab480
Restructure branching slighty. Fix error message.
2015-06-01 23:49:04 +02:00
Oscar Campbell
4a1e45e3f8
Remove forgotten debug echo statement.
2015-05-31 03:11:44 +02:00
Oscar Campbell
6a43b0e817
Clean up to compiler style. Refine error-msg for illegal octal 'O'
2015-05-31 02:55:06 +02:00
Oscar Campbell
1b4db5a34c
Implement #2811 - Unicode en-dash (U+2013) as hump/snake alt.
2015-05-31 01:31:06 +02:00
Oscar Campbell
49b953533a
Fix #2523 - first commit. Needs some cleanup.
2015-05-31 00:56:27 +02:00
Araq
6ca38472a1
cleanups for underscores in tuple unpacking
2015-04-24 13:08:42 +02:00
Andreas Rumpf
6a016743aa
Merge pull request #2566 from nanoant/parser-diagnostic-location
...
Parser: Fix location (line, col) for diagnostics
2015-04-24 12:33:11 +02:00
Dominik Picheta
9e69e4e078
Merge branch 'devel' into underscore-tuple-unpack
...
Conflicts:
compiler/semstmts.nim
2015-04-23 00:26:17 +01:00
Adam Strzelecki
07b13251d1
Parser: Fix location (line, col) for diagnostics
...
Previously parser was using lexMessage which was taking location from current
buffer position which was pointing after recently consumed token. But since
parser shows diagnostics about that token it should point to the location where
token starts.
This makes diagnostics like: `test.nim(2, 2) Error: ':' expected` point
properly at the beginning of the wrong token.
2015-04-21 11:32:13 +02:00
Araq
10c1d7f519
minor lexer cleanups; fixes #2504
2015-04-10 14:03:48 +02:00
Dominik Picheta
ea505f3613
Get rid of tkUnderscore. Map _ to tkSymbol.
2015-04-08 20:08:45 +01:00
Dominik Picheta
b38eb2e2a8
Implements #2154 .
...
When unpacking tuples in var/let declarations a part of the tuple can now
be discarded using a single underscore.
2015-03-31 00:39:23 +01:00
Araq
f6ff01572e
breaking change: 'concept' is now a keyword and used instead of 'generic'
2015-03-23 13:10:18 +01:00
Araq
3bfcfeb0cf
don't use stdout for nimsuggest server mode
2015-02-27 16:44:55 +01:00
Federico Ceratto
657dca5c3b
Fix typos
2015-02-15 16:20:32 +00:00