Files
Nim/nimsuggest/tests/top_highlight.nim
alaviss 77834f0fda 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.
2020-04-20 11:54:53 +02:00

12 lines
166 B
Nim

import json
%*{}#[!]#
discard """
$nimsuggest --tester $file
>highlight $1
highlight;;skModule;;1;;7;;4
highlight;;skMacro;;3;;0;;2
highlight;;skMacro;;3;;0;;2
"""