Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | init checks and 'out' parameters (#14521) | Andreas Rumpf | 2020-06-23 | 1 | -1/+5 |
| | | | | | | | | | | | * I don't care about observable stores * enforce explicit initializations * cleaner code for the stdlib * stdlib: use explicit initializations * make tests green * algorithm.nim: set result explicitly * remove out parameters and bring the PR into a mergable state * updated the changelog | ||||
* | improve the parser's error message | Araq | 2020-06-19 | 1 | -1/+1 |
| | |||||
* | parser.nim: minor refactorings (#14540) | Andreas Rumpf | 2020-06-01 | 1 | -9/+6 |
| | |||||
* | make `from` an operator (#14241) | hlaaftana | 2020-05-08 | 1 | -3/+5 |
| | |||||
* | make case-object transitions explicit, make unknownLineInfo a const, replace ↵ | Jasper Jenkins | 2020-01-17 | 1 | -9/+9 |
| | | | | a few magic numbers with consts (#13170) | ||||
* | fixes #10665 (#13141) [backport] | Andreas Rumpf | 2020-01-14 | 1 | -22/+26 |
| | |||||
* | Cosmetic compiler cleanup (#12718) | Clyybber | 2019-11-28 | 1 | -191/+190 |
| | | | | | | | | | | | | | | | | | | * Cleanup compiler code base * Unify add calls * Unify len invocations * Unify range operators * Fix oversight * Remove {.procvar.} pragma * initCandidate -> newCandidate where reasonable * Unify safeLen calls | ||||
* | Fix spellings (#12277) [backport] | Federico Ceratto | 2019-09-27 | 1 | -1/+1 |
| | |||||
* | nimpretty: fixes #11616 | Araq | 2019-07-18 | 1 | -6/+27 |
| | |||||
* | [refactoring] remove unused imports in the compiler and in some stdlib modules | Araq | 2019-07-18 | 1 | -1/+1 |
| | |||||
* | styleCheck: make the compiler and large parts of the stdlib compatible with ↵ | Araq | 2019-07-10 | 1 | -3/+3 |
| | | | | --styleCheck:error | ||||
* | nimpretty: nimpretty now understands splitting newlines | Araq | 2019-07-04 | 1 | -4/+13 |
| | |||||
* | [bugfix] fix #11469, new rules for a newline in nimpretty (#11512) | Miran | 2019-06-26 | 1 | -0/+2 |
| | | | | | * [bugfix] fix #11469, new rules for a newline in nimpretty * concatenate two lines if they have the same indentation level | ||||
* | [bugfix] nimpretty: fixes #11468 | Araq | 2019-06-13 | 1 | -2/+6 |
| | |||||
* | nimpretty: smart tabs support, fixes #9399 [bugfix] | Andreas Rumpf | 2019-06-10 | 1 | -21/+34 |
| | |||||
* | nimpretty: fixes #10295 | Araq | 2019-06-07 | 1 | -0/+2 |
| | |||||
* | revert parser stmtListExpr (#11007) | cooldome | 2019-04-17 | 1 | -19/+9 |
| | | | | | | | | | | | | | | | | | * Revert "Support for stmtListExpr in parser after major keywords. Scaled down version. (#10852)" This reverts commit 862897dc0f122e374c0e4d44770ffcd8825e51e3. * redo fix for #4035 * render stmtlistExpr using semicolon * Revert "render stmtlistExpr using semicolon" This reverts commit cafb78b8d5b125b5f6ba94248377a1433b3138cb. * revert test | ||||
* | relax warning about inconsistent spacing (#10968) | Miran | 2019-04-05 | 1 | -1/+1 |
| | | | | | | Now the warning is raised only in the cases when there is an inconsistency in the style (spacing vs no spacing): * if a> b --> warning * if a > b --> no warning | ||||
* | fixes #10896 (#10903) | Andreas Rumpf | 2019-03-25 | 1 | -1/+3 |
| | |||||
* | fixes #10861 (#10877) | cooldome | 2019-03-21 | 1 | -2/+3 |
| | |||||
* | REVERT "optPar" | Andrii Riabushenko | 2019-03-21 | 1 | -3/+2 |
| | | | | This reverts commit 5f1a59216bb79684a5c708978cded1c5d5140574. | ||||
* | optPar | Andrii Riabushenko | 2019-03-21 | 1 | -2/+3 |
| | |||||
* | Support for stmtListExpr in parser after major keywords. Scaled down ↵ | cooldome | 2019-03-18 | 1 | -10/+21 |
| | | | | | | | version. (#10852) * Support for stmtListExpr in parser after major keywords * fixes #4035 | ||||
* | fixes #10838 (#10841) | cooldome | 2019-03-18 | 1 | -0/+2 |
| | | | | | | * fixes #10838 * reject func in types instead * trigger tests | ||||
* | Tuple unpacking now works for `for` vars (#10152) | Neelesh Chandola | 2019-02-23 | 1 | -15/+24 |
| | | | | | | | | * Tuple unpacking now works for `for` vars * Give error if length of tuple vars != length of tuple * Fix error message showing wrong tuple length * unpacking now works now for mutable items * Update changelog | ||||
* | gc: destructors is beginning to work (#10483) | Andreas Rumpf | 2019-01-29 | 1 | -26/+22 |
| | | | | | | | | | | | | | | | | * kochdocs.nim: code cleanup * docgen: nicer indentation * parser.nim: code cleanup * fixes #10458 * make tests green again * make =destroy mixins * gc:destructors: produced C code is almost working * --gc:destructors simple program compiles (but leaks memory) * gc:destructors make examples compile in C++ mode * destructors: string implementation bugfixes * strs.nim: minor code cleanup * destructors: builtin seqs are beginning to work * remove debugging helpers | ||||
* | Correct lineinfo for accent quoted symbols in proc definition (#10399) | alaviss | 2019-01-21 | 1 | -1/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * compiler/parser: preserve lineinfo for accent quoted symbols Previously the lineinfo for symbol $$$ in this example is: proc `$$$` ^ After this commit: proc `$$$` ^ * compiler/semstmts: correct lineinfo for accent quoted idents Previously nimsuggest would highlight this as: proc `$$$` ^~~ After this commit: proc `$$$` ^~~ * nimsuggest/tests: add a test for accent quoted proc Disabled by default | ||||
* | Deprecate gc v2 (#10151) | Neelesh Chandola | 2019-01-01 | 1 | -2/+2 |
| | | | | | | * Deprecate gc v2 * warnDeprecated now has custom messages | ||||
* | Deprecated pragma is now supported on enum fields (#10113) | Neelesh Chandola | 2018-12-30 | 1 | -11/+21 |
| | | | | | | * {.deprecated.} pragma is now supported for enum fields * Add tests * Simplify code | ||||
* | Pragma syntax is now consistent (#9993) | Neelesh Chandola | 2018-12-27 | 1 | -3/+34 |
| | | | | | | | | | | * Give deprecation warning when type pragmas do not follow the type name * pragma before generic parameter list in type definition is now deprecated * Update changelog * Fix bug where deprecated warning was being shown even though no generic param list was present * Fix bug * Use errGenerated * Best attempt at writing the grammar | ||||
* | much simpler implementation of constant tuple declarations | Andreas Rumpf | 2018-12-19 | 1 | -37/+17 |
| | |||||
* | Const tuple unpacking (#9964) | Neelesh Chandola | 2018-12-19 | 1 | -9/+31 |
| | | | | | | | | | | * tuple unpacking is now supported for consts * Move nkConstTuple to the end of TNodeKind * Add nnkConstTuple in macros.nim * Fix Formatting | ||||
* | nimpretty: explicit --indent option; fixes #9502; refs #9510 [backport] | Andreas Rumpf | 2018-11-11 | 1 | -1/+1 |
| | |||||
* | er... 'a not b' is an infix call | Andreas Rumpf | 2018-11-08 | 1 | -1/+1 |
| | |||||
* | fixes parsing regressions; binary 'not' for 'not nil' must stay | Andreas Rumpf | 2018-11-08 | 1 | -2/+17 |
| | |||||
* | fixes #9633 | Andreas Rumpf | 2018-11-08 | 1 | -5/+8 |
| | |||||
* | parser/grammar sync; fixes #9608 [backport] | Andreas Rumpf | 2018-11-07 | 1 | -1/+1 |
| | |||||
* | compiler cleanup: flag tfOldSchoolExprStmt is gone | Araq | 2018-11-06 | 1 | -2/+0 |
| | |||||
* | removed the undocumented #? strongSpaces parsing mode | Araq | 2018-11-06 | 1 | -11/+7 |
| | |||||
* | Maps `out` keyword to an nnkIdent. Fixes #6011. (#9536) | Dominik Picheta | 2018-10-29 | 1 | -2/+1 |
| | |||||
* | nimpretty: add #!nimpretty on/off directives | Andreas Rumpf | 2018-10-16 | 1 | -2/+2 |
| | |||||
* | nimpretty: fixes #8626 | Andreas Rumpf | 2018-10-16 | 1 | -0/+2 |
| | |||||
* | Add checks for except: body blocks (#9191) | Dheepak Krishnamurthy | 2018-10-09 | 1 | -1/+0 |
| | |||||
* | parser.nim: minor code style fix | Andreas Rumpf | 2018-09-16 | 1 | -1/+1 |
| | |||||
* | Merge branch 'devel' into araq-better-docgen | Araq | 2018-09-14 | 1 | -18/+21 |
|\ | |||||
| * | fixes merge conflicts | Andreas Rumpf | 2018-09-11 | 1 | -157/+234 |
| |\ | |||||
| * | | steps to get for loops as expressions | Andreas Rumpf | 2018-02-28 | 1 | -18/+21 |
| | | | |||||
* | | | compiler refactoring; use typesafe path handing; docgen: render symbols ↵ | Andreas Rumpf | 2018-09-07 | 1 | -3/+4 |
| |/ |/| | | | | | between modules | ||||
* | | Renderer bug fixes (#8804) | cooldome | 2018-09-07 | 1 | -35/+0 |
| | | | | | | | | | | | | Fixes #8763: render bug: pure enums not handled correctly Fixes #8762: render bug: binary operators called with quotes rendered incorrectly FIxes #8761: render bug: inversion of operator priorities | ||||
* | | Cosmetic: fix typo on TRIPLESTR_LIT (#8663) | Iván Montes | 2018-08-21 | 1 | -1/+1 |
| | |