Commit graph

176 commits

Author SHA1 Message Date
Andreas Rumpf
33b69f0ed0 refactoring: make FileIndex a distinct type; make line information an uint16; fixes #7654 2018-04-21 08:13:37 +02:00
Araq
9bc963508f nimpretty: next steps 2018-04-18 21:30:38 +02:00
Araq
a230307b48 little progress on nimpretty 2018-04-18 21:30:38 +02:00
Araq
212fdc5946 added the 'x.p[:T]' notation for explicit generic instantiations in combination with the ddot calling syntax 2018-04-06 22:05:57 +02:00
Araq
7206c692a3 in triple line string literals the newline should be '\n' too 2018-01-28 11:38:25 +01:00
Andreas Rumpf
80caca15bd fixes #7089 2018-01-24 20:08:17 +01:00
Andreas Rumpf
416a322efb added lexer.newlineFollows for parser experiments 2017-11-29 11:00:25 +01:00
Andreas Rumpf
cae5e33a4a language change: 'generic' and 'atomic' are not keywords anymore 2017-11-21 11:27:35 +01:00
Andreas Rumpf
70ea45cdba deprecated unary '<' 2017-10-29 08:37:13 +01:00
Araq
604a15c0aa some progress on the nimpretty tool; still not ready 2017-10-16 00:59:51 +02:00
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