| 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 |
<!-- |
| 10 |
|
| 11 |
Kate SCSS syntax highlighting definition |
| 12 |
|
| 13 |
Changelog: |
| 14 |
|
| 15 |
- Version 7, by Jonathan Poelen |
| 16 |
- fix tag followed by a pseudo-class in a nested rule (@media, ...) |
| 17 |
- fix constraint in a rule |
| 18 |
- fix Kate auto-completion for properties and rules |
| 19 |
- fix highlighting of pseudoclass/pseudoelement in a sub-rule |
| 20 |
- New highlighting categories: Keyword, Operator, Separator Symbol, SpecialChar, Value Keyword, Color, Number, Unit, Selector Tag, Placeholder Selector |
| 21 |
|
| 22 |
- Version 4, by Guo Yunhe [email protected] |
| 23 |
- Remake for complex SCSS syntax, avoid errors |
| 24 |
|
| 25 |
- Version 2.06, by Guo Yunhe |
| 26 |
- Add all W3C Work Draft properties, inherit rules from css.xml |
| 27 |
|
| 28 |
- Version 1.2.03.6, by Mte90 |
| 29 |
- Css3 Tag |
| 30 |
|
| 31 |
- Version 1.2.03.1, by Tijn Schuurmans |
| 32 |
- Added basic support for "@include mixin();" |
| 33 |
- Clean the indentation to use 4 spaces everywhere |
| 34 |
|
| 35 |
--> |
| 36 |
|
| 37 |
<language name="SCSS" version="14" kateversion="5.53" section="Markup" extensions="*.scss" indenter="cstyle" mimetype="text/css" author="Wilbert Berendsen ([email protected])" license="LGPL" priority="10"> |
| 38 |
|
| 39 |
<highlighting> |
| 40 |
<list name="properties"> |
| 41 |
<include>properties##CSS</include> |
| 42 |
</list> |
| 43 |
|
| 44 |
<list name="sub-properties"> |
| 45 |
<item>action</item> |
| 46 |
<item>adjust</item> |
| 47 |
<item>after</item> |
| 48 |
<item>align-all</item> |
| 49 |
<item>align-last</item> |
| 50 |
<item>align</item> |
| 51 |
<item>alternates</item> |
| 52 |
<item>anchor</item> |
| 53 |
<item>area</item> |
| 54 |
<item>areas</item> |
| 55 |
<item>as</item> |
| 56 |
<item>attachment</item> |
| 57 |
<item>auto-columns</item> |
| 58 |
<item>auto-flow</item> |
| 59 |
<item>auto-rows</item> |
| 60 |
<item>balance</item> |
| 61 |
<item>baseline</item> |
| 62 |
<item>basis</item> |
| 63 |
<item>before</item> |
| 64 |
<item>behavior-block</item> |
| 65 |
<item>behavior-inlie</item> |
| 66 |
<item>behavior-x</item> |
| 67 |
<item>behavior-y</item> |
| 68 |
<item>behavior</item> |
| 69 |
<item>bidi</item> |
| 70 |
<item>blend-mode</item> |
| 71 |
<item>block-color</item> |
| 72 |
<item>block-end-color</item> |
| 73 |
<item>block-end-style</item> |
| 74 |
<item>block-end-width</item> |
| 75 |
<item>block-end</item> |
| 76 |
<item>block-start-color</item> |
| 77 |
<item>block-start-style</item> |
| 78 |
<item>block-start-width</item> |
| 79 |
<item>block-start</item> |
| 80 |
<item>block-style</item> |
| 81 |
<item>block-width</item> |
| 82 |
<item>block</item> |
| 83 |
<item>border-mode</item> |
| 84 |
<item>border-outset</item> |
| 85 |
<item>border-repeat</item> |
| 86 |
<item>border-slice</item> |
| 87 |
<item>border-source</item> |
| 88 |
<item>bottom-color</item> |
| 89 |
<item>bottom-left-radius</item> |
| 90 |
<item>bottom-right-radius</item> |
| 91 |
<item>bottom-style</item> |
| 92 |
<item>bottom-width</item> |
| 93 |
<item>boundary-detection</item> |
| 94 |
<item>boundary-expansion</item> |
| 95 |
<item>boundary</item> |
| 96 |
<item>box</item> |
| 97 |
<item>break</item> |
| 98 |
<item>caps</item> |
| 99 |
<item>cells</item> |
| 100 |
<item>change</item> |
| 101 |
<item>character</item> |
| 102 |
<item>chars</item> |
| 103 |
<item>clamp</item> |
| 104 |
<item>clip-margin</item> |
| 105 |
<item>collapse</item> |
| 106 |
<item>color-adjust</item> |
| 107 |
<item>column-end</item> |
| 108 |
<item>column-start</item> |
| 109 |
<item>column</item> |
| 110 |
<item>combine-upright</item> |
| 111 |
<item>composite</item> |
| 112 |
<item>contain</item> |
| 113 |
<item>count</item> |
| 114 |
<item>decoration-break</item> |
| 115 |
<item>decoration-color</item> |
| 116 |
<item>decoration-line</item> |
| 117 |
<item>decoration-skip-box</item> |
| 118 |
<item>decoration-skip-ink</item> |
| 119 |
<item>decoration-skip-inset</item> |
| 120 |
<item>decoration-skip-self</item> |
| 121 |
<item>decoration-skip-spaces</item> |
| 122 |
<item>decoration-skip</item> |
| 123 |
<item>decoration-style</item> |
| 124 |
<item>decoration-thickness</item> |
| 125 |
<item>decoration-width</item> |
| 126 |
<item>decoration</item> |
| 127 |
<item>defer</item> |
| 128 |
<item>delay</item> |
| 129 |
<item>detection</item> |
| 130 |
<item>distance</item> |
| 131 |
<item>down</item> |
| 132 |
<item>duration</item> |
| 133 |
<item>during</item> |
| 134 |
<item>east-asian</item> |
| 135 |
<item>edge</item> |
| 136 |
<item>end-end-radius</item> |
| 137 |
<item>end-radius</item> |
| 138 |
<item>end-start-radius</item> |
| 139 |
<item>end-style</item> |
| 140 |
<item>end-width</item> |
| 141 |
<item>end</item> |
| 142 |
<item>events</item> |
| 143 |
<item>expansion</item> |
| 144 |
<item>family</item> |
| 145 |
<item>feature-settings</item> |
| 146 |
<item>fill-mode</item> |
| 147 |
<item>filters</item> |
| 148 |
<item>fit</item> |
| 149 |
<item>flow</item> |
| 150 |
<item>fragment</item> |
| 151 |
<item>from</item> |
| 152 |
<item>function</item> |
| 153 |
<item>group-align</item> |
| 154 |
<item>grow</item> |
| 155 |
<item>gutter</item> |
| 156 |
<item>header</item> |
| 157 |
<item>height-step</item> |
| 158 |
<item>image-outset</item> |
| 159 |
<item>image-repeat</item> |
| 160 |
<item>image-slice</item> |
| 161 |
<item>image-source</item> |
| 162 |
<item>image-threshold</item> |
| 163 |
<item>image-transform</item> |
| 164 |
<item>image-width</item> |
| 165 |
<item>image</item> |
| 166 |
<item>increment</item> |
| 167 |
<item>indent</item> |
| 168 |
<item>ink</item> |
| 169 |
<item>inline-color</item> |
| 170 |
<item>inline-end-color</item> |
| 171 |
<item>inline-end-style</item> |
| 172 |
<item>inline-end-width</item> |
| 173 |
<item>inline-end</item> |
| 174 |
<item>inline-start-color</item> |
| 175 |
<item>inline-start-style</item> |
| 176 |
<item>inline-start-width</item> |
| 177 |
<item>inline-start</item> |
| 178 |
<item>inline-style</item> |
| 179 |
<item>inline-width</item> |
| 180 |
<item>inline</item> |
| 181 |
<item>insert</item> |
| 182 |
<item>inside</item> |
| 183 |
<item>interpolation-filters</item> |
| 184 |
<item>into</item> |
| 185 |
<item>intrinsic-block-size</item> |
| 186 |
<item>intrinsic-sizing</item> |
| 187 |
<item>items</item> |
| 188 |
<item>iteration-count</item> |
| 189 |
<item>justify</item> |
| 190 |
<item>kerning</item> |
| 191 |
<item>knockout-left</item> |
| 192 |
<item>knockout-right</item> |
| 193 |
<item>label</item> |
| 194 |
<item>language-override</item> |
| 195 |
<item>last</item> |
| 196 |
<item>layout</item> |
| 197 |
<item>left-color</item> |
| 198 |
<item>left-radius</item> |
| 199 |
<item>left-style</item> |
| 200 |
<item>left-width</item> |
| 201 |
<item>letter-align</item> |
| 202 |
<item>letter-wrap</item> |
| 203 |
<item>letter</item> |
| 204 |
<item>level</item> |
| 205 |
<item>ligatures</item> |
| 206 |
<item>limit-chars</item> |
| 207 |
<item>limit-last</item> |
| 208 |
<item>limit-lines</item> |
| 209 |
<item>limit-zone</item> |
| 210 |
<item>line</item> |
| 211 |
<item>lines</item> |
| 212 |
<item>loop</item> |
| 213 |
<item>max-size</item> |
| 214 |
<item>merge</item> |
| 215 |
<item>mid</item> |
| 216 |
<item>min-size</item> |
| 217 |
<item>mode</item> |
| 218 |
<item>name</item> |
| 219 |
<item>navigation-action</item> |
| 220 |
<item>navigation-contain</item> |
| 221 |
<item>navigation-function</item> |
| 222 |
<item>numeral</item> |
| 223 |
<item>numeric</item> |
| 224 |
<item>optical-sizing</item> |
| 225 |
<item>order</item> |
| 226 |
<item>orientation-vertical</item> |
| 227 |
<item>orientation</item> |
| 228 |
<item>origin</item> |
| 229 |
<item>outset</item> |
| 230 |
<item>outside</item> |
| 231 |
<item>overhang</item> |
| 232 |
<item>override</item> |
| 233 |
<item>palette</item> |
| 234 |
<item>path</item> |
| 235 |
<item>pattern</item> |
| 236 |
<item>pitch</item> |
| 237 |
<item>play-state</item> |
| 238 |
<item>point</item> |
| 239 |
<item>policy</item> |
| 240 |
<item>property</item> |
| 241 |
<item>punctuation</item> |
| 242 |
<item>radius</item> |
| 243 |
<item>range</item> |
| 244 |
<item>rate</item> |
| 245 |
<item>ratio</item> |
| 246 |
<item>reference</item> |
| 247 |
<item>rendering</item> |
| 248 |
<item>repeat</item> |
| 249 |
<item>reset</item> |
| 250 |
<item>resolution</item> |
| 251 |
<item>right-color</item> |
| 252 |
<item>right-radius</item> |
| 253 |
<item>right-style</item> |
| 254 |
<item>right-width</item> |
| 255 |
<item>round</item> |
| 256 |
<item>row-end</item> |
| 257 |
<item>row-start</item> |
| 258 |
<item>row</item> |
| 259 |
<item>rows</item> |
| 260 |
<item>rule-color</item> |
| 261 |
<item>rule-style</item> |
| 262 |
<item>rule-width</item> |
| 263 |
<item>rule</item> |
| 264 |
<item>scheme</item> |
| 265 |
<item>segment</item> |
| 266 |
<item>select</item> |
| 267 |
<item>self</item> |
| 268 |
<item>set</item> |
| 269 |
<item>settings</item> |
| 270 |
<item>shadow</item> |
| 271 |
<item>shape</item> |
| 272 |
<item>shift</item> |
| 273 |
<item>shrink</item> |
| 274 |
<item>side</item> |
| 275 |
<item>size-adjust</item> |
| 276 |
<item>size</item> |
| 277 |
<item>sizing</item> |
| 278 |
<item>skip-box</item> |
| 279 |
<item>skip-ink</item> |
| 280 |
<item>skip-inset</item> |
| 281 |
<item>skip-self</item> |
| 282 |
<item>skip-spaces</item> |
| 283 |
<item>skip</item> |
| 284 |
<item>slice</item> |
| 285 |
<item>small-caps</item> |
| 286 |
<item>snap-align</item> |
| 287 |
<item>snap-stop</item> |
| 288 |
<item>snap-type</item> |
| 289 |
<item>snap</item> |
| 290 |
<item>source</item> |
| 291 |
<item>space-collapse</item> |
| 292 |
<item>space-trim</item> |
| 293 |
<item>space</item> |
| 294 |
<item>spaces</item> |
| 295 |
<item>spacing</item> |
| 296 |
<item>span</item> |
| 297 |
<item>speed</item> |
| 298 |
<item>start-color</item> |
| 299 |
<item>start-end-radius</item> |
| 300 |
<item>start-radius</item> |
| 301 |
<item>start-start-radius</item> |
| 302 |
<item>start-style</item> |
| 303 |
<item>start-width</item> |
| 304 |
<item>start</item> |
| 305 |
<item>state</item> |
| 306 |
<item>step-align</item> |
| 307 |
<item>step-insert</item> |
| 308 |
<item>step-round</item> |
| 309 |
<item>step-size</item> |
| 310 |
<item>step</item> |
| 311 |
<item>stop</item> |
| 312 |
<item>stress</item> |
| 313 |
<item>stretch</item> |
| 314 |
<item>style-image</item> |
| 315 |
<item>style-position</item> |
| 316 |
<item>style-type</item> |
| 317 |
<item>style</item> |
| 318 |
<item>synthesis-small-caps</item> |
| 319 |
<item>synthesis-style</item> |
| 320 |
<item>synthesis-weight</item> |
| 321 |
<item>synthesis</item> |
| 322 |
<item>template-areas</item> |
| 323 |
<item>template-columns</item> |
| 324 |
<item>template-rows</item> |
| 325 |
<item>template</item> |
| 326 |
<item>thickness</item> |
| 327 |
<item>threshold</item> |
| 328 |
<item>through</item> |
| 329 |
<item>timing-function</item> |
| 330 |
<item>top-color</item> |
| 331 |
<item>top-left-radius</item> |
| 332 |
<item>top-right-radius</item> |
| 333 |
<item>top-style</item> |
| 334 |
<item>top-width</item> |
| 335 |
<item>trim</item> |
| 336 |
<item>type</item> |
| 337 |
<item>underline-offset</item> |
| 338 |
<item>underline-position</item> |
| 339 |
<item>up</item> |
| 340 |
<item>upright</item> |
| 341 |
<item>variant-alternates</item> |
| 342 |
<item>variant-caps</item> |
| 343 |
<item>variant-east-asian</item> |
| 344 |
<item>variant-emoji</item> |
| 345 |
<item>variant-ligatures</item> |
| 346 |
<item>variant-numeric</item> |
| 347 |
<item>variant-position</item> |
| 348 |
<item>variant</item> |
| 349 |
<item>variation-settings</item> |
| 350 |
<item>vertical</item> |
| 351 |
<item>weight</item> |
| 352 |
<item>wrap</item> |
| 353 |
<item>x</item> |
| 354 |
<item>y</item> |
| 355 |
<item>zone</item> |
| 356 |
</list> |
| 357 |
|
| 358 |
<list name="special values"> |
| 359 |
<item>true</item> |
| 360 |
<item>false</item> |
| 361 |
<item>null</item> |
| 362 |
</list> |
| 363 |
|
| 364 |
<list name="value keywords"> |
| 365 |
<include>value keywords##CSS</include> |
| 366 |
</list> |
| 367 |
|
| 368 |
<list name="values"> |
| 369 |
<include>values##CSS</include> |
| 370 |
</list> |
| 371 |
|
| 372 |
<list name="colors"> |
| 373 |
<include>colors##CSS</include> |
| 374 |
</list> |
| 375 |
|
| 376 |
<list name="functions"> |
| 377 |
<include>functions##CSS</include> |
| 378 |
|
| 379 |
<!-- sass --> |
| 380 |
<item>red</item> |
| 381 |
<item>green</item> |
| 382 |
<item>blue</item> |
| 383 |
<item>mix</item> |
| 384 |
<item>hue</item> |
| 385 |
<item>saturation</item> |
| 386 |
<item>lightness</item> |
| 387 |
<item>adjust-hue</item> |
| 388 |
<item>lighten</item> |
| 389 |
<item>darken</item> |
| 390 |
<item>saturate</item> |
| 391 |
<item>desaturate</item> |
| 392 |
<item>grayscale</item> |
| 393 |
<item>complement</item> |
| 394 |
<item>invert</item> |
| 395 |
<item>alpha</item> |
| 396 |
<item>opacify</item> |
| 397 |
<item>transparentize</item> |
| 398 |
<item>adjust-color</item> |
| 399 |
<item>scale-color</item> |
| 400 |
<item>change-color</item> |
| 401 |
<item>ie-hex-str</item> |
| 402 |
<item>unquote</item> |
| 403 |
<item>quote</item> |
| 404 |
<item>str-length</item> |
| 405 |
<item>str-insert</item> |
| 406 |
<item>str-index</item> |
| 407 |
<item>str-slice</item> |
| 408 |
<item>to-upper-case</item> |
| 409 |
<item>to-lower-case</item> |
| 410 |
<item>percentage</item> |
| 411 |
<item>round</item> |
| 412 |
<item>ceil</item> |
| 413 |
<item>floor</item> |
| 414 |
<item>abs</item> |
| 415 |
<item>min</item> |
| 416 |
<item>max</item> |
| 417 |
<item>random</item> |
| 418 |
<item>length</item> |
| 419 |
<item>nth</item> |
| 420 |
<item>set-nth</item> |
| 421 |
<item>join</item> |
| 422 |
<item>append</item> |
| 423 |
<item>zip</item> |
| 424 |
<item>index</item> |
| 425 |
<item>list-separator</item> |
| 426 |
<item>is-bracketed</item> |
| 427 |
<item>map-get</item> |
| 428 |
<item>map-merge</item> |
| 429 |
<item>map-remove</item> |
| 430 |
<item>map-keys</item> |
| 431 |
<item>map-values</item> |
| 432 |
<item>map-has-key</item> |
| 433 |
<item>keywords</item> |
| 434 |
<item>selector-nest</item> |
| 435 |
<item>selector-append</item> |
| 436 |
<item>selector-extend</item> |
| 437 |
<item>selector-replace</item> |
| 438 |
<item>selector-unify</item> |
| 439 |
<item>is-superselector</item> |
| 440 |
<item>simple-selectors</item> |
| 441 |
<item>selector-parse</item> |
| 442 |
<item>feature-exists</item> |
| 443 |
<item>variable-exists</item> |
| 444 |
<item>global-variable-exists</item> |
| 445 |
<item>function-exists</item> |
| 446 |
<item>mixin-exists</item> |
| 447 |
<item>content-exists</item> |
| 448 |
<item>inspect</item> |
| 449 |
<item>type-of</item> |
| 450 |
<item>unit</item> |
| 451 |
<item>unitless</item> |
| 452 |
<item>comparable</item> |
| 453 |
<item>call</item> |
| 454 |
<item>get-function</item> |
| 455 |
<item>if</item> |
| 456 |
<item>unique-id</item> |
| 457 |
</list> |
| 458 |
|
| 459 |
<list name="medias"> |
| 460 |
<include>medias##CSS</include> |
| 461 |
</list> |
| 462 |
|
| 463 |
<!-- prefixed by :: --> |
| 464 |
<list name="pseudoelements"> |
| 465 |
<include>pseudoelements##CSS</include> |
| 466 |
</list> |
| 467 |
|
| 468 |
<!-- prefixed by : --> |
| 469 |
<list name="pseudoclasses"> |
| 470 |
<include>pseudoclasses##CSS</include> |
| 471 |
</list> |
| 472 |
|
| 473 |
<list name="pseudoclass-selector"> |
| 474 |
<include>pseudoclass-selector##CSS</include> |
| 475 |
</list> |
| 476 |
|
| 477 |
<list name="pseudoclasses-@page"> |
| 478 |
<include>pseudoclasses-@page##CSS</include> |
| 479 |
</list> |
| 480 |
|
| 481 |
<list name="at-rules"> |
| 482 |
<include>at-rules##CSS</include> |
| 483 |
|
| 484 |
<!-- scss --> |
| 485 |
<item>@debug</item> |
| 486 |
<item>@warn</item> |
| 487 |
<item>@error</item> |
| 488 |
<item>@content</item> |
| 489 |
<item>@return</item> |
| 490 |
</list> |
| 491 |
|
| 492 |
<list name="nested at-rules"> |
| 493 |
<include>nested at-rules##CSS</include> |
| 494 |
|
| 495 |
<!-- scss --> |
| 496 |
<item>@at-rule</item> |
| 497 |
<item>@for</item> |
| 498 |
<item>@each</item> |
| 499 |
<item>@while</item> |
| 500 |
</list> |
| 501 |
|
| 502 |
<list name="other at-rules"> |
| 503 |
<include>other at-rules##CSS</include> |
| 504 |
|
| 505 |
<!-- scss --> |
| 506 |
<item>@else</item> |
| 507 |
<item>@extend</item> |
| 508 |
<item>@function</item> |
| 509 |
<item>@if</item> |
| 510 |
<item>@include</item> |
| 511 |
<item>@mixin</item> |
| 512 |
</list> |
| 513 |
|
| 514 |
<list name="within-@viewport"> |
| 515 |
<include>within-@viewport##CSS</include> |
| 516 |
</list> |
| 517 |
|
| 518 |
<list name="within-@page"> |
| 519 |
<include>within-@page##CSS</include> |
| 520 |
</list> |
| 521 |
|
| 522 |
<list name="within-@font-face"> |
| 523 |
<include>within-@font-face##CSS</include> |
| 524 |
</list> |
| 525 |
|
| 526 |
<list name="within-@keyframes"> |
| 527 |
<include>within-@keyframes##CSS</include> |
| 528 |
</list> |
| 529 |
|
| 530 |
<list name="media operators"> |
| 531 |
<include>media operators##CSS</include> |
| 532 |
</list> |
| 533 |
|
| 534 |
<list name="operators"> |
| 535 |
<item>and</item> |
| 536 |
<item>or</item> |
| 537 |
<item>not</item> |
| 538 |
</list> |
| 539 |
|
| 540 |
<list name="annotations"> |
| 541 |
<item>important</item> |
| 542 |
<item>default</item> |
| 543 |
<item>global</item> |
| 544 |
</list> |
| 545 |
|
| 546 |
<contexts> |
| 547 |
<context name="Base" attribute="Normal Text" lineEndContext="#stay"> |
| 548 |
<DetectSpaces /> |
| 549 |
<IncludeRules context="FindComments" /> |
| 550 |
<DetectChar attribute="Normal Text" context="RuleSet" char="{" beginRegion="ruleset" /> |
| 551 |
<DetectChar attribute="At Rule" context="SelectAtRule" char="@" lookAhead="true" /> |
| 552 |
<!-- find selectors // .class #id :hover :nth-child(2n+1) [type="search"] --> |
| 553 |
<DetectChar attribute="Selector Attribute" context="SelectorAttr" char="[" /> |
| 554 |
<DetectChar attribute="Separator Symbol" context="IsSelectors" char="," /> |
| 555 |
<AnyChar attribute="Operator" context="IsSelectors" String="*>+~|&" /> |
| 556 |
<RegExpr attribute="Selector Pseudo" context="SelectorPseudo" String=":(?=[a-z:])" /> |
| 557 |
<RegExpr attribute="Selector Id" context="IsSelectors" String="#[-]?(&nmstart;)(&nmchar;)*" /> |
| 558 |
<RegExpr attribute="Selector Class" context="IsSelectors" String="\.([a-zA-Z0-9\-_]|[\x80-\xFF]|\\[0-9A-Fa-f]{1,6})*" /> |
| 559 |
<RegExpr attribute="Placeholder Selector" context="IsSelectors" String="%[_a-zA-Z][_a-zA-Z\-]*" /> |
| 560 |
<RegExpr attribute="Selector Tag" context="IsSelectors" String="[-]?(&nmstart;)(&nmchar;)*(?=\s|:?[#.&{[*>+~|,]|:[a-z:])" /> |
| 561 |
<RegExpr attribute="Variable" context="VariableDefine" String="\$[a-zA-Z0-9\-_]+(?=\s*:)" /> |
| 562 |
<Detect2Chars attribute="Interpolation" context="InterpolationMaybeProperty" char="#" char1="{" /> |
| 563 |
</context> |
| 564 |
|
| 565 |
<context name="IsSelectors" attribute="Normal Text" lineEndContext="#stay"> |
| 566 |
<DetectSpaces /> |
| 567 |
<DetectChar attribute="Normal Text" context="#pop!RuleSet" char="{" beginRegion="ruleset" /> |
| 568 |
<DetectChar attribute="At Rule" context="#pop!SelectAtRule" char="@" lookAhead="true" /> |
| 569 |
<DetectChar attribute="Separator Symbol" context="#stay" char="," /> |
| 570 |
<DetectChar attribute="Error" context="#pop" char=";" /> |
| 571 |
<AnyChar attribute="Operator" context="#stay" String="*>+~|&" /> |
| 572 |
<IncludeRules context="SelectorTypes" /> |
| 573 |
</context> |
| 574 |
|
| 575 |
<context name="FindSelector" attribute="Normal Text" lineEndContext="#stay"> |
| 576 |
<AnyChar attribute="Error" context="#stay" String=",&" /> |
| 577 |
<AnyChar attribute="Operator" context="#stay" String="*>+~|" /> |
| 578 |
<IncludeRules context="SelectorTypes" /> |
| 579 |
</context> |
| 580 |
|
| 581 |
<context name="SelectorTypes" attribute="Normal Text" lineEndContext="#stay"> |
| 582 |
<!-- find selectors // .class #id :hover :nth-child(2n+1) [type="search"] --> |
| 583 |
<DetectChar attribute="Selector Pseudo" context="SelectorPseudo" char=":" /> |
| 584 |
<DetectChar attribute="Selector Attribute" context="SelectorAttr" char="[" /> |
| 585 |
<IncludeRules context="FindComments" /> |
| 586 |
<RegExpr attribute="Selector Id" context="#stay" String="#[-]?(&nmstart;)(&nmchar;)*" /> |
| 587 |
<RegExpr attribute="Selector Class" context="#stay" String="\.([a-zA-Z0-9\-_]|[\x80-\xFF]|\\[0-9A-Fa-f]{1,6})*" /> |
| 588 |
<RegExpr attribute="Placeholder Selector" context="#stay" String="%[_a-zA-Z][_a-zA-Z\-]*" /> |
| 589 |
<RegExpr attribute="Selector Tag" context="#stay" String="[-]?(&nmstart;)(&nmchar;)*" /> |
| 590 |
<Detect2Chars attribute="Interpolation" context="Interpolation" char="#" char1="{" /> |
| 591 |
</context> |
| 592 |
|
| 593 |
<context name="VariableDefine" attribute="Normal Text" lineEndContext="#stay"> |
| 594 |
<DetectChar attribute="Normal Text" context="RuleParameters" char=":" /> |
| 595 |
</context> |
| 596 |
|
| 597 |
<context name="Interpolation" attribute="Normal Text" lineEndContext="#stay"> |
| 598 |
<DetectSpaces /> |
| 599 |
<DetectChar attribute="Interpolation" context="#pop" char="}" /> |
| 600 |
<IncludeRules context="FindStrings" /> |
| 601 |
<IncludeRules context="FindFunctions" /> |
| 602 |
<IncludeRules context="FindValues" /> |
| 603 |
</context> |
| 604 |
|
| 605 |
<context name="InterpolationMaybeProperty" attribute="Normal Text" lineEndContext="#stay"> |
| 606 |
<DetectSpaces /> |
| 607 |
<DetectChar attribute="Interpolation" context="#pop!MaybeProperty" char="}" /> |
| 608 |
<IncludeRules context="FindStrings" /> |
| 609 |
<IncludeRules context="FindFunctions" /> |
| 610 |
<IncludeRules context="FindValues" /> |
| 611 |
</context> |
| 612 |
|
| 613 |
<context name="MaybeProperty" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop"> |
| 614 |
<DetectSpaces /> |
| 615 |
<IncludeRules context="FindComments" /> |
| 616 |
<RegExpr attribute="Normal Text" context="Rule" String=":($|[/{\s0-9$"'])" lookAhead="true"/> |
| 617 |
</context> |
| 618 |
|
| 619 |
|
| 620 |
<!-- find functions // rgba(255,255,255,0.75) --> |
| 621 |
<context name="FindFunctions" attribute="Normal Text" lineEndContext="#stay"> |
| 622 |
<RegExpr attribute="Function" context="Function" String="[a-z\-]{2,}\(" lookAhead="true" /> |
| 623 |
</context> |
| 624 |
|
| 625 |
<!-- find values // 10px 12pt 2.5em 1rem 75% #ffcc99 red solid --> |
| 626 |
<context name="FindValues" attribute="Normal Text" lineEndContext="#stay"> |
| 627 |
<DetectChar attribute="Annotation" context="Annotation" char="!" /> |
| 628 |
<keyword attribute="Operator" context="#stay" String="operators" /> |
| 629 |
<keyword attribute="Value Keyword" context="#stay" String="value keywords" /> |
| 630 |
<keyword attribute="Value" context="#stay" String="values" /> |
| 631 |
<keyword attribute="Color" context="#stay" String="colors" /> |
| 632 |
<RegExpr attribute="Number" context="FindUnits" String="([0-9]+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?" /> |
| 633 |
<RegExpr attribute="Color" context="#stay" String="#([0-9A-Fa-f]{3,4}){1,2}\b" /> |
| 634 |
<RegExpr attribute="Variable" context="#stay" String="\$[a-zA-Z0-9\-_]+" /> |
| 635 |
<keyword attribute="Value Keyword" context="#stay" String="special values" /> |
| 636 |
<RegExpr attribute="Normal Text" context="#stay" String="[-]?(&nmstart;)(&nmchar;)*" /> |
| 637 |
<AnyChar attribute="Operator" context="#stay" String="*/+%-" /> |
| 638 |
<Detect2Chars attribute="Interpolation" context="Interpolation" char="#" char1="{" /> |
| 639 |
</context> |
| 640 |
|
| 641 |
<context name="Annotation" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> |
| 642 |
<keyword attribute="Annotation" context="#pop" String="annotations" /> |
| 643 |
</context> |
| 644 |
|
| 645 |
<context name="FindUnits" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> |
| 646 |
<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)" /> |
| 647 |
</context> |
| 648 |
|
| 649 |
<!-- find strings // "some words" 'some words' --> |
| 650 |
<context name="FindStrings" attribute="Normal Text" lineEndContext="#stay"> |
| 651 |
<DetectChar attribute="String" context="StringDQ" char=""" /> |
| 652 |
<DetectChar attribute="String" context="StringSQ" char="'" /> |
| 653 |
</context> |
| 654 |
|
| 655 |
<!-- find comments // /* comment */ --> |
| 656 |
<context name="FindComments" attribute="Normal Text" lineEndContext="#stay"> |
| 657 |
<Detect2Chars attribute="Comment" context="IsComments" char="/" char1="/" lookAhead="true"/> |
| 658 |
<Detect2Chars attribute="Comment" context="IsComments" char="/" char1="*" lookAhead="true"/> |
| 659 |
</context> |
| 660 |
|
| 661 |
<context name="IsComments" attribute="Normal Text" lineEndContext="#stay"> |
| 662 |
<RegExpr attribute="Region Marker" context="#stay" String="/\*\s*BEGIN\b.*\*/|//\s*BEGIN\b.*" beginRegion="UserDefined" /> |
| 663 |
<RegExpr attribute="Region Marker" context="#stay" String="/\*\s*END\b.*\*/|//\s*END\b.*" endRegion="UserDefined" /> |
| 664 |
<Detect2Chars attribute="Comment" context="Comment" char="/" char1="*" beginRegion="comment" /> |
| 665 |
<Detect2Chars attribute="Comment" context="SassComment" char="/" char1="/" /> |
| 666 |
</context> |
| 667 |
|
| 668 |
<context name="SassComment" attribute="Comment" lineEndContext="#pop#pop"> |
| 669 |
<DetectSpaces /> |
| 670 |
<IncludeRules context="##Comments" /> |
| 671 |
<DetectIdentifier /> |
| 672 |
</context> |
| 673 |
|
| 674 |
<context name="SelectAtRule" attribute="At Rule" lineEndContext="#pop"> |
| 675 |
<keyword attribute="At Rule" context="#pop!NestedAtRule" String="nested at-rules" /> |
| 676 |
<keyword attribute="At Rule" context="#pop!AtRule" String="at-rules" /> |
| 677 |
<!-- CSS: inline --> |
| 678 |
<!-- SCSS: inline or block --> |
| 679 |
<WordDetect attribute="At Rule" context="#pop!UnknownAtRule" String="@include" /> |
| 680 |
<WordDetect attribute="At Rule" context="#pop!@extend" String="@extend" /> |
| 681 |
<WordDetect attribute="At Rule" context="#pop!@mixin" String="@mixin" /> |
| 682 |
<WordDetect attribute="At Rule" context="#pop!@mixin" String="@function" /> |
| 683 |
<WordDetect attribute="At Rule" context="#pop!@keyframes" String="@keyframes" /> |
| 684 |
<WordDetect attribute="At Rule" context="#pop!@viewport" String="@viewport" /> |
| 685 |
<WordDetect attribute="At Rule" context="#pop!@font-face" String="@font-face" /> |
| 686 |
<WordDetect attribute="At Rule" context="#pop!@if" String="@if" /> |
| 687 |
<WordDetect attribute="At Rule" context="#pop!@else" String="@else" /> |
| 688 |
<WordDetect attribute="At Rule" context="#pop!@page" String="@page" /> |
| 689 |
<RegExpr attribute="At Rule" context="#pop!UnknownAtRule" String="@[a-zA-Z0-9\-_]+\b" /> |
| 690 |
</context> |
| 691 |
|
| 692 |
<context name="@if" attribute="Normal Text" lineEndContext="#stay"> |
| 693 |
<DetectSpaces /> |
| 694 |
<DetectChar attribute="Normal Text" context="#pop!RuleSet" char="{" beginRegion="ruleset" /> |
| 695 |
<IncludeRules context="FindComments" /> |
| 696 |
<IncludeRules context="FindStrings" /> |
| 697 |
<IncludeRules context="FindFunctions" /> |
| 698 |
<IncludeRules context="FindValues" /> |
| 699 |
<AnyChar attribute="Operator" context="#stay" String="=!<>" /> |
| 700 |
</context> |
| 701 |
|
| 702 |
<context name="@else" attribute="Error" lineEndContext="#stay"> |
| 703 |
<DetectSpaces attribute="Normal Text" /> |
| 704 |
<DetectChar attribute="Normal Text" context="#pop!RuleSet" char="{" beginRegion="ruleset" /> |
| 705 |
<IncludeRules context="FindComments" /> |
| 706 |
<WordDetect attribute="At Rule" context="#pop!@if" String="if" /> |
| 707 |
<DetectIdentifier attribute="Error" /> |
| 708 |
</context> |
| 709 |
|
| 710 |
<context name="@extend" attribute="Normal Text" lineEndContext="#stay"> |
| 711 |
<DetectSpaces /> |
| 712 |
<DetectChar attribute="Separator Symbol" context="#pop" char=";" /> |
| 713 |
<DetectChar attribute="Normal Text" context="#pop" char="}" endRegion="ruleset" /> |
| 714 |
<IncludeRules context="FindSelector" /> |
| 715 |
</context> |
| 716 |
|
| 717 |
<context name="@mixin" attribute="Normal Text" lineEndContext="#stay"> |
| 718 |
<DetectSpaces /> |
| 719 |
<IncludeRules context="FindComments" /> |
| 720 |
<RegExpr attribute="Function" context="MixinParameter" String="[a-zA-Z0-9\-_]+" /> |
| 721 |
</context> |
| 722 |
|
| 723 |
<context name="MixinParameter" attribute="Error" lineEndContext="#stay"> |
| 724 |
<DetectSpaces attribute="Normal Text" /> |
| 725 |
<AnyChar attribute="Normal Text" context="#stay" String="()" /> |
| 726 |
<DetectChar attribute="Separator Symbol" context="#stay" char="," /> |
| 727 |
<DetectChar attribute="Normal Text" context="#pop#pop!RuleSet" char="{" beginRegion="ruleset" /> |
| 728 |
<IncludeRules context="FindComments" /> |
| 729 |
<RegExpr attribute="Variable" context="#stay" String="\$[a-zA-Z0-9\-_]+" /> |
| 730 |
<StringDetect attribute="Operator" context="#stay" String="..." /> |
| 731 |
</context> |
| 732 |
|
| 733 |
<context name="@keyframes" attribute="Normal Text" lineEndContext="#stay"> |
| 734 |
<DetectSpaces /> |
| 735 |
<IncludeRules context="FindComments" /> |
| 736 |
<DetectChar attribute="Normal Text" context="Within-@keyframes" char="{" beginRegion="ruleset" /> |
| 737 |
</context> |
| 738 |
|
| 739 |
<context name="Within-@keyframes" attribute="Normal Text" lineEndContext="#stay"> |
| 740 |
<DetectSpaces /> |
| 741 |
<IncludeRules context="FindComments" /> |
| 742 |
<DetectChar attribute="Normal Text" context="#pop#pop" char="}" endRegion="ruleset" /> |
| 743 |
<DetectChar attribute="Normal Text" context="RuleSet" char="{" beginRegion="ruleset" /> |
| 744 |
<keyword attribute="Value" context="#stay" String="within-@keyframes" /> |
| 745 |
<RegExpr attribute="Value" context="#stay" String="[-+]?[0-9.]+%" /> |
| 746 |
</context> |
| 747 |
|
| 748 |
<context name="@viewport" attribute="Normal Text" lineEndContext="#stay"> |
| 749 |
<DetectSpaces /> |
| 750 |
<IncludeRules context="FindComments" /> |
| 751 |
<DetectChar attribute="Selector Pseudo" context="SelectorPseudo" char=":" /> |
| 752 |
<DetectChar attribute="Normal Text" context="#pop!Within-@viewport" char="{" beginRegion="ruleset" /> |
| 753 |
</context> |
| 754 |
|
| 755 |
<context name="Within-@viewport" attribute="Normal Text" lineEndContext="#stay"> |
| 756 |
<DetectSpaces /> |
| 757 |
<keyword attribute="Property" context="IsProperty" String="within-@viewport" /> |
| 758 |
<IncludeRules context="RuleSet" /> |
| 759 |
</context> |
| 760 |
|
| 761 |
<context name="@font-face" attribute="Normal Text" lineEndContext="#stay"> |
| 762 |
<DetectSpaces /> |
| 763 |
<IncludeRules context="FindComments" /> |
| 764 |
<DetectChar attribute="Normal Text" context="#pop!Within-@font-face" char="{" beginRegion="ruleset" /> |
| 765 |
</context> |
| 766 |
|
| 767 |
<context name="Within-@font-face" attribute="Normal Text" lineEndContext="#stay"> |
| 768 |
<DetectSpaces /> |
| 769 |
<IncludeRules context="FindComments" /> |
| 770 |
<keyword attribute="Property" context="IsProperty" String="within-@font-face" /> |
| 771 |
<RegExpr attribute="Unknown Property" context="IsProperty" String="[A-Za-z_-]+\b" /> |
| 772 |
<DetectChar attribute="Normal Text" context="#pop" char="}" endRegion="ruleset" /> |
| 773 |
</context> |
| 774 |
|
| 775 |
<context name="@page" attribute="Normal Text" lineEndContext="#stay"> |
| 776 |
<DetectSpaces /> |
| 777 |
<IncludeRules context="FindComments" /> |
| 778 |
<DetectChar attribute="Selector Pseudo" context="SelectorPseudo-@page" char=":" /> |
| 779 |
<DetectChar attribute="Normal Text" context="#pop!Within-@page" char="{" beginRegion="ruleset" /> |
| 780 |
</context> |
| 781 |
|
| 782 |
<context name="SelectorPseudo-@page" attribute="Selector Pseudo" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> |
| 783 |
<keyword attribute="Selector Pseudo" context="#pop" String="pseudoclasses-@page" /> |
| 784 |
<RegExpr attribute="Selector Pseudo" context="#pop" String="[-a-zA-Z][-a-zA-Z0-9]*" /> |
| 785 |
</context> |
| 786 |
|
| 787 |
<context name="Within-@page" attribute="Normal Text" lineEndContext="#stay"> |
| 788 |
<DetectSpaces /> |
| 789 |
<keyword attribute="Property" context="IsProperty" String="within-@page" /> |
| 790 |
<IncludeRules context="RuleSet" /> |
| 791 |
</context> |
| 792 |
|
| 793 |
<context name="IsProperty" attribute="Error" lineEndContext="#stay"> |
| 794 |
<DetectSpaces attribute="Normal Text" /> |
| 795 |
<DetectChar attribute="Normal Text" context="RuleParameters" char=":" /> |
| 796 |
<IncludeRules context="FindComments" /> |
| 797 |
</context> |
| 798 |
|
| 799 |
<context name="NestedAtRule" attribute="Normal Text" lineEndContext="#stay"> |
| 800 |
<DetectSpaces /> |
| 801 |
<DetectChar attribute="Normal Text" context="#pop!RuleSet" char="{" beginRegion="ruleset" /> |
| 802 |
<IncludeRules context="AtRuleValue" /> |
| 803 |
</context> |
| 804 |
|
| 805 |
<context name="AtRule" attribute="Normal Text" lineEndContext="#pop"> |
| 806 |
<DetectSpaces /> |
| 807 |
<DetectChar attribute="Separator Symbol" context="#pop" char=";" /> |
| 808 |
<DetectChar attribute="Normal Text" context="#pop" char="}" endRegion="ruleset" /> |
| 809 |
<IncludeRules context="AtRuleValue" /> |
| 810 |
</context> |
| 811 |
|
| 812 |
<context name="UnknownAtRule" attribute="Normal Text" lineEndContext="#pop"> |
| 813 |
<DetectSpaces /> |
| 814 |
<DetectChar attribute="Separator Symbol" context="#pop" char=";" /> |
| 815 |
<DetectChar attribute="Normal Text" context="#pop!RuleSet" char="{" beginRegion="ruleset" /> |
| 816 |
<DetectChar attribute="Normal Text" context="#pop" char="}" endRegion="ruleset" /> |
| 817 |
<IncludeRules context="AtRuleValue" /> |
| 818 |
</context> |
| 819 |
|
| 820 |
<context name="AtRuleValue" attribute="Normal Text" lineEndContext="#stay"> |
| 821 |
<DetectChar attribute="Operator" context="#stay" char="&" /> |
| 822 |
<IncludeRules context="FindComments" /> |
| 823 |
<IncludeRules context="FindStrings" /> |
| 824 |
<IncludeRules context="FindFunctions" /> |
| 825 |
<keyword attribute="Keyword" context="#stay" String="media operators" /> |
| 826 |
<RegExpr attribute="Property" context="#stay" String="[A-Za-z_-]+(?=\s*:)" /> |
| 827 |
<keyword attribute="Value" context="#stay" String="medias" /> |
| 828 |
<IncludeRules context="FindValues" /> |
| 829 |
</context> |
| 830 |
|
| 831 |
<context name="SelectorAttr" attribute="Selector Attribute" lineEndContext="#stay"> |
| 832 |
<DetectChar attribute="Selector Attribute" context="#pop" char="]" /> |
| 833 |
<IncludeRules context="FindStrings" /> |
| 834 |
<DetectChar attribute="Operator" context="SelectorAttrValue" char="=" /> |
| 835 |
<Detect2Chars attribute="Operator" context="SelectorAttrValue" char="~" char1="=" /> |
| 836 |
<Detect2Chars attribute="Operator" context="SelectorAttrValue" char="^" char1="=" /> |
| 837 |
<Detect2Chars attribute="Operator" context="SelectorAttrValue" char="$" char1="=" /> |
| 838 |
<Detect2Chars attribute="Operator" context="SelectorAttrValue" char="*" char1="=" /> |
| 839 |
<Detect2Chars attribute="Operator" context="SelectorAttrValue" char="|" char1="=" /> |
| 840 |
<DetectIdentifier /> |
| 841 |
</context> |
| 842 |
|
| 843 |
<context name="SelectorAttrValue" attribute="String" lineEndContext="#stay"> |
| 844 |
<DetectChar attribute="Selector Attribute" context="#pop#pop" char="]" /> |
| 845 |
<DetectIdentifier /> |
| 846 |
</context> |
| 847 |
|
| 848 |
<context name="SelectorPseudo" attribute="Selector Pseudo" lineEndContext="#pop"> |
| 849 |
<DetectChar attribute="Selector Pseudo" context="SelectorPseudoElements" char=":" /> |
| 850 |
<keyword attribute="Selector Pseudo" context="SelectorPseudoValueSelector" String="pseudoclass-selector" /> |
| 851 |
<keyword attribute="Selector Pseudo" context="SelectorPseudoValue" String="pseudoclasses" /> |
| 852 |
<RegExpr attribute="Selector Pseudo" context="SelectorPseudoValue" String="[-a-zA-Z][-a-zA-Z0-9]*" /> |
| 853 |
</context> |
| 854 |
|
| 855 |
<context name="SelectorPseudoElements" attribute="Selector Pseudo" lineEndContext="#pop#pop"> |
| 856 |
<keyword attribute="Selector Pseudo" context="#pop!SelectorPseudoValue" String="pseudoelements" /> |
| 857 |
<RegExpr attribute="Selector Pseudo" context="#pop!SelectorPseudoValue" String="[-a-zA-Z][-a-zA-Z0-9]*" /> |
| 858 |
</context> |
| 859 |
|
| 860 |
<context name="SelectorPseudoValueSelector" attribute="Selector Pseudo" lineEndContext="#pop#pop" fallthrough="true" fallthroughContext="#pop#pop"> |
| 861 |
<DetectChar attribute="Selector Pseudo" context="SelectorPseudoValueCloseSelector" char="(" /> |
| 862 |
</context> |
| 863 |
|
| 864 |
<context name="SelectorPseudoValueCloseSelector" attribute="Normal Text" lineEndContext="#stay"> |
| 865 |
<DetectSpaces /> |
| 866 |
<DetectChar attribute="Selector Pseudo" context="#pop#pop#pop" char=")" /> |
| 867 |
<DetectChar attribute="Error" context="#pop#pop#pop!RuleSet" char="{" beginRegion="ruleset" /> |
| 868 |
<IncludeRules context="FindSelector" /> |
| 869 |
</context> |
| 870 |
|
| 871 |
<context name="SelectorPseudoValue" attribute="Selector Pseudo" lineEndContext="#pop#pop" fallthrough="true" fallthroughContext="#pop#pop"> |
| 872 |
<DetectChar attribute="Selector Pseudo" context="SelectorPseudoValueClose" char="(" /> |
| 873 |
</context> |
| 874 |
|
| 875 |
<context name="SelectorPseudoValueClose" attribute="Selector Pseudo" lineEndContext="#pop#pop#pop"> |
| 876 |
<DetectChar attribute="Selector Pseudo" context="#pop#pop#pop" char=")" /> |
| 877 |
<DetectIdentifier /> |
| 878 |
</context> |
| 879 |
|
| 880 |
<context name="Comment" attribute="Comment" lineEndContext="#stay"> |
| 881 |
<DetectSpaces /> |
| 882 |
<Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="comment" /> |
| 883 |
<IncludeRules context="##Comments" /> |
| 884 |
<DetectIdentifier /> |
| 885 |
</context> |
| 886 |
|
| 887 |
<context name="RuleSet" attribute="Normal Text" lineEndContext="#stay"> |
| 888 |
<DetectSpaces /> |
| 889 |
<DetectChar attribute="Normal Text" context="#pop" char="}" endRegion="ruleset" /> |
| 890 |
<RegExpr attribute="Property" context="Rule" String="[A-Za-z_-]+\s*:($|[/{\s0-9$"'])" lookAhead="true" /> |
| 891 |
<IncludeRules context="Base" /> |
| 892 |
</context> |
| 893 |
|
| 894 |
<context name="Rule" attribute="Normal Text" lineEndContext="#stay"> |
| 895 |
<DetectChar attribute="Normal Text" context="RuleParameters" char=":" /> |
| 896 |
<Detect2Chars attribute="Variable" context="IsVariable" char="-" char1="-" /> |
| 897 |
<keyword attribute="Property" context="#stay" String="properties" /> |
| 898 |
<RegExpr attribute="Unknown Property" context="#stay" String="[^:]+" /> |
| 899 |
</context> |
| 900 |
|
| 901 |
<context name="IsVariable" attribute="Normal Text" lineEndContext="#pop"> |
| 902 |
<DetectChar attribute="Normal Text" context="#pop!RuleParameters" char=":" /> |
| 903 |
<RegExpr attribute="Variable" context="#stay" String="[^:]+" /> |
| 904 |
</context> |
| 905 |
|
| 906 |
<context name="RuleParameters" attribute="Normal Text" lineEndContext="#stay"> |
| 907 |
<DetectSpaces /> |
| 908 |
<!-- Jump out conditions --> |
| 909 |
<DetectChar attribute="Separator Symbol" context="#pop#pop" char=";" /> |
| 910 |
<DetectChar attribute="Separator Symbol" context="#stay" char="," /> |
| 911 |
<DetectChar attribute="Normal Text" context="#pop#pop#pop" char="}" endRegion="ruleset" /> |
| 912 |
<DetectChar attribute="Normal Text" context="SubRule" char="{" beginRegion="ruleset" /> |
| 913 |
<IncludeRules context="FindComments" /> |
| 914 |
<IncludeRules context="FindStrings" /> |
| 915 |
<IncludeRules context="FindFunctions" /> |
| 916 |
<IncludeRules context="FindValues" /> |
| 917 |
</context> |
| 918 |
|
| 919 |
<context name="SubRule" attribute="Normal Text" lineEndContext="#stay"> |
| 920 |
<DetectSpaces /> |
| 921 |
<IncludeRules context="FindComments" /> |
| 922 |
<DetectChar attribute="Normal Text" context="#pop#pop#pop" char="}" endRegion="ruleset" /> |
| 923 |
<RegExpr attribute="Property" context="IsProperty" String="[A-Za-z_-]+(?=\s*:)" /> |
| 924 |
<RegExpr attribute="Variable" context="VariableDefine" String="\$[a-zA-Z0-9\-_]+(?=\s*:)" /> |
| 925 |
<Detect2Chars attribute="Interpolation" context="InterpolationMaybeProperty" char="#" char1="{" /> |
| 926 |
<DetectIdentifier /> |
| 927 |
<AnyChar attribute="Error" context="#stay" String="*>+~|.#" /> |
| 928 |
</context> |
| 929 |
|
| 930 |
<context name="Function" attribute="Normal Text" lineEndContext="#stay"> |
| 931 |
<DetectChar attribute="Function" context="FunctionParameters" char="(" /> |
| 932 |
<StringDetect attribute="Function" context="FunctionVar" String="var(" /> |
| 933 |
<StringDetect attribute="Function" context="FunctionUrl" String="url(" /> |
| 934 |
<StringDetect attribute="Function" context="FunctionCalc" String="calc(" /> |
| 935 |
<keyword attribute="Function" context="#stay" String="functions" /> |
| 936 |
<RegExpr attribute="Function" context="#stay" String="[-a-zA-Z][-a-zA-Z0-9]*" /> |
| 937 |
</context> |
| 938 |
|
| 939 |
<context name="FunctionVar" attribute="Variable" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop!FunctionParameters"> |
| 940 |
<DetectSpaces /> |
| 941 |
<IncludeRules context="FindComments" /> |
| 942 |
<RegExpr attribute="Variable" context="#pop!FunctionParameters" String="--[^ \t\),]+" /> |
| 943 |
</context> |
| 944 |
|
| 945 |
<context name="FunctionCalc" attribute="Normal Text" lineEndContext="#stay"> |
| 946 |
<DetectSpaces /> |
| 947 |
<DetectChar attribute="Function" context="#pop#pop" char=")" /> |
| 948 |
<IncludeRules context="Calc" /> |
| 949 |
</context> |
| 950 |
|
| 951 |
<context name="NestedCalc" attribute="Normal Text" lineEndContext="#stay"> |
| 952 |
<DetectSpaces /> |
| 953 |
<DetectChar attribute="Normal Text" context="#pop" char=")" /> |
| 954 |
<IncludeRules context="Calc" /> |
| 955 |
</context> |
| 956 |
|
| 957 |
<context name="Calc" attribute="Normal Text" lineEndContext="#stay"> |
| 958 |
<DetectChar attribute="Separator Symbol" context="#stay" char="," /> |
| 959 |
<DetectChar attribute="Normal Text" context="NestedCalc" char="(" /> |
| 960 |
<IncludeRules context="FindComments" /> |
| 961 |
<IncludeRules context="FindStrings" /> |
| 962 |
<IncludeRules context="FindFunctions" /> |
| 963 |
<IncludeRules context="FindValues" /> |
| 964 |
<RegExpr attribute="Operator" context="#stay" String="[-](?=$|[ \t(,;])|[+](?=$|[^0-9)])|[/*]" /> |
| 965 |
</context> |
| 966 |
|
| 967 |
<context name="FunctionUrl" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="UrlValue"> |
| 968 |
<DetectSpaces /> |
| 969 |
<IncludeRules context="FindStrings" /> |
| 970 |
<DetectChar attribute="Function" context="#pop#pop" char=")" /> |
| 971 |
</context> |
| 972 |
|
| 973 |
<context name="UrlValue" attribute="String" lineEndContext="#stay"> |
| 974 |
<DetectChar attribute="Function" context="#pop#pop#pop" char=")" /> |
| 975 |
</context> |
| 976 |
|
| 977 |
<context name="FunctionParameters" attribute="Normal Text" lineEndContext="#stay"> |
| 978 |
<DetectSpaces /> |
| 979 |
<DetectChar attribute="Function" context="#pop#pop" char=")" /> |
| 980 |
<IncludeRules context="FindComments" /> |
| 981 |
<IncludeRules context="FindStrings" /> |
| 982 |
<IncludeRules context="FindFunctions" /> |
| 983 |
<IncludeRules context="FindValues" /> |
| 984 |
<DetectChar attribute="Separator Symbol" context="#stay" char="," /> |
| 985 |
<StringDetect attribute="Operator" String="..." /> |
| 986 |
</context> |
| 987 |
|
| 988 |
<!-- string contexts --> |
| 989 |
<context name="StringDQ" attribute="String" lineEndContext="#stay"> |
| 990 |
<DetectChar attribute="String" context="#pop" char=""" /> |
| 991 |
<IncludeRules context="InsideString" /> |
| 992 |
</context> |
| 993 |
|
| 994 |
<context name="StringSQ" attribute="String" lineEndContext="#stay"> |
| 995 |
<DetectChar attribute="String" context="#pop" char="'" /> |
| 996 |
<IncludeRules context="InsideString" /> |
| 997 |
</context> |
| 998 |
|
| 999 |
<context name="InsideString" attribute="String" lineEndContext="#stay"> |
| 1000 |
<Detect2Chars attribute="Interpolation" context="Interpolation" char="#" char1="{" /> |
| 1001 |
<RegExpr attribute="SpecialChar" context="#stay" String="\\([0-9A-Fa-f]{1,6}|.?)" /> |
| 1002 |
<RegExpr attribute="String" context="#stay" String="\\?[^#"'\\]+" /> |
| 1003 |
</context> |
| 1004 |
|
| 1005 |
</contexts> |
| 1006 |
|
| 1007 |
<itemDatas> |
| 1008 |
<itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/> |
| 1009 |
<itemData name="At Rule" defStyleNum="dsImport" spellChecking="false"/> |
| 1010 |
<itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/> |
| 1011 |
<itemData name="Property" defStyleNum="dsKeyword" spellChecking="false"/> |
| 1012 |
<itemData name="Unknown Property" defStyleNum="dsNormal" spellChecking="false"/> |
| 1013 |
<itemData name="String" defStyleNum="dsString"/> |
| 1014 |
<itemData name="SpecialChar" defStyleNum="dsSpecialChar" spellChecking="false"/> |
| 1015 |
<itemData name="Interpolation" defStyleNum="dsOperator" spellChecking="false"/> |
| 1016 |
<itemData name="Operator" defStyleNum="dsOperator" spellChecking="false"/> |
| 1017 |
<itemData name="Separator Symbol" defStyleNum="dsOperator" spellChecking="false"/> |
| 1018 |
<itemData name="Value" defStyleNum="dsDecVal" spellChecking="false"/> |
| 1019 |
<itemData name="Number" defStyleNum="dsDecVal" spellChecking="false"/> |
| 1020 |
<itemData name="Value Keyword" defStyleNum="dsBuiltIn" spellChecking="false"/> |
| 1021 |
<itemData name="Color" defStyleNum="dsConstant" spellChecking="false"/> |
| 1022 |
<itemData name="Unit" defStyleNum="dsDataType" spellChecking="false"/> |
| 1023 |
<itemData name="Variable" defStyleNum="dsVariable" spellChecking="false"/> |
| 1024 |
<itemData name="Function" defStyleNum="dsFunction" spellChecking="false"/> |
| 1025 |
<itemData name="Annotation" defStyleNum="dsAttribute" spellChecking="false"/> |
| 1026 |
<itemData name="Selector Id" defStyleNum="dsPreprocessor" bold="1" spellChecking="false"/> |
| 1027 |
<itemData name="Selector Class" defStyleNum="dsFunction" spellChecking="false"/> |
| 1028 |
<itemData name="Selector Attribute" defStyleNum="dsExtension" spellChecking="false"/> |
| 1029 |
<itemData name="Selector Pseudo" defStyleNum="dsInformation" italic="1" spellChecking="false"/> |
| 1030 |
<itemData name="Selector Tag" defStyleNum="dsNormal" spellChecking="false"/> |
| 1031 |
<itemData name="Placeholder Selector" defStyleNum="dsBuiltIn" spellChecking="false"/> |
| 1032 |
<itemData name="Comment" defStyleNum="dsComment" /> |
| 1033 |
<itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false"/> |
| 1034 |
<itemData name="Error" defStyleNum="dsError" spellChecking="false"/> |
| 1035 |
</itemDatas> |
| 1036 |
</highlighting> |
| 1037 |
|
| 1038 |
<general> |
| 1039 |
<keywords casesensitive="0" weakDeliminator="-%@" /> |
| 1040 |
<comments> |
| 1041 |
<comment name="singleLine" start="//" position="afterwhitespace" /> |
| 1042 |
<comment name="multiLine" start="/*" end="*/" region="comment" /> |
| 1043 |
</comments> |
| 1044 |
</general> |
| 1045 |
|
| 1046 |
</language> |
| 1047 |
<!-- kate: replace-tabs on; tab-width 4; indent-width 4; --> |