Updated with language.
This commit is contained in:
parent
af2862d0d0
commit
be6a528f9a
@ -30,8 +30,9 @@ hi nomsuStringEscapedQuote ctermbg=Black ctermfg=Blue
|
|||||||
hi def link nomsuStringPipe Special
|
hi def link nomsuStringPipe Special
|
||||||
syn region nomsuInterp matchgroup=nomsuInterpDelim start=/\\(/ end=/)/ contained
|
syn region nomsuInterp matchgroup=nomsuInterpDelim start=/\\(/ end=/)/ contained
|
||||||
\ contains=@nomsuAll
|
\ contains=@nomsuAll
|
||||||
|
syn region nomsuInterpDotDot matchgroup=nomsuInterpDelim start=/\\$/ end=/\.\./ contained
|
||||||
syn region nomsuLongStringValue start=/\(|\)\@<=/ end=/$/ contained
|
syn region nomsuLongStringValue start=/\(|\)\@<=/ end=/$/ contained
|
||||||
\ contains=nomsuInterp,nomsuStringBackslash
|
\ contains=nomsuInterp,nomsuInterpDotDot,nomsuStringBackslash
|
||||||
hi nomsuLongStringValue ctermbg=Black ctermfg=Gray
|
hi nomsuLongStringValue ctermbg=Black ctermfg=Gray
|
||||||
hi def link nomsuLongStringValue String
|
hi def link nomsuLongStringValue String
|
||||||
syn region nomsuLongStringLine start=/^\s\+|/ end=/\n/ contained
|
syn region nomsuLongStringLine start=/^\s\+|/ end=/\n/ contained
|
||||||
@ -44,14 +45,17 @@ syn region nomsuString start=/\("\.\.\)\@<!"\(\.\."\)\@!/ skip=/\\\\\|\\"/ end=/
|
|||||||
hi nomsuString ctermbg=Black ctermfg=Gray
|
hi nomsuString ctermbg=Black ctermfg=Gray
|
||||||
hi def link nomsuString String
|
hi def link nomsuString String
|
||||||
|
|
||||||
syn match nomsuVar /%\([a-zA-Z0-9`~!@^&*_+=|<>?-]*\)\?/
|
syn match nomsuVar /%\([a-zA-Z0-9_]*\|[`$~!@^&*_+=|<>?-]*\)\?/
|
||||||
hi nomsuVar ctermfg=Cyan
|
hi nomsuVar ctermfg=Cyan
|
||||||
hi def link nomsuVar Identifier
|
hi def link nomsuVar Identifier
|
||||||
|
|
||||||
|
|
||||||
syn match nomsuWord /\v[a-zA-Z0-9`~!@^&*_+=|<>?'-][a-zA-Z0-9`~!@^&*_+=|<>?-]*/
|
syn match nomsuWord /\v[a-zA-Z0-9_]+/
|
||||||
hi def link nomsuWord Function
|
hi def link nomsuWord Function
|
||||||
hi nomsuWord ctermfg=White
|
hi nomsuWord ctermfg=White
|
||||||
|
syn match nomsuOpWord /\v[`$~!@^&*_+=|<>?'-]+/
|
||||||
|
hi def link nomsuOpWord Function
|
||||||
|
hi nomsuOpWord ctermfg=LightYellow
|
||||||
|
|
||||||
syn match nomsuNumber /-\?\d\+\(\.\(\d\+\)\?\)\?/
|
syn match nomsuNumber /-\?\d\+\(\.\(\d\+\)\?\)\?/
|
||||||
syn match nomsuNumber /-\?\.\d\+/
|
syn match nomsuNumber /-\?\.\d\+/
|
||||||
@ -70,7 +74,7 @@ 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=nomsuString,nomsuLongString,nomsuComment,nomsuOneLineComment,
|
||||||
\ nomsuVar,nomsuNumber,nomsuDelim,nomsuThunk,nomsuDotDot,nomsuWord
|
\ 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