mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 03:02:31 +00:00
The operator fetching proc is greedy, so operators such as `%*` in
expression `%*{}` can't be highlighted.
This commit fixes that.
12 lines
166 B
Nim
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
|
|
"""
|