better matching of css classes and identifiers
This commit is contained in:
parent
7a02573607
commit
8bf390b56c
|
@ -57,8 +57,8 @@ syntax keyword jsFrom contained from skipwhite skipempty nextgroup
|
||||||
syntax match jsModuleComma contained /,/ skipwhite skipempty nextgroup=jsModuleKeyword,jsModuleAsterisk,jsModuleGroup,jsFlowTypeKeyword
|
syntax match jsModuleComma contained /,/ skipwhite skipempty nextgroup=jsModuleKeyword,jsModuleAsterisk,jsModuleGroup,jsFlowTypeKeyword
|
||||||
|
|
||||||
" Strings, Templates, Numbers
|
" Strings, Templates, Numbers
|
||||||
syntax match jsCssClassName "\.-\=[A-Za-z_][A-Za-z0-9_-]*" contained
|
syntax match jsCssClassName +["' ]\.-\=[A-Za-z_][A-Za-z0-9_-]*+hs=s+1 contained
|
||||||
syntax match jsCssIdentifier "#-\=[A-Za-z_][A-Za-z0-9_-]*" contained
|
syntax match jsCssIdentifier +["' ]#-\=[A-Za-z_][A-Za-z0-9_-]*+hs=s+1 contained
|
||||||
syntax region jsString start=+"+ skip=+\\\("\|$\)+ end=+"\|$+ contains=jsSpecial,@Spell,htmlTag,htmlEndTag,cssClassRegion,cssIdRegion,htmlArgRegion,jsCssClassName,jsCssIdentifier extend
|
syntax region jsString start=+"+ skip=+\\\("\|$\)+ end=+"\|$+ contains=jsSpecial,@Spell,htmlTag,htmlEndTag,cssClassRegion,cssIdRegion,htmlArgRegion,jsCssClassName,jsCssIdentifier extend
|
||||||
syntax region jsString start=+'+ skip=+\\\('\|$\)+ end=+'\|$+ contains=jsSpecial,@Spell,htmlTag,htmlEndTag,cssClassRegion,cssIdRegion,htmlArgRegion,jsCssClassName,jsCssIdentifier extend
|
syntax region jsString start=+'+ skip=+\\\('\|$\)+ end=+'\|$+ contains=jsSpecial,@Spell,htmlTag,htmlEndTag,cssClassRegion,cssIdRegion,htmlArgRegion,jsCssClassName,jsCssIdentifier extend
|
||||||
syntax region jsTemplateString start=+`+ skip=+\\\(`\|$\)+ end=+`+ contains=jsTemplateExpression,jsSpecial,@Spell extend
|
syntax region jsTemplateString start=+`+ skip=+\\\(`\|$\)+ end=+`+ contains=jsTemplateExpression,jsSpecial,@Spell extend
|
||||||
|
|
Loading…
Reference in New Issue