-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix nimsuggest highlight for import statements
This fixes there being no syntax highlighting for the following import forms (highlighted region indicated by parentheses): - import module/name/with/(slashes) - import (mod) as alias - import basemod/[ (sub1), (sub2) ]
- Loading branch information
1 parent
abcf45e
commit aa3f0c1
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import std/paths | ||
import json as J | ||
import std/[os,streams]#[!]# | ||
|
||
discard """ | ||
$nimsuggest --tester $file | ||
>highlight $1 | ||
highlight;;skModule;;1;;11;;5 | ||
highlight;;skModule;;2;;7;;4 | ||
highlight;;skModule;;3;;12;;2 | ||
highlight;;skModule;;3;;15;;7 | ||
""" |