Fixed highlighting of string interpolations.
This commit is contained in:
parent
72a18447c3
commit
dbbbdffb40
@ -19,6 +19,9 @@ hi nomsuComment ctermfg=DarkBlue
|
|||||||
hi def link nomsuComment Comment
|
hi def link nomsuComment Comment
|
||||||
|
|
||||||
|
|
||||||
|
syn region nomsuParenGroup start=/(/ end=/)/ contains=@nomsuAll
|
||||||
|
hi nomsuParenGroup ctermfg=Yellow
|
||||||
|
hi def link nomsuParens Delimiter
|
||||||
syn match nomsuLongStringStart /"\.\."/ contains=nomsuIndentor contained
|
syn match nomsuLongStringStart /"\.\."/ contains=nomsuIndentor contained
|
||||||
hi nomsuLongStringStart ctermfg=Yellow
|
hi nomsuLongStringStart ctermfg=Yellow
|
||||||
syn match nomsuStringPipe /|/ contained
|
syn match nomsuStringPipe /|/ contained
|
||||||
@ -65,7 +68,7 @@ syn match nomsuDotDot /\.\./
|
|||||||
hi def link nomsuDotDot Special
|
hi def link nomsuDotDot Special
|
||||||
hi nomsuDotDot ctermfg=DarkGray
|
hi nomsuDotDot ctermfg=DarkGray
|
||||||
|
|
||||||
syn match nomsuDelim /[,;()\[\]]/
|
syn match nomsuDelim /[,;\[\]{}]/
|
||||||
hi nomsuDelim ctermfg=Yellow
|
hi nomsuDelim ctermfg=Yellow
|
||||||
hi def link nomsuDelim Delimiter
|
hi def link nomsuDelim Delimiter
|
||||||
|
|
||||||
@ -73,8 +76,9 @@ syn match nomsuThunk /:/
|
|||||||
hi nomsuThunk ctermfg=Yellow
|
hi nomsuThunk ctermfg=Yellow
|
||||||
hi def link nomsuThunk Structure
|
hi def link nomsuThunk Structure
|
||||||
|
|
||||||
syn cluster nomsuAll contains=nomsuString,nomsuLongString,nomsuComment,nomsuOneLineComment,
|
syn cluster nomsuAll contains=nomsuParenGroup,nomsuString,nomsuLongString,nomsuComment,nomsuOneLineComment,
|
||||||
\ nomsuVar,nomsuNumber,nomsuDelim,nomsuThunk,nomsuDotDot,nomsuWord,nomsuOpWord
|
\ nomsuVar,nomsuNumber,nomsuDelim,nomsuThunk,nomsuDotDot,nomsuWord,
|
||||||
|
\ nomsuOpWord
|
||||||
|
|
||||||
if !exists('b:current_syntax')
|
if !exists('b:current_syntax')
|
||||||
let b:current_syntax = 'nomsu'
|
let b:current_syntax = 'nomsu'
|
||||||
|
Loading…
Reference in New Issue
Block a user