Ditched the text background color, added '/' to opword, and made some

other tweaks to text interpolations.
This commit is contained in:
Bruce Hill 2018-05-17 20:17:49 -07:00
parent 6306a050e8
commit ba1cdee898

View File

@ -19,23 +19,23 @@ hi nomsuComment ctermfg=DarkBlue
hi def link nomsuComment Comment hi def link nomsuComment Comment
syn region nomsuList start=/\[/ end=/\]/ contains=@nomsuAll,nomsuComma syn region nomsuList start=/\[/ end=/$\|\]/ contains=@nomsuAll,nomsuComma
hi nomsuList ctermfg=Blue hi nomsuList ctermfg=Blue
syn region nomsuDict start=/{/ end=/}/ contains=nomsuColon,nomsuComma,@nomsuAll syn region nomsuDict start=/{/ end=/$\|}/ contains=nomsuColon,nomsuComma,@nomsuAll
hi nomsuDict ctermfg=Green hi nomsuDict ctermfg=Green
syn region nomsuParenGroup start=/(/ end=/)/ contains=@nomsuAll syn region nomsuParenGroup start=/(/ end=/$\|)/ contains=@nomsuAll
hi nomsuParenGroup ctermfg=Yellow hi nomsuParenGroup ctermfg=Yellow
syn match nomsuLongTextStart /"\.\."/ contains=nomsuIndentor contained syn match nomsuLongTextStart /"\.\."/ contains=nomsuIndentor contained
hi nomsuLongTextStart ctermfg=Gray hi nomsuLongTextStart ctermfg=Gray
syn match nomsuTextBackslash /\\\\/ contained syn match nomsuTextBackslash /\\\\/ contained
hi nomsuTextBackslash ctermbg=Black ctermfg=Blue hi nomsuTextBackslash ctermfg=Blue
syn match nomsuTextEscapedQuote /\\"/ contained syn match nomsuTextEscapedQuote /\\"/ contained
hi nomsuTextEscapedQuote ctermbg=Black ctermfg=Blue hi nomsuTextEscapedQuote ctermfg=Blue
syn region nomsuInterp matchgroup=nomsuInterpDelim start=/\\(/ end=/)/ contained syn match nomsuInterp /\\\([%[{"(]\)\@=/ nextgroup=nomsuVar,nomsuText,nomsuList,nomsuDict,nomsuParenGroup contained
\ contains=@nomsuAll hi nomsuInterp ctermfg=Brown
syn region nomsuInterpDotDot matchgroup=nomsuInterpDelim start=/\\$/ end=/\.\./ contained syn region nomsuInterpDotDot matchgroup=nomsuInterpDelim start=/\\$/ end=/\.\./ contained
syn region nomsuLongTextValue start=/^/ end=/$/ contained syn region nomsuLongTextValue start=/^/ end=/$/ contained
\ contains=nomsuInterp,nomsuInterpDotDot,nomsuTextBackslash \ contains=nomsuInterp,nomsuInterpDotDot,nomsuTextBackslash
@ -57,7 +57,7 @@ hi def link nomsuVar Identifier
syn match nomsuWord /\([a-zA-Z_]\|[^\x00-\xff]\)\([a-zA-Z0-9_]\|[^\x00-\xff]\)*/ syn match nomsuWord /\([a-zA-Z_]\|[^\x00-\xff]\)\([a-zA-Z0-9_]\|[^\x00-\xff]\)*/
hi def link nomsuWord Function hi def link nomsuWord Function
hi nomsuWord ctermfg=White hi nomsuWord ctermfg=White
syn match nomsuOpWord /\v[`$~!@^&*_+=|<>?'-]+/ syn match nomsuOpWord ;\v[`$~!@^&*_+=|<>?'/-]+;
hi def link nomsuOpWord Function hi def link nomsuOpWord Function
hi nomsuOpWord ctermfg=LightYellow hi nomsuOpWord ctermfg=LightYellow
@ -82,8 +82,8 @@ hi nomsuSemicolon ctermfg=Blue
hi def link nomsuSemicolon Delimiter hi def link nomsuSemicolon Delimiter
syn cluster nomsuAll contains=nomsuParenGroup,nomsuText,nomsuLongText,nomsuComment,nomsuOneLineComment, syn cluster nomsuAll contains=nomsuParenGroup,nomsuText,nomsuLongText,nomsuComment,nomsuOneLineComment,
\ nomsuVar,nomsuNumber,nomsuDict,nomsuList,nomsuColon,nomsuSemicolon,nomsuDotDot,nomsuWord, \ nomsuVar,nomsuNumber,nomsuDict,nomsuList,nomsuColon,nomsuSemicolon,
\ nomsuOpWord \ nomsuDotDot,nomsuWord,nomsuOpWord
if !exists('b:current_syntax') if !exists('b:current_syntax')
let b:current_syntax = 'nomsu' let b:current_syntax = 'nomsu'