Merge pull request #42 from rhysd/highlight-result
Added highlight for special variable 'result'
This commit is contained in:
commit
d72da053ce
1 changed files with 9 additions and 0 deletions
|
|
@ -19,12 +19,16 @@ endif
|
||||||
if !exists("nim_highlight_space_errors")
|
if !exists("nim_highlight_space_errors")
|
||||||
let nim_highlight_space_errors = 1
|
let nim_highlight_space_errors = 1
|
||||||
endif
|
endif
|
||||||
|
if !exists("nim_highlight_special_vars")
|
||||||
|
let nim_highlight_special_vars = 1
|
||||||
|
endif
|
||||||
|
|
||||||
if exists("nim_highlight_all")
|
if exists("nim_highlight_all")
|
||||||
let nim_highlight_numbers = 1
|
let nim_highlight_numbers = 1
|
||||||
let nim_highlight_builtins = 1
|
let nim_highlight_builtins = 1
|
||||||
let nim_highlight_exceptions = 1
|
let nim_highlight_exceptions = 1
|
||||||
let nim_highlight_space_errors = 1
|
let nim_highlight_space_errors = 1
|
||||||
|
let nim_highlight_special_vars = 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
syn region nimBrackets contained extend keepend matchgroup=Bold start=+\(\\\)\@<!\[+ end=+]\|$+ skip=+\\\s*$\|\(\\\)\@<!\\]+ contains=@tclCommandCluster
|
syn region nimBrackets contained extend keepend matchgroup=Bold start=+\(\\\)\@<!\[+ end=+]\|$+ skip=+\\\s*$\|\(\\\)\@<!\\]+ contains=@tclCommandCluster
|
||||||
|
|
@ -138,6 +142,10 @@ if nim_highlight_space_errors == 1
|
||||||
syn match nimSpaceError display "\t"
|
syn match nimSpaceError display "\t"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if nim_highlight_special_vars
|
||||||
|
syn keyword nimSpecialVar result
|
||||||
|
endif
|
||||||
|
|
||||||
syn sync match nimSync grouphere NONE "):$"
|
syn sync match nimSync grouphere NONE "):$"
|
||||||
syn sync maxlines=200
|
syn sync maxlines=200
|
||||||
syn sync minlines=2000
|
syn sync minlines=2000
|
||||||
|
|
@ -165,6 +173,7 @@ if version >= 508 || !exists("did_nim_syn_inits")
|
||||||
HiLink nimComment Comment
|
HiLink nimComment Comment
|
||||||
HiLink nimTodo Todo
|
HiLink nimTodo Todo
|
||||||
HiLink nimDecorator Define
|
HiLink nimDecorator Define
|
||||||
|
HiLink nimSpecialVar Identifier
|
||||||
|
|
||||||
if nim_highlight_numbers == 1
|
if nim_highlight_numbers == 1
|
||||||
HiLink nimNumber Number
|
HiLink nimNumber Number
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue