mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 04:02:41 +00:00
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
12 lines
197 B
Nim
12 lines
197 B
Nim
proc a: int = 0
|
|
e_c_h_o#[!]#
|
|
|
|
discard """
|
|
$nimsuggest --tester $file
|
|
>highlight $1
|
|
highlight;;skProc;;1;;5;;1
|
|
highlight;;skType;;1;;8;;3
|
|
highlight;;skResult;;1;;0;;0
|
|
highlight;;skProc;;2;;0;;7
|
|
"""
|