suggest: quote operators and keywords on suggestion (#10460)

This commit is contained in:
alaviss 2019-01-28 15:29:49 +07:00 • committed by Andreas Rumpf
commit 74a7b09412
2 changed files with 16 additions and 2 deletions

View file

@ -0,0 +1,10 @@
proc `%%%`(a: int) = discard
proc `cast`() = discard
tsug_accquote.#[!]#
discard """
$nimsuggest --tester $file
>sug $1
sug;;skProc;;tsug_accquote.`%%%`;;proc (a: int);;$file;;1;;5;;"";;100;;None
sug;;skProc;;tsug_accquote.`cast`;;proc ();;$file;;2;;5;;"";;100;;None
"""