mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 06:18:51 +00:00
Currently, I don't have syntax highlighting (+ no/wrong jump-to-definition) for some import statement forms, namely: - `import module/name/with/(slashes)` - `import (mod) as alias` - `import basemod/[ (sub1), (sub2) ]` With this patch, highlight/def will work for the regions indicated by parentheses.
13 lines
240 B
Nim
13 lines
240 B
Nim
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
|
|
"""
|