compiler/suggest: highlight squashed operators (#11796)
The operator fetching proc is greedy, so operators such as `%*` in
expression `%*{}` can't be highlighted.
This commit fixes that.
This commit is contained in:
parent
e6cf11351d
commit
77834f0fda
2 changed files with 18 additions and 3 deletions
11
nimsuggest/tests/top_highlight.nim
Normal file
11
nimsuggest/tests/top_highlight.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import json
|
||||
|
||||
%*{}#[!]#
|
||||
|
||||
discard """
|
||||
$nimsuggest --tester $file
|
||||
>highlight $1
|
||||
highlight;;skModule;;1;;7;;4
|
||||
highlight;;skMacro;;3;;0;;2
|
||||
highlight;;skMacro;;3;;0;;2
|
||||
"""
|
||||
Loading…
Add table
Add a link
Reference in a new issue