| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language |
| 3 |
[ |
| 4 |
<!-- https://www.w3.org/TR/CSS22/syndata.html#tokenization --> |
| 5 |
<!ENTITY nmstart "[_a-zA-Z]|(\\[0-9a-fA-F]{1,6})|(\\[^\n\r\f0-9a-fA-F])"> |
| 6 |
<!ENTITY nmchar "[_a-zA-Z0-9-]|(\\[0-9a-fA-F]{1,6})|(\\[^\n\r\f0-9a-fA-F])"> |
| 7 |
]> |
| 8 |
|
| 9 |
<language name="SASS" version="7" kateversion="5.53" section="Markup" extensions="*.sass" indenter="cstyle" mimetype="text/css" author="Jonathan Poelen ([email protected])" license="MIT" priority="5"> |
| 10 |
|
| 11 |
<highlighting> |
| 12 |
<list name="properties"> |
| 13 |
<include>properties##SCSS</include> |
| 14 |
<include>sub-properties##SCSS</include> |
| 15 |
</list> |
| 16 |
<list name="special values"><include>special values##SCSS</include></list> |
| 17 |
<list name="value keywords"><include>value keywords##SCSS</include></list> |
| 18 |
<list name="values"><include>values##SCSS</include></list> |
| 19 |
<list name="colors"><include>colors##SCSS</include></list> |
| 20 |
<list name="functions"><include>functions##SCSS</include></list> |
| 21 |
<list name="medias"><include>medias##SCSS</include></list> |
| 22 |
<list name="pseudoelements"><include>pseudoelements##SCSS</include></list> |
| 23 |
<list name="pseudoclasses"><include>pseudoclasses##SCSS</include></list> |
| 24 |
<list name="pseudoclass-selector"><include>pseudoclass-selector##SCSS</include></list> |
| 25 |
<list name="pseudoclasses-@page"><include>pseudoclasses-@page##SCSS</include></list> |
| 26 |
<list name="at-rules"><include>at-rules##SCSS</include></list> |
| 27 |
<list name="nested at-rules"><include>nested at-rules##SCSS</include></list> |
| 28 |
<list name="other at-rules"><include>other at-rules##SCSS</include></list> |
| 29 |
<list name="media operators"><include>media operators##SCSS</include></list> |
| 30 |
<list name="operators"><include>operators##SCSS</include></list> |
| 31 |
<list name="annotations"><include>annotations##SCSS</include></list> |
| 32 |
|
| 33 |
<contexts> |
| 34 |
<context name="Base" attribute="Normal Text" lineEndContext="#stay"> |
| 35 |
<IncludeRules context="FindCommentsColumn0" /> |
| 36 |
<IncludeRules context="FindComments" /> |
| 37 |
<RegExpr attribute="Property" context="Rule" String="^\s*[-_A-Za-z]+(/\*.*\*/)?\s*(?=:(\s|$))" lookAhead="true" column="0" minimal="true" /> |
| 38 |
<DetectSpaces /> |
| 39 |
<DetectChar attribute="At Rule" context="@mixin" char="=" firstNonSpace="true" /> |
| 40 |
<DetectChar attribute="At Rule" context="AtRule" char="+" firstNonSpace="true" /> |
| 41 |
<DetectChar attribute="At Rule" context="SelectAtRule" char="@" lookAhead="true" /> |
| 42 |
<!-- find selectors // .class #id :hover :nth-child(2n+1) [type="search"] --> |
| 43 |
<DetectChar attribute="Selector Attribute" context="SelectorAttr" char="[" /> |
| 44 |
<DetectChar attribute="Separator Symbol" context="#stay" char="," /> |
| 45 |
<AnyChar attribute="Operator" context="#stay" String="&*>+~|" /> |
| 46 |
<RegExpr attribute="Selector Pseudo" context="SelectorPseudo" String=":(?=[a-z:])" /> |
| 47 |
<RegExpr attribute="Selector Id" context="#stay" String="#[-]?(&nmstart;)(&nmchar;)*" /> |
| 48 |
<RegExpr attribute="Selector Class" context="#stay" String="\.([a-zA-Z0-9\-_]|[\x80-\xFF]|\\[0-9A-Fa-f]{1,6})*" /> |
| 49 |
<RegExpr attribute="Placeholder Selector" context="#stay" String="%[_a-zA-Z][_a-zA-Z\-]*" /> |
| 50 |
<RegExpr attribute="Selector Tag" context="#stay" String="[-]?(&nmstart;)(&nmchar;)*(?=\s|:?[#.&[*>+~|,]|:[a-z:])" /> |
| 51 |
<RegExpr attribute="Variable" context="VariableDefine" String="\$[a-zA-Z0-9\-_]+(?=\s*:)" /> |
| 52 |
<Detect2Chars attribute="Interpolation" context="Interpolation" char="#" char1="{" /> |
| 53 |
<DetectChar attribute="Normal Text" context="Rule" char=":" lookAhead="true" /> |
| 54 |
</context> |
| 55 |
|
| 56 |
<!-- same as SCSS --> |
| 57 |
<context name="FindSelector" attribute="Normal Text" lineEndContext="#stay"> |
| 58 |
<AnyChar attribute="Error" context="#stay" String=",&" /> |
| 59 |
<AnyChar attribute="Operator" context="#stay" String="*>+~|" /> |
| 60 |
<!-- find selectors // .class #id :hover :nth-child(2n+1) [type="search"] --> |
| 61 |
<DetectChar attribute="Selector Pseudo" context="SelectorPseudo" char=":" /> |
| 62 |
<DetectChar attribute="Selector Attribute" context="SelectorAttr" char="[" /> |
| 63 |
<IncludeRules context="FindComments" /> |
| 64 |
<RegExpr attribute="Selector Id" context="#stay" String="#[-]?(&nmstart;)(&nmchar;)*" /> |
| 65 |
<RegExpr attribute="Selector Class" context="#stay" String="\.([a-zA-Z0-9\-_]|[\x80-\xFF]|\\[0-9A-Fa-f]{1,6})*" /> |
| 66 |
<RegExpr attribute="Placeholder Selector" context="#stay" String="%[_a-zA-Z][_a-zA-Z\-]*" /> |
| 67 |
<RegExpr attribute="Selector Tag" context="#stay" String="[-]?(&nmstart;)(&nmchar;)*" /> |
| 68 |
<Detect2Chars attribute="Interpolation" context="Interpolation" char="#" char1="{" /> |
| 69 |
</context> |
| 70 |
|
| 71 |
<!-- same as SCSS --> |
| 72 |
<context name="VariableDefine" attribute="Normal Text" lineEndContext="#pop"> |
| 73 |
<DetectChar attribute="Normal Text" context="RuleParameters" char=":" /> |
| 74 |
</context> |
| 75 |
|
| 76 |
<context name="Interpolation" attribute="Normal Text" lineEndContext="#pop"> |
| 77 |
<DetectSpaces /> |
| 78 |
<DetectChar attribute="Interpolation" context="#pop" char="}" /> |
| 79 |
<IncludeRules context="FindStrings" /> |
| 80 |
<IncludeRules context="FindFunctions" /> |
| 81 |
<IncludeRules context="FindValues" /> |
| 82 |
</context> |
| 83 |
|
| 84 |
|
| 85 |
<!-- find functions // rgba(255,255,255,0.75) --> |
| 86 |
<!-- same as SCSS --> |
| 87 |
<context name="FindFunctions" attribute="Normal Text" lineEndContext="#stay"> |
| 88 |
<RegExpr attribute="Function" context="Function" String="[a-z\-]{2,}\(" lookAhead="true" /> |
| 89 |
</context> |
| 90 |
|
| 91 |
<!-- find values // 10px 12pt 2.5em 1rem 75% #ffcc99 red solid --> |
| 92 |
<!-- same as SCSS --> |
| 93 |
<context name="FindValues" attribute="Normal Text" lineEndContext="#stay"> |
| 94 |
<DetectChar attribute="Annotation" context="Annotation" char="!" /> |
| 95 |
<keyword attribute="Operator" context="#stay" String="operators" /> |
| 96 |
<keyword attribute="Value Keyword" context="#stay" String="value keywords" /> |
| 97 |
<keyword attribute="Value" context="#stay" String="values" /> |
| 98 |
<keyword attribute="Color" context="#stay" String="colors" /> |
| 99 |
<RegExpr attribute="Number" context="FindUnits" String="([0-9]+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?" /> |
| 100 |
<RegExpr attribute="Color" context="#stay" String="#([0-9A-Fa-f]{3,4}){1,2}\b" /> |
| 101 |
<RegExpr attribute="Variable" context="#stay" String="\$[a-zA-Z0-9\-_]+" /> |
| 102 |
<keyword attribute="Value Keyword" context="#stay" String="special values" /> |
| 103 |
<RegExpr attribute="Normal Text" context="#stay" String="[-]?(&nmstart;)(&nmchar;)*" /> |
| 104 |
<AnyChar attribute="Operator" context="#stay" String="*/+%-" /> |
| 105 |
<Detect2Chars attribute="Interpolation" context="Interpolation" char="#" char1="{" /> |
| 106 |
</context> |
| 107 |
|
| 108 |
<!-- same as SCSS --> |
| 109 |
<context name="Annotation" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> |
| 110 |
<keyword attribute="Annotation" context="#pop" String="annotations" /> |
| 111 |
</context> |
| 112 |
|
| 113 |
<!-- same as SCSS --> |
| 114 |
<context name="FindUnits" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> |
| 115 |
<RegExpr attribute="Unit" context="#pop" String="(%|(em|ex|cap|ch|ic|rem|lh|rlh|vw|vh|vi|vb|vmin|vmax|cm|mm|Q|in|pc|pt|px|deg|rad|grad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx|x|fr)\b)" /> |
| 116 |
</context> |
| 117 |
|
| 118 |
<!-- find strings // "some words" 'some words' --> |
| 119 |
<!-- same as SCSS --> |
| 120 |
<context name="FindStrings" attribute="Normal Text" lineEndContext="#stay"> |
| 121 |
<DetectChar attribute="String" context="StringDQ" char=""" /> |
| 122 |
<DetectChar attribute="String" context="StringSQ" char="'" /> |
| 123 |
</context> |
| 124 |
|
| 125 |
<!-- find comments // and /* at the beginning of line --> |
| 126 |
<context name="FindCommentsColumn0" attribute="Comment" lineEndContext="#stay"> |
| 127 |
<!-- (\s*)(?=/[*/]) is not selected when the match is empty --> |
| 128 |
<RegExpr attribute="Normal Text" context="Comment" String="^(\s+)(?=/[*/])" column="0" /> |
| 129 |
<RegExpr attribute="Comment" context="Comment" String="^()/[*/]" column="0" /> |
| 130 |
</context> |
| 131 |
|
| 132 |
<!-- find comments // and /* --> |
| 133 |
<context name="FindComments" attribute="Comment" lineEndContext="#stay"> |
| 134 |
<Detect2Chars attribute="Comment" context="IsInlineComment" char="/" char1="/" /> |
| 135 |
<Detect2Chars attribute="Comment" context="IsInlineComment2" char="/" char1="*" /> |
| 136 |
</context> |
| 137 |
|
| 138 |
<context name="Comment" attribute="Comment" lineEndContext="#stay" dynamic="true" fallthrough="true" fallthroughContext="IsInlineComment"> |
| 139 |
<RegExpr attribute="Comment" context="IsInlineComment" String="^%1\s|^\s*$" dynamic="true" column="0" /> |
| 140 |
<DetectSpaces attribute="Normal Text" context="#pop" lookAhead="true" column="0" /> |
| 141 |
<RegExpr attribute="Comment" context="#pop" String="." lookAhead="true" column="0"/> |
| 142 |
</context> |
| 143 |
|
| 144 |
<context name="IsInlineComment" attribute="Comment" lineEndContext="#pop"> |
| 145 |
<DetectSpaces /> |
| 146 |
<IncludeRules context="##Comments" /> |
| 147 |
<DetectIdentifier /> |
| 148 |
</context> |
| 149 |
|
| 150 |
<context name="IsInlineComment2" attribute="Comment" lineEndContext="#pop"> |
| 151 |
<DetectSpaces /> |
| 152 |
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" /> |
| 153 |
<IncludeRules context="##Comments" /> |
| 154 |
<DetectIdentifier /> |
| 155 |
</context> |
| 156 |
|
| 157 |
<context name="SelectAtRule" attribute="At Rule" lineEndContext="#pop"> |
| 158 |
<keyword attribute="At Rule" context="#pop!AtRule" String="nested at-rules" /> |
| 159 |
<keyword attribute="At Rule" context="#pop!AtRule" String="at-rules" /> |
| 160 |
<!-- CSS: inline --> |
| 161 |
<!-- SCSS: inline or block --> |
| 162 |
<WordDetect attribute="At Rule" context="#pop!AtRule" String="@inline" /> |
| 163 |
<WordDetect attribute="At Rule" context="#pop!@extend" String="@extend" /> |
| 164 |
<WordDetect attribute="At Rule" context="#pop!@mixin" String="@mixin" /> |
| 165 |
<WordDetect attribute="At Rule" context="#pop!@mixin" String="@function" /> |
| 166 |
<WordDetect attribute="At Rule" context="#pop!@keyframes-@font-face" String="@keyframes" /> |
| 167 |
<WordDetect attribute="At Rule" context="#pop!@keyframes-@font-face" String="@font-face" /> |
| 168 |
<WordDetect attribute="At Rule" context="#pop!@viewport" String="@viewport" /> |
| 169 |
<WordDetect attribute="At Rule" context="#pop!@if" String="@if" /> |
| 170 |
<WordDetect attribute="At Rule" context="#pop!@else" String="@else" /> |
| 171 |
<WordDetect attribute="At Rule" context="#pop!@page" String="@page" /> |
| 172 |
<RegExpr attribute="At Rule" context="#pop!AtRule" String="@[a-zA-Z0-9\-_]+\b" /> |
| 173 |
</context> |
| 174 |
|
| 175 |
<context name="@if" attribute="Normal Text" lineEndContext="#pop"> |
| 176 |
<DetectSpaces /> |
| 177 |
<IncludeRules context="FindComments" /> |
| 178 |
<IncludeRules context="FindStrings" /> |
| 179 |
<IncludeRules context="FindFunctions" /> |
| 180 |
<IncludeRules context="FindValues" /> |
| 181 |
<AnyChar attribute="Operator" context="#stay" String="=!<>" /> |
| 182 |
</context> |
| 183 |
|
| 184 |
<context name="@else" attribute="Error" lineEndContext="#pop"> |
| 185 |
<DetectSpaces attribute="Normal Text" /> |
| 186 |
<IncludeRules context="FindComments" /> |
| 187 |
<WordDetect attribute="At Rule" context="#pop!@if" String="if" /> |
| 188 |
<DetectIdentifier attribute="Error" /> |
| 189 |
</context> |
| 190 |
|
| 191 |
<context name="@extend" attribute="Normal Text" lineEndContext="#pop"> |
| 192 |
<DetectSpaces /> |
| 193 |
<IncludeRules context="FindSelector" /> |
| 194 |
</context> |
| 195 |
|
| 196 |
<context name="@mixin" attribute="Normal Text" lineEndContext="#pop"> |
| 197 |
<DetectSpaces /> |
| 198 |
<IncludeRules context="FindComments" /> |
| 199 |
<RegExpr attribute="Function" context="MixinParameter" String="[a-zA-Z0-9\-_]+" /> |
| 200 |
</context> |
| 201 |
|
| 202 |
<context name="MixinParameter" attribute="Error" lineEndContext="#pop#pop"> |
| 203 |
<DetectSpaces attribute="Normal Text" /> |
| 204 |
<AnyChar attribute="Normal Text" context="#stay" String="()" /> |
| 205 |
<DetectChar attribute="Separator Symbol" context="#stay" char="," /> |
| 206 |
<IncludeRules context="FindComments" /> |
| 207 |
<RegExpr attribute="Variable" context="#stay" String="\$[a-zA-Z0-9\-_]+" /> |
| 208 |
<StringDetect attribute="Operator" context="#stay" String="..." /> |
| 209 |
</context> |
| 210 |
|
| 211 |
<context name="@keyframes-@font-face" attribute="Normal Text" lineEndContext="#pop"> |
| 212 |
<DetectSpaces /> |
| 213 |
<IncludeRules context="FindComments" /> |
| 214 |
</context> |
| 215 |
|
| 216 |
<context name="@viewport" attribute="Normal Text" lineEndContext="#pop"> |
| 217 |
<DetectSpaces /> |
| 218 |
<IncludeRules context="FindComments" /> |
| 219 |
<DetectChar attribute="Selector Pseudo" context="SelectorPseudo" char=":" /> |
| 220 |
</context> |
| 221 |
|
| 222 |
<context name="@page" attribute="Normal Text" lineEndContext="#pop"> |
| 223 |
<DetectSpaces /> |
| 224 |
<IncludeRules context="FindComments" /> |
| 225 |
<DetectChar attribute="Selector Pseudo" context="SelectorPseudo-@page" char=":" /> |
| 226 |
</context> |
| 227 |
|
| 228 |
<context name="SelectorPseudo-@page" attribute="Selector Pseudo" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> |
| 229 |
<keyword attribute="Selector Pseudo" context="#pop" String="pseudoclasses-@page" /> |
| 230 |
<RegExpr attribute="Selector Pseudo" context="#pop" String="[-a-zA-Z][-a-zA-Z0-9]*" /> |
| 231 |
</context> |
| 232 |
|
| 233 |
<context name="AtRule" attribute="Normal Text" lineEndContext="#pop"> |
| 234 |
<DetectSpaces /> |
| 235 |
<DetectChar attribute="Operator" context="#stay" char="&" /> |
| 236 |
<IncludeRules context="FindComments" /> |
| 237 |
<IncludeRules context="FindStrings" /> |
| 238 |
<IncludeRules context="FindFunctions" /> |
| 239 |
<keyword attribute="Keyword" context="#stay" String="media operators" /> |
| 240 |
<RegExpr attribute="Property" context="#stay" String="[A-Za-z_-]+(?=\s*:)" /> |
| 241 |
<keyword attribute="Value" context="#stay" String="medias" /> |
| 242 |
<IncludeRules context="FindValues" /> |
| 243 |
</context> |
| 244 |
|
| 245 |
<!-- same as SCSS --> |
| 246 |
<context name="SelectorAttr" attribute="Selector Attribute" lineEndContext="#pop"> |
| 247 |
<DetectChar attribute="Selector Attribute" context="#pop" char="]" /> |
| 248 |
<IncludeRules context="FindStrings" /> |
| 249 |
<DetectChar attribute="Operator" context="SelectorAttrValue" char="=" /> |
| 250 |
<Detect2Chars attribute="Operator" context="SelectorAttrValue" char="~" char1="=" /> |
| 251 |
<Detect2Chars attribute="Operator" context="SelectorAttrValue" char="^" char1="=" /> |
| 252 |
<Detect2Chars attribute="Operator" context="SelectorAttrValue" char="$" char1="=" /> |
| 253 |
<Detect2Chars attribute="Operator" context="SelectorAttrValue" char="*" char1="=" /> |
| 254 |
<Detect2Chars attribute="Operator" context="SelectorAttrValue" char="|" char1="=" /> |
| 255 |
<DetectIdentifier /> |
| 256 |
</context> |
| 257 |
|
| 258 |
<!-- same as SCSS --> |
| 259 |
<context name="SelectorAttrValue" attribute="String" lineEndContext="#pop#pop"> |
| 260 |
<DetectChar attribute="Selector Attribute" context="#pop#pop" char="]" /> |
| 261 |
<DetectIdentifier /> |
| 262 |
</context> |
| 263 |
|
| 264 |
<!-- same as SCSS --> |
| 265 |
<context name="SelectorPseudo" attribute="Selector Pseudo" lineEndContext="#pop"> |
| 266 |
<DetectChar attribute="Selector Pseudo" context="SelectorPseudoElements" char=":" /> |
| 267 |
<keyword attribute="Selector Pseudo" context="SelectorPseudoValueSelector" String="pseudoclass-selector" /> |
| 268 |
<keyword attribute="Selector Pseudo" context="SelectorPseudoValue" String="pseudoclasses" /> |
| 269 |
<RegExpr attribute="Selector Pseudo" context="SelectorPseudoValue" String="[-a-zA-Z][-a-zA-Z0-9]*" /> |
| 270 |
</context> |
| 271 |
|
| 272 |
<!-- same as SCSS --> |
| 273 |
<context name="SelectorPseudoElements" attribute="Selector Pseudo" lineEndContext="#pop#pop"> |
| 274 |
<keyword attribute="Selector Pseudo" context="#pop!SelectorPseudoValue" String="pseudoelements" /> |
| 275 |
<RegExpr attribute="Selector Pseudo" context="#pop!SelectorPseudoValue" String="[-a-zA-Z][-a-zA-Z0-9]*" /> |
| 276 |
</context> |
| 277 |
|
| 278 |
<!-- same as SCSS --> |
| 279 |
<context name="SelectorPseudoValueSelector" attribute="Selector Pseudo" lineEndContext="#pop#pop" fallthrough="true" fallthroughContext="#pop#pop"> |
| 280 |
<DetectChar attribute="Selector Pseudo" context="SelectorPseudoValueCloseSelector" char="(" /> |
| 281 |
</context> |
| 282 |
|
| 283 |
<context name="SelectorPseudoValueCloseSelector" attribute="Normal Text" lineEndContext="#pop#pop#pop"> |
| 284 |
<DetectSpaces /> |
| 285 |
<DetectChar attribute="Selector Pseudo" context="#pop#pop#pop" char=")" /> |
| 286 |
<IncludeRules context="FindSelector" /> |
| 287 |
</context> |
| 288 |
|
| 289 |
<!-- same as SCSS --> |
| 290 |
<context name="SelectorPseudoValue" attribute="Selector Pseudo" lineEndContext="#pop#pop" fallthrough="true" fallthroughContext="#pop#pop"> |
| 291 |
<DetectChar attribute="Selector Pseudo" context="SelectorPseudoValueClose" char="(" /> |
| 292 |
</context> |
| 293 |
|
| 294 |
<!-- same as SCSS --> |
| 295 |
<context name="SelectorPseudoValueClose" attribute="Selector Pseudo" lineEndContext="#pop#pop#pop"> |
| 296 |
<DetectChar attribute="Selector Pseudo" context="#pop#pop#pop" char=")" /> |
| 297 |
<DetectIdentifier /> |
| 298 |
</context> |
| 299 |
|
| 300 |
<context name="Rule" attribute="Normal Text" lineEndContext="#pop"> |
| 301 |
<DetectSpaces /> |
| 302 |
<IncludeRules context="FindComments" /> |
| 303 |
<DetectChar attribute="Normal Text" context="RuleParameters" char=":" /> |
| 304 |
<Detect2Chars attribute="Variable" context="IsVariable" char="-" char1="-" /> |
| 305 |
<keyword attribute="Property" context="#stay" String="properties" /> |
| 306 |
<RegExpr attribute="Unknown Property" context="#stay" String="[^:]+" /> |
| 307 |
</context> |
| 308 |
|
| 309 |
<context name="IsVariable" attribute="Normal Text" lineEndContext="#pop"> |
| 310 |
<DetectChar attribute="Normal Text" context="#pop!RuleParameters" char=":" /> |
| 311 |
<RegExpr attribute="Variable" context="#stay" String="[^:/]+" /> |
| 312 |
<IncludeRules context="FindComments" /> |
| 313 |
</context> |
| 314 |
|
| 315 |
<context name="RuleParameters" attribute="Normal Text" lineEndContext="#pop#pop"> |
| 316 |
<DetectSpaces /> |
| 317 |
<!-- Jump out conditions --> |
| 318 |
<DetectChar attribute="Separator Symbol" context="#stay" char="," /> |
| 319 |
<IncludeRules context="FindComments" /> |
| 320 |
<IncludeRules context="FindStrings" /> |
| 321 |
<IncludeRules context="FindFunctions" /> |
| 322 |
<IncludeRules context="FindValues" /> |
| 323 |
</context> |
| 324 |
|
| 325 |
<!-- same as SCSS --> |
| 326 |
<context name="Function" attribute="Normal Text" lineEndContext="#pop"> |
| 327 |
<DetectChar attribute="Function" context="FunctionParameters" char="(" /> |
| 328 |
<StringDetect attribute="Function" context="FunctionVar" String="var(" /> |
| 329 |
<StringDetect attribute="Function" context="FunctionUrl" String="url(" /> |
| 330 |
<StringDetect attribute="Function" context="FunctionCalc" String="calc(" /> |
| 331 |
<keyword attribute="Function" context="#stay" String="functions" /> |
| 332 |
<RegExpr attribute="Function" context="#stay" String="[-a-zA-Z][-a-zA-Z0-9]*" /> |
| 333 |
</context> |
| 334 |
|
| 335 |
<!-- same as SCSS --> |
| 336 |
<context name="FunctionVar" attribute="Variable" lineEndContext="#pop#pop" fallthrough="true" fallthroughContext="#pop!FunctionParameters"> |
| 337 |
<DetectSpaces /> |
| 338 |
<IncludeRules context="FindComments" /> |
| 339 |
<RegExpr attribute="Variable" context="#pop!FunctionParameters" String="--[^ \t\),]+" /> |
| 340 |
</context> |
| 341 |
|
| 342 |
<!-- same as SCSS --> |
| 343 |
<context name="FunctionCalc" attribute="Normal Text" lineEndContext="#pop#pop"> |
| 344 |
<DetectSpaces /> |
| 345 |
<DetectChar attribute="Function" context="#pop#pop" char=")" /> |
| 346 |
<IncludeRules context="Calc" /> |
| 347 |
</context> |
| 348 |
|
| 349 |
<!-- same as SCSS --> |
| 350 |
<context name="NestedCalc" attribute="Normal Text" lineEndContext="#pop#pop"> |
| 351 |
<DetectSpaces /> |
| 352 |
<DetectChar attribute="Normal Text" context="#pop" char=")" /> |
| 353 |
<IncludeRules context="Calc" /> |
| 354 |
</context> |
| 355 |
|
| 356 |
<!-- same as SCSS --> |
| 357 |
<context name="Calc" attribute="Normal Text" lineEndContext="#pop"> |
| 358 |
<DetectChar attribute="Separator Symbol" context="#stay" char="," /> |
| 359 |
<DetectChar attribute="Normal Text" context="NestedCalc" char="(" /> |
| 360 |
<IncludeRules context="FindComments" /> |
| 361 |
<IncludeRules context="FindStrings" /> |
| 362 |
<IncludeRules context="FindFunctions" /> |
| 363 |
<IncludeRules context="FindValues" /> |
| 364 |
<RegExpr attribute="Operator" context="#stay" String="[-](?=$|[ \t(,;])|[+](?=$|[^0-9)])|[/*]" /> |
| 365 |
</context> |
| 366 |
|
| 367 |
<!-- same as SCSS --> |
| 368 |
<context name="FunctionUrl" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="UrlValue"> |
| 369 |
<DetectSpaces /> |
| 370 |
<IncludeRules context="FindStrings" /> |
| 371 |
<DetectChar attribute="Function" context="#pop#pop" char=")" /> |
| 372 |
</context> |
| 373 |
|
| 374 |
<!-- same as SCSS --> |
| 375 |
<context name="UrlValue" attribute="String" lineEndContext="#pop#pop#pop"> |
| 376 |
<DetectChar attribute="Function" context="#pop#pop#pop" char=")" /> |
| 377 |
</context> |
| 378 |
|
| 379 |
<!-- same as SCSS --> |
| 380 |
<context name="FunctionParameters" attribute="Normal Text" lineEndContext="#pop#pop"> |
| 381 |
<DetectSpaces /> |
| 382 |
<DetectChar attribute="Function" context="#pop#pop" char=")" /> |
| 383 |
<IncludeRules context="FindComments" /> |
| 384 |
<IncludeRules context="FindStrings" /> |
| 385 |
<IncludeRules context="FindFunctions" /> |
| 386 |
<IncludeRules context="FindValues" /> |
| 387 |
<DetectChar attribute="Separator Symbol" context="#stay" char="," /> |
| 388 |
<StringDetect attribute="Operator" String="..." /> |
| 389 |
</context> |
| 390 |
|
| 391 |
<!-- string contexts --> |
| 392 |
<!-- same as SCSS --> |
| 393 |
<context name="StringDQ" attribute="String" lineEndContext="#pop"> |
| 394 |
<DetectChar attribute="String" context="#pop" char=""" /> |
| 395 |
<IncludeRules context="InsideString" /> |
| 396 |
</context> |
| 397 |
|
| 398 |
<!-- same as SCSS --> |
| 399 |
<context name="StringSQ" attribute="String" lineEndContext="#pop"> |
| 400 |
<DetectChar attribute="String" context="#pop" char="'" /> |
| 401 |
<IncludeRules context="InsideString" /> |
| 402 |
</context> |
| 403 |
|
| 404 |
<!-- same as SCSS --> |
| 405 |
<context name="InsideString" attribute="String" lineEndContext="#stay"> |
| 406 |
<Detect2Chars attribute="Interpolation" context="Interpolation" char="#" char1="{" /> |
| 407 |
<RegExpr attribute="SpecialChar" context="#stay" String="\\([0-9A-Fa-f]{1,6}|.?)" /> |
| 408 |
<RegExpr attribute="String" context="#stay" String="\\?[^#"'\\]+" /> |
| 409 |
</context> |
| 410 |
|
| 411 |
</contexts> |
| 412 |
|
| 413 |
<itemDatas> |
| 414 |
<itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/> |
| 415 |
<itemData name="At Rule" defStyleNum="dsImport" spellChecking="false"/> |
| 416 |
<itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/> |
| 417 |
<itemData name="Property" defStyleNum="dsKeyword" spellChecking="false"/> |
| 418 |
<itemData name="Unknown Property" defStyleNum="dsNormal" spellChecking="false"/> |
| 419 |
<itemData name="String" defStyleNum="dsString"/> |
| 420 |
<itemData name="SpecialChar" defStyleNum="dsSpecialChar" spellChecking="false"/> |
| 421 |
<itemData name="Interpolation" defStyleNum="dsOperator" spellChecking="false"/> |
| 422 |
<itemData name="Operator" defStyleNum="dsOperator" spellChecking="false"/> |
| 423 |
<itemData name="Separator Symbol" defStyleNum="dsOperator" spellChecking="false"/> |
| 424 |
<itemData name="Value" defStyleNum="dsDecVal" spellChecking="false"/> |
| 425 |
<itemData name="Number" defStyleNum="dsDecVal" spellChecking="false"/> |
| 426 |
<itemData name="Value Keyword" defStyleNum="dsBuiltIn" spellChecking="false"/> |
| 427 |
<itemData name="Color" defStyleNum="dsConstant" spellChecking="false"/> |
| 428 |
<itemData name="Unit" defStyleNum="dsDataType" spellChecking="false"/> |
| 429 |
<itemData name="Variable" defStyleNum="dsVariable" spellChecking="false"/> |
| 430 |
<itemData name="Function" defStyleNum="dsFunction" spellChecking="false"/> |
| 431 |
<itemData name="Annotation" defStyleNum="dsAttribute" spellChecking="false"/> |
| 432 |
<itemData name="Selector Id" defStyleNum="dsPreprocessor" bold="1" spellChecking="false"/> |
| 433 |
<itemData name="Selector Class" defStyleNum="dsFunction" spellChecking="false"/> |
| 434 |
<itemData name="Selector Attribute" defStyleNum="dsExtension" spellChecking="false"/> |
| 435 |
<itemData name="Selector Pseudo" defStyleNum="dsInformation" italic="1" spellChecking="false"/> |
| 436 |
<itemData name="Selector Tag" defStyleNum="dsNormal" spellChecking="false"/> |
| 437 |
<itemData name="Placeholder Selector" defStyleNum="dsBuiltIn" spellChecking="false"/> |
| 438 |
<itemData name="Comment" defStyleNum="dsComment" /> |
| 439 |
<itemData name="Error" defStyleNum="dsError" spellChecking="false"/> |
| 440 |
</itemDatas> |
| 441 |
</highlighting> |
| 442 |
|
| 443 |
<general> |
| 444 |
<keywords casesensitive="0" weakDeliminator="-%@" /> |
| 445 |
<folding indentationsensitive="1" /> |
| 446 |
<comments> |
| 447 |
<comment name="singleLine" start="//" position="afterwhitespace"/> |
| 448 |
</comments> |
| 449 |
</general> |
| 450 |
|
| 451 |
</language> |
| 452 |
<!-- kate: replace-tabs on; tab-width 4; indent-width 4; --> |