nimsuggest: more precise cursor tracking

This commit is contained in:
Araq 2017-03-09 14:58:14 +01:00
commit 4755795416
24 changed files with 104 additions and 81 deletions

View file

@ -1,9 +0,0 @@
discard """
$nimsuggest --tester lib/pure/strutils.nim
>def lib/pure/strutils.nim:2300:6
def;;skTemplate;;system.doAssert;;proc (cond: bool, msg: string): typed;;*/lib/system.nim;;*;;9;;"same as `assert` but is always turned on and not affected by the\x0A``--assertions`` command line switch.";;100
"""
# Line 2300 in strutils.nim is doAssert and this is unlikely to change
# soon since there are a whole lot of doAsserts there.