summary refs log tree commit diff stats
path: root/nimsuggest
Commit message (Collapse)AuthorAgeFilesLines
* move assertions and iterators out of system.nim (#10597)Miran2019-03-072-3/+2
| | | | | * move assertions and iterators out of system.nim * limit nimsuggest tests to the first 3 suggestions
* nimsuggest: make use project file name if none given for 'sug' command; ↵Andreas Rumpf2019-03-041-4/+8
| | | | allows for more convenient debugging
* StringStream and parseJson, parseCfg, parseSql et al for the vm (#10746)Arne Döring2019-02-281-30/+25
|
* better docs: osproc (#10708)Miran2019-02-192-3/+3
| | | | | * better docs: osproc * fix a typo in the docs, deprecate "demon"
* document proper imports, fixes #8164 (#10698)Miran2019-02-191-0/+2
|
* compiler/types: correctly generates signature for non-proc types (#10658)alaviss2019-02-131-0/+12
| | | | This makes signatures generated for nimsuggest correctly distinguish template/macro/converter from proc.
* nimsuggest: only log when logging is enabled (#10646)alaviss2019-02-131-2/+2
| | | fixes #6199
* compiler/[msgs, suggest]: improve highlighter accuracy (#10496)alaviss2019-02-072-0/+21
| | | | | | | | | | Previously the compiler would generate suggestions based on the symbol identifier length, but that might not reflect the actual representation of it within the actual source code. This commit implements a simple source scanner for the suggest module to address the problem outlined above. Fixes nim-lang/nimsuggest#24
* suggest: quote operators and keywords on suggestion (#10460)alaviss2019-01-281-0/+10
|
* semcall: correct lineinfo for accquoted symbols (#10461)alaviss2019-01-271-0/+2
|
* compiler/sem: correct macros lineinfo (#10438)alaviss2019-01-241-0/+13
| | | | | | | | | The compiler believes these are where a macro call starts (marked with `^`): m "string" ^ ^ This commit addresses that.
* compiler/sem*: better lineinfo for templates (#10428)alaviss2019-01-233-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * compiler/sem*: better lineinfo for templates Lineinfo for templates is inconsistant across the compiler, for example: doAssert true ^ ^ a[int](10) ^^ ^ The `^` marks where the compiler thinks the template starts. For qualified call, we got the same situation with `proc`s before #10427: system.once ^ Generics lineinfo within template declaration is also incorrect, for example, this is where the compiler believes the `T` in `[T]` is: template a[T](b: T) ^ This PR addresses all of these problems. * nimsuggest: add tests for template highlighting
* nimsuggest/tester: disable highlight tests for epc (#10426)alaviss2019-01-233-2/+4
| | | | The EPC backend of nimsuggest currently doesn't support nimsuggest highlighter, see nim-lang/nim-mode#140
* compiler/sem*: improve lineinfo for qualified and generic procs (#10427)alaviss2019-01-232-0/+27
| | | | | | | | | | | | | | | | Previously the compiler will believe these are where `newSeq` symbol starts: newSeq[int]() ^ system.newSeq[int]() ^ This commit moves them back to: newSeq[int]() ^ system.newSeq[int]() ^
* Correct lineinfo for accent quoted symbols in proc definition (#10399)alaviss2019-01-211-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* nimsuggest: add an option to bind to a free port (#10328)alaviss2019-01-161-2/+15
|
* fixes nim-lang/nimsuggest#76 (#10093)alaviss2018-12-252-2/+30
| | | | | | | | * nimsuggest: prevent out-of-bound access * fixes nim-lang/nimsuggest#76 * undo tester changes
* Moved some code around in nimsuggest to avoid crash when run as library (#9818)PMunch2018-12-011-8/+22
| | | | | | | | * Moved some code around in nimsuggest to avoid crash when run as library * Moved the common executecallback setting to a procedure * Fixed slight issue
* Made nimsuggest importable as a library and add Nim-path override option (#9784)PMunch2018-11-231-1/+100
| | | | | | * Made nimsuggest importable as a library and add Nim-path override option * Remove leftover debug output
* nimsuggest: fixes #96Timothee Cour2018-11-201-2/+3
|
* refs #9637 ; cleanup installation of nimsuggest (#9703)Timothee Cour2018-11-151-1/+0
|
* remove ---path:"../compiler" from nimsuggest/nimsuggest.nim.cfgTimothee Cour2018-11-071-1/+0
|
* compiler refactoring; use typesafe path handing; docgen: render symbols ↵Andreas Rumpf2018-09-071-18/+21
| | | | between modules
* make config.nims behave like nim.cfg in terms of where these scripts are ↵Timothee Cour2018-08-301-48/+25
| | | | | | | | | searched / run (#8682) * run project config.nims if exists, then inputfile.nims if exists * ~/.config/nim/config.nims can now be used * also check in getSystemConfigPath for config.nims * refactor handleCmdLine for nim and nimsuggest
* add nim c -r nimsuggest/tester to travis (#8805)Timothee Cour2018-08-299-2/+26
|
* make more tests greenAndreas Rumpf2018-08-131-3/+3
|
* cleanup nimsuggest tests a bitAndreas Rumpf2018-08-103-11/+11
|
* implements a --nep1:on switch to make the compiler enforce the naming ↵Andreas Rumpf2018-06-131-1/+0
| | | | conventions outlined in NEP-1
* incremental compilation: implemented basic replay logicAndreas Rumpf2018-06-021-16/+16
|
* compiler API: final cleanups; improve security by diabling 'gorge' and friendsAndreas Rumpf2018-05-292-4/+8
|
* vm now free of global variablesAndreas Rumpf2018-05-281-1/+1
|
* refactoring: remove idents.legacy global variable and pass the IdentCache ↵Andreas Rumpf2018-05-271-1/+1
| | | | around explicitly
* remove more global variables in the Nim compilerAndreas Rumpf2018-05-271-33/+32
|
* preparations of making compiler/msgs.nim free of global variablesAndreas Rumpf2018-05-171-6/+6
|
* make nimsuggest compile againAndreas Rumpf2018-05-141-10/+10
|
* make nimsuggest compile againAndreas Rumpf2018-05-131-69/+77
|
* .experimental can now be used to enable specific featuresAndreas Rumpf2018-04-241-4/+4
|
* include help short option in processCmdLine (#7515)skilchen2018-04-061-1/+1
|
* nimsuggest: do not execute the .nims file when requested to auto-complete itAraq2018-03-221-3/+3
|
* Fixed printing nimsuggest commandline help message (#6863)pqflx32017-12-021-0/+3
|
* fixes #6707; nimsuggest tests still not greenAndreas Rumpf2017-11-086-8/+7
|
* Remove more usages of unary lt (fixes #6634) (#6641)Fabian Keller2017-10-311-1/+1
| | | | | | * fixes #6634 * remove more usages of unary <
* Fix spelling error (#6349)Federico Ceratto2017-09-151-1/+1
|
* attempt to make nimsuggest work with choosenimAndreas Rumpf2017-05-111-0/+2
|
* minor update for nimsuggestAndreas Rumpf2017-04-062-2/+3
|
* Make nimsuggest quit when pressing Ctrl-D from the command line. (#5662)Arne Döring2017-04-061-0/+1
|
* nimsuggest: die with a project dir/file that doesn't existAraq2017-03-211-0/+4
|
* nimsuggest: when invoked with a directory, detect the main nim file on its ownAndreas Rumpf2017-03-141-1/+7
|
* nimsuggest: suggest types in a type sectionAndreas Rumpf2017-03-141-0/+15
|
* nimsuggest: make test green againAndreas Rumpf2017-03-141-2/+2
|