File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,7 +72,6 @@ syntax match resFloat "-\=\<\d\(_\|\d\)*\.\?\(_\|\d\)*\([eE][-+]\=\d\(_\|\d\)*\)
7272
7373" Module / Constructor
7474syntax match resModuleOrVariant " \v <[A-Z][A-Za-z0-9_'$]*"
75- syntax match resPolyVariant " \v #[A-za-z][A-Za-z0-9_'$]*"
7675syntax match resModuleChain " \v <[A-Z][A-Za-z0-9_'$]*\. "
7776
7877" Attribute
@@ -87,6 +86,10 @@ syntax match resInterpolationVariable "\v\$[a-z_][A-Za-z0-0_'$]*" contained
8786syntax region resString start =" \v `" end =" \v `" contains =resInterpolationVariable
8887syntax region resString start =" \v [a-z]`" end =" \v `" contains =resInterpolationVariable
8988
89+ " Polymorphic variants
90+ syntax match resPolyVariant " \v #[A-za-z][A-Za-z0-9_'$]*"
91+ syntax match resPolyVariant " \v #\" .*\" "
92+ syntax match resPolyVariant " \v #\\\" .*\" "
9093
9194highlight default link resBoolean Boolean
9295highlight default link resKeyword Keyword
You can’t perform that action at this time.
0 commit comments