Files
Nim/nimsuggest/tests/tsetter_highlight.nim
alaviss 2fdf816332 compiler/[msgs, suggest]: improve highlighter accuracy (#10496)
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
2019-02-07 17:08:15 +01:00

11 lines
188 B
Nim

proc `a=`(a, b: int) = discard
10.a = 1000#[!]#
discard """
$nimsuggest --tester $file
>highlight $1
highlight;;skProc;;1;;6;;2
highlight;;skType;;1;;16;;3
highlight;;skProc;;2;;5;;1
"""