Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/scss.xml
Show All 18 Lines | |||||
19 | - fix highlighting of pseudoclass/pseudoelement in a sub-rule | 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 | 20 | - New highlighting categories: Keyword, Operator, Separator Symbol, SpecialChar, Value Keyword, Color, Number, Unit, Selector Tag, Placeholder Selector | ||
21 | 21 | | |||
22 | - Version 4, by Guo Yunhe guoyunhebrave@gmail.com | 22 | - Version 4, by Guo Yunhe guoyunhebrave@gmail.com | ||
23 | - Remake for complex SCSS syntax, avoid errors | 23 | - Remake for complex SCSS syntax, avoid errors | ||
24 | 24 | | |||
25 | - Version 2.06, by Guo Yunhe | 25 | - Version 2.06, by Guo Yunhe | ||
26 | - Add all W3C Work Draft properties, inherit rules from css.xml | 26 | - Add all W3C Work Draft properties, inherit rules from css.xml | ||
27 | 27 | | |||
28 | - Version 1.2.03.6, by Mte90 | 28 | - Version 1.2.03.6, by Mte90 | ||
29 | - Css3 Tag | 29 | - Css3 Tag | ||
30 | 30 | | |||
31 | - Version 1.2.03.1, by Tijn Schuurmans | 31 | - Version 1.2.03.1, by Tijn Schuurmans | ||
32 | - Added basic support for "@include mixin();" | 32 | - Added basic support for "@include mixin();" | ||
33 | - Clean the indentation to use 4 spaces everywhere | 33 | - Clean the indentation to use 4 spaces everywhere | ||
34 | 34 | | |||
35 | --> | 35 | --> | ||
36 | 36 | | |||
37 | <language name="SCSS" version="10" kateversion="5.53" section="Markup" extensions="*.scss" indenter="cstyle" mimetype="text/css" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL" priority="10"> | 37 | <language name="SCSS" version="11" kateversion="5.53" section="Markup" extensions="*.scss" indenter="cstyle" mimetype="text/css" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL" priority="10"> | ||
38 | 38 | | |||
39 | <highlighting> | 39 | <highlighting> | ||
40 | <list name="properties"> | 40 | <list name="properties"> | ||
41 | <include>properties##CSS</include> | 41 | <include>properties##CSS</include> | ||
42 | </list> | 42 | </list> | ||
43 | 43 | | |||
44 | <list name="sub-properties"> | 44 | <list name="sub-properties"> | ||
45 | <item>adjust</item> | 45 | <item>adjust</item> | ||
▲ Show 20 Lines • Show All 349 Lines • ▼ Show 20 Line(s) | 328 | <list name="functions"> | |||
395 | <item>variable-exists</item> | 395 | <item>variable-exists</item> | ||
396 | <item>global-variable-exists</item> | 396 | <item>global-variable-exists</item> | ||
397 | <item>function-exists</item> | 397 | <item>function-exists</item> | ||
398 | <item>mixin-exists</item> | 398 | <item>mixin-exists</item> | ||
399 | <item>content-exists</item> | 399 | <item>content-exists</item> | ||
400 | <item>inspect</item> | 400 | <item>inspect</item> | ||
401 | <item>type-of</item> | 401 | <item>type-of</item> | ||
402 | <item>unit</item> | 402 | <item>unit</item> | ||
403 | <item>unitless</item> | 403 | <item>unitless</item> | ||
404 | <item>comparable</item> | 404 | <item>comparable</item> | ||
405 | <item>call</item> | 405 | <item>call</item> | ||
406 | <item>get-function</item> | 406 | <item>get-function</item> | ||
407 | <item>if</item> | 407 | <item>if</item> | ||
408 | <item>unique-id</item> | 408 | <item>unique-id</item> | ||
409 | </list> | 409 | </list> | ||
410 | 410 | | |||
411 | <list name="medias"> | 411 | <list name="medias"> | ||
412 | <include>medias##CSS</include> | 412 | <include>medias##CSS</include> | ||
413 | </list> | 413 | </list> | ||
414 | 414 | | |||
415 | <!-- prefixed by :: --> | 415 | <!-- prefixed by :: --> | ||
416 | <list name="pseudoelements"> | 416 | <list name="pseudoelements"> | ||
417 | <include>pseudoelements##CSS</include> | 417 | <include>pseudoelements##CSS</include> | ||
418 | </list> | 418 | </list> | ||
419 | 419 | | |||
420 | <!-- prefixed by : --> | 420 | <!-- prefixed by : --> | ||
421 | <list name="pseudoclasses"> | 421 | <list name="pseudoclasses"> | ||
422 | <include>pseudoclasses##CSS</include> | 422 | <include>pseudoclasses##CSS</include> | ||
423 | </list> | 423 | </list> | ||
424 | 424 | | |||
425 | <list name="pseudoclass-not"> | 425 | <list name="pseudoclass-selector"> | ||
426 | <include>pseudoclass-not##CSS</include> | 426 | <include>pseudoclass-selector##CSS</include> | ||
427 | </list> | 427 | </list> | ||
428 | 428 | | |||
429 | <list name="pseudoclasses-@page"> | 429 | <list name="pseudoclasses-@page"> | ||
430 | <include>pseudoclasses-@page##CSS</include> | 430 | <include>pseudoclasses-@page##CSS</include> | ||
431 | </list> | 431 | </list> | ||
432 | 432 | | |||
433 | <list name="at-rules"> | 433 | <list name="at-rules"> | ||
434 | <include>at-rules##CSS</include> | 434 | <include>at-rules##CSS</include> | ||
▲ Show 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | 481 | <list name="within-@viewport"> | |||
482 | <include>within-@viewport##CSS</include> | 482 | <include>within-@viewport##CSS</include> | ||
483 | </list> | 483 | </list> | ||
484 | 484 | | |||
485 | <list name="@page"> | 485 | <list name="@page"> | ||
486 | <item>@page</item> | 486 | <item>@page</item> | ||
487 | </list> | 487 | </list> | ||
488 | 488 | | |||
489 | <list name="within-@page"> | 489 | <list name="within-@page"> | ||
490 | <include>within-@page##CSS</include> | 490 | <include>within-@page##CSS</include> | ||
491 | </list> | | |||
492 | 491 | </list> | |||
493 | <list name="@font-face"> | 492 | | ||
494 | <item>@font-face</item> | 493 | <list name="@font-face"> | ||
495 | </list> | 494 | <item>@font-face</item> | ||
496 | 495 | </list> | |||
497 | <list name="within-@font-face"> | 496 | | ||
498 | <include>within-@font-face##CSS</include> | 497 | <list name="within-@font-face"> | ||
499 | </list> | 498 | <include>within-@font-face##CSS</include> | ||
500 | 499 | </list> | |||
501 | <list name="@keyframes"> | 500 | | ||
502 | <item>@keyframes</item> | 501 | <list name="@keyframes"> | ||
503 | </list> | 502 | <item>@keyframes</item> | ||
504 | 503 | </list> | |||
505 | <list name="within-@keyframes"> | 504 | | ||
506 | <include>within-@keyframes##CSS</include> | 505 | <list name="within-@keyframes"> | ||
507 | </list> | 506 | <include>within-@keyframes##CSS</include> | ||
508 | 507 | </list> | |||
509 | <list name="media operators"> | 508 | | ||
510 | <include>media operators##CSS</include> | 509 | <list name="media operators"> | ||
511 | </list> | 510 | <include>media operators##CSS</include> | ||
512 | 511 | </list> | |||
513 | <list name="operators"> | 512 | | ||
514 | <item>and</item> | 513 | <list name="operators"> | ||
515 | <item>or</item> | 514 | <item>and</item> | ||
516 | <item>not</item> | 515 | <item>or</item> | ||
517 | </list> | 516 | <item>not</item> | ||
518 | 517 | </list> | |||
519 | <list name="annotations"> | 518 | | ||
520 | <item>important</item> | 519 | <list name="annotations"> | ||
521 | <item>default</item> | 520 | <item>important</item> | ||
522 | <item>global</item> | 521 | <item>default</item> | ||
523 | </list> | 522 | <item>global</item> | ||
524 | 523 | </list> | |||
525 | <contexts> | 524 | | ||
526 | <context name="Base" attribute="Normal Text" lineEndContext="#stay"> | 525 | <contexts> | ||
527 | <DetectSpaces /> | 526 | <context name="Base" attribute="Normal Text" lineEndContext="#stay"> | ||
528 | <IncludeRules context="FindComments" /> | 527 | <DetectSpaces /> | ||
529 | <DetectChar attribute="Normal Text" context="RuleSet" char="{" beginRegion="ruleset" /> | 528 | <IncludeRules context="FindComments" /> | ||
530 | <DetectChar attribute="At Rule" context="SelectAtRule" char="@" lookAhead="true" /> | 529 | <DetectChar attribute="Normal Text" context="RuleSet" char="{" beginRegion="ruleset" /> | ||
531 | <!-- find selectors // .class #id :hover :nth-child(2n+1) [type="search"] --> | 530 | <DetectChar attribute="At Rule" context="SelectAtRule" char="@" lookAhead="true" /> | ||
532 | <DetectChar attribute="Selector Attribute" context="SelectorAttr" char="[" /> | 531 | <!-- find selectors // .class #id :hover :nth-child(2n+1) [type="search"] --> | ||
533 | <DetectChar attribute="Separator Symbol" context="IsSelectors" char="," /> | 532 | <DetectChar attribute="Selector Attribute" context="SelectorAttr" char="[" /> | ||
534 | <DetectChar attribute="Operator" context="IsSelectors" char="&" /> | 533 | <DetectChar attribute="Separator Symbol" context="IsSelectors" char="," /> | ||
535 | <AnyChar attribute="Operator" context="IsSelectors" String="*>+~|" /> | 534 | <AnyChar attribute="Operator" context="IsSelectors" String="*>+~|&" /> | ||
536 | <RegExpr attribute="Selector Pseudo" context="SelectorPseudo" String=":(?=[a-z:])" /> | 535 | <RegExpr attribute="Selector Pseudo" context="SelectorPseudo" String=":(?=[a-z:])" /> | ||
536 | <RegExpr attribute="Selector Id" context="IsSelectors" String="#[-]?(&nmstart;)(&nmchar;)*" /> | ||||
537 | <RegExpr attribute="Selector Class" context="IsSelectors" String="\.([a-zA-Z0-9\-_]|[\x80-\xFF]|\\[0-9A-Fa-f]{1,6})*" /> | ||||
538 | <RegExpr attribute="Placeholder Selector" context="IsSelectors" String="%[_a-zA-Z][_a-zA-Z\-]*" /> | ||||
539 | <RegExpr attribute="Selector Tag" context="IsSelectors" String="[-]?(&nmstart;)(&nmchar;)*(?=\s|:?[#.&{[*>+~|,]|:[a-z:])" /> | ||||
540 | <RegExpr attribute="Variable" context="VariableDefine" String="\$[a-zA-Z0-9\-_]+(?=\s*:)" /> | ||||
541 | <Detect2Chars attribute="Interpolation" context="InterpolationMaybeProperty" char="#" char1="{" /> | ||||
542 | </context> | ||||
543 | | ||||
544 | <context name="IsSelectors" attribute="Normal Text" lineEndContext="#stay"> | ||||
545 | <DetectSpaces /> | ||||
546 | <DetectChar attribute="Normal Text" context="#pop!RuleSet" char="{" beginRegion="ruleset" /> | ||||
547 | <DetectChar attribute="At Rule" context="#pop!SelectAtRule" char="@" lookAhead="true" /> | ||||
548 | <DetectChar attribute="Separator Symbol" context="#stay" char="," /> | ||||
549 | <DetectChar attribute="Error" context="#pop" char=";" /> | ||||
550 | <AnyChar attribute="Operator" context="#stay" String="*>+~|&" /> | ||||
551 | <IncludeRules context="SelectorTypes" /> | ||||
537 | <RegExpr attribute="Selector Id" context="IsSelectors" String="#[-]?(&nmstart;)(&nmchar;)*" /> | 552 | </context> | ||
538 | <RegExpr attribute="Selector Class" context="IsSelectors" String="\.([a-zA-Z0-9\-_]|[\x80-\xFF]|\\[0-9A-Fa-f]{1,6})*" /> | 553 | | ||
539 | <RegExpr attribute="Placeholder Selector" context="IsSelectors" String="%[_a-zA-Z][_a-zA-Z\-]*" /> | 554 | <context name="FindSelector" attribute="Normal Text" lineEndContext="#stay"> | ||
540 | <RegExpr attribute="Selector Tag" context="IsSelectors" String="[-]?(&nmstart;)(&nmchar;)*(?=\s|:?[\s#.&{[*>+~|,]|:[a-z:])" /> | 555 | <AnyChar attribute="Error" context="#stay" String=",&" /> | ||
541 | <RegExpr attribute="Variable" context="VariableDefine" String="\$[a-zA-Z0-9\-_]+(?=\s*:)" /> | 556 | <AnyChar attribute="Operator" context="#stay" String="*>+~|" /> | ||
542 | <Detect2Chars attribute="Interpolation" context="Interpolation" char="#" char1="{" /> | 557 | <IncludeRules context="SelectorTypes" /> | ||
543 | </context> | 558 | </context> | ||
544 | 559 | | |||
545 | <context name="IsSelectors" attribute="Normal Text" lineEndContext="#stay"> | 560 | <context name="SelectorTypes" attribute="Normal Text" lineEndContext="#stay"> | ||
546 | <DetectSpaces /> | 561 | <!-- find selectors // .class #id :hover :nth-child(2n+1) [type="search"] --> | ||
547 | <DetectChar attribute="Normal Text" context="#pop!RuleSet" char="{" beginRegion="ruleset" /> | 562 | <DetectChar attribute="Selector Pseudo" context="SelectorPseudo" char=":" /> | ||
548 | <DetectChar attribute="At Rule" context="#pop!SelectAtRule" char="@" lookAhead="true" /> | 563 | <DetectChar attribute="Selector Attribute" context="SelectorAttr" char="[" /> | ||
549 | <DetectChar attribute="Separator Symbol" context="#stay" char="," /> | 564 | <IncludeRules context="FindComments" /> | ||
550 | <DetectChar attribute="Error" context="#pop" char=";" /> | 565 | <RegExpr attribute="Selector Id" context="#stay" String="#[-]?(&nmstart;)(&nmchar;)*" /> | ||
566 | <RegExpr attribute="Selector Class" context="#stay" String="\.([a-zA-Z0-9\-_]|[\x80-\xFF]|\\[0-9A-Fa-f]{1,6})*" /> | ||||
551 | <AnyChar attribute="Operator" context="#stay" String="*>+~|&" /> | 567 | <RegExpr attribute="Placeholder Selector" context="#stay" String="%[_a-zA-Z][_a-zA-Z\-]*" /> | ||
552 | <IncludeRules context="SelectorTypes" /> | 568 | <RegExpr attribute="Selector Tag" context="#stay" String="[-]?(&nmstart;)(&nmchar;)*" /> | ||
553 | </context> | 569 | <Detect2Chars attribute="Interpolation" context="Interpolation" char="#" char1="{" /> | ||
554 | 570 | </context> | |||
555 | <context name="FindSelector" attribute="Normal Text" lineEndContext="#stay"> | 571 | | ||
556 | <AnyChar attribute="Error" context="#stay" String=",&" /> | 572 | <context name="VariableDefine" attribute="Normal Text" lineEndContext="#stay"> | ||
557 | <AnyChar attribute="Operator" context="#stay" String="*>+~|" /> | 573 | <DetectChar attribute="Normal Text" context="RuleParameters" char=":" /> | ||
558 | <IncludeRules context="SelectorTypes" /> | 574 | </context> | ||
559 | </context> | 575 | | ||
560 | 576 | <context name="Interpolation" attribute="Normal Text" lineEndContext="#stay"> | |||
561 | <context name="SelectorTypes" attribute="Normal Text" lineEndContext="#stay"> | 577 | <DetectSpaces /> | ||
562 | <!-- find selectors // .class #id :hover :nth-child(2n+1) [type="search"] --> | 578 | <DetectChar attribute="Interpolation" context="#pop" char="}" /> | ||
563 | <DetectChar attribute="Selector Pseudo" context="SelectorPseudo" char=":" /> | 579 | <IncludeRules context="FindStrings" /> | ||
564 | <DetectChar attribute="Selector Attribute" context="SelectorAttr" char="[" /> | 580 | <IncludeRules context="FindFunctions" /> | ||
565 | <IncludeRules context="FindComments" /> | 581 | <IncludeRules context="FindValues" /> | ||
566 | <RegExpr attribute="Selector Id" context="#stay" String="#[-]?(&nmstart;)(&nmchar;)*" /> | 582 | <!-- auto-completion only --> | ||
567 | <RegExpr attribute="Selector Class" context="#stay" String="\.([a-zA-Z0-9\-_]|[\x80-\xFF]|\\[0-9A-Fa-f]{1,6})*" /> | 583 | <keyword attribute="Normal Text" context="#stay" String="functions" /> | ||
568 | <RegExpr attribute="Placeholder Selector" context="#stay" String="%[_a-zA-Z][_a-zA-Z\-]*" /> | 584 | </context> | ||
569 | <RegExpr attribute="Selector Tag" context="#stay" String="[-]?(&nmstart;)(&nmchar;)*" /> | 585 | | ||
570 | <Detect2Chars attribute="Interpolation" context="Interpolation" char="#" char1="{" /> | 586 | <context name="InterpolationMaybeProperty" attribute="Normal Text" lineEndContext="#stay"> | ||
571 | </context> | 587 | <DetectSpaces /> | ||
572 | 588 | <DetectChar attribute="Interpolation" context="#pop!MaybeProperty" char="}" /> | |||
573 | <context name="VariableDefine" attribute="Normal Text" lineEndContext="#stay"> | 589 | <IncludeRules context="FindStrings" /> | ||
574 | <DetectChar attribute="Normal Text" context="RuleParameters" char=":" /> | 590 | <IncludeRules context="FindFunctions" /> | ||
575 | </context> | 591 | <IncludeRules context="FindValues" /> | ||
576 | 592 | <!-- auto-completion only --> | |||
577 | <context name="Interpolation" attribute="Normal Text" lineEndContext="#stay"> | 593 | <keyword attribute="Normal Text" context="#stay" String="functions" /> | ||
578 | <DetectSpaces /> | 594 | </context> | ||
579 | <DetectChar attribute="Interpolation" context="#pop" char="}" /> | 595 | | ||
580 | <IncludeRules context="FindStrings" /> | 596 | <context name="MaybeProperty" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop"> | ||
581 | <IncludeRules context="FindFunctions" /> | 597 | <DetectSpaces /> | ||
582 | <IncludeRules context="FindValues" /> | 598 | <IncludeRules context="FindComments" /> | ||
583 | <!-- auto-completion only --> | 599 | <RegExpr attribute="Normal Text" context="Rule" String=":($|[/{\s0-9$"'])" lookAhead="true"/> | ||
584 | <keyword attribute="Normal Text" context="#stay" String="functions" /> | 600 | </context> | ||
585 | </context> | 601 | | ||
586 | 602 | | |||
587 | 603 | <!-- find functions // rgba(255,255,255,0.75) --> | |||
588 | <!-- find functions // rgba(255,255,255,0.75) --> | 604 | <context name="FindFunctions" attribute="Normal Text" lineEndContext="#stay"> | ||
589 | <context name="FindFunctions" attribute="Normal Text" lineEndContext="#stay"> | 605 | <RegExpr attribute="Function" context="Function" String="[a-z\-]{2,}\(" lookAhead="true" /> | ||
590 | <RegExpr attribute="Function" context="Function" String="[a-z\-]{2,}\(" lookAhead="true" /> | 606 | </context> | ||
591 | </context> | 607 | | ||
592 | 608 | <!-- find values // 10px 12pt 2.5em 1rem 75% #ffcc99 red solid --> | |||
593 | <!-- find values // 10px 12pt 2.5em 1rem 75% #ffcc99 red solid --> | 609 | <context name="FindValues" attribute="Normal Text" lineEndContext="#stay"> | ||
594 | <context name="FindValues" attribute="Normal Text" lineEndContext="#stay"> | 610 | <DetectChar attribute="Annotation" context="Annotation" char="!" /> | ||
595 | <DetectChar attribute="Annotation" context="Annotation" char="!" /> | 611 | <keyword attribute="Operator" context="#stay" String="operators" /> | ||
596 | <keyword attribute="Operator" context="#stay" String="operators" /> | 612 | <keyword attribute="Value Keyword" context="#stay" String="value keywords" /> | ||
597 | <keyword attribute="Value Keyword" context="#stay" String="value keywords" /> | 613 | <keyword attribute="Value" context="#stay" String="values" /> | ||
598 | <keyword attribute="Value" context="#stay" String="values" /> | 614 | <keyword attribute="Color" context="#stay" String="colors" /> | ||
599 | <keyword attribute="Color" context="#stay" String="colors" /> | 615 | <RegExpr attribute="Number" context="FindUnits" String="([0-9]+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?" /> | ||
600 | <RegExpr attribute="Number" context="FindUnits" String="[0-9.]+" /> | 616 | <RegExpr attribute="Color" context="#stay" String="#([0-9A-Fa-f]{3,4}){1,2}\b" /> | ||
601 | <RegExpr attribute="Color" context="#stay" String="#([0-9A-Fa-f]{3}){1,2}\b" /> | 617 | <RegExpr attribute="Variable" context="#stay" String="\$[a-zA-Z0-9\-_]+" /> | ||
602 | <RegExpr attribute="Variable" context="#stay" String="\$[a-zA-Z0-9\-_]+" /> | | |||
603 | <RegExpr attribute="Normal Text" context="#stay" String="[-]?(&nmstart;)(&nmchar;)*" /> | 618 | <keyword attribute="Value Keyword" context="#stay" String="special values" /> | ||
604 | <AnyChar attribute="Operator" context="#stay" String="*/+%-" /> | 619 | <RegExpr attribute="Normal Text" context="#stay" String="[-]?(&nmstart;)(&nmchar;)*" /> | ||
605 | <Detect2Chars attribute="Interpolation" context="Interpolation" char="#" char1="{" /> | 620 | <AnyChar attribute="Operator" context="#stay" String="*/+%-" /> | ||
606 | </context> | 621 | <Detect2Chars attribute="Interpolation" context="Interpolation" char="#" char1="{" /> | ||
607 | 622 | </context> | |||
608 | <context name="Annotation" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> | 623 | | ||
609 | <keyword attribute="Annotation" context="#pop" String="annotations" /> | 624 | <context name="Annotation" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> | ||
610 | </context> | 625 | <keyword attribute="Annotation" context="#pop" String="annotations" /> | ||
611 | 626 | </context> | |||
612 | <context name="FindUnits" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> | 627 | | ||
613 | <RegExpr attribute="Unit" context="#stay" String="(%|(em|ex|ch|rem|vw|vh|vm|px|in|cm|mm|pt|pc|deg|rad|grad|turn|ms|s|Hz|kHz)\b)" /> | 628 | <context name="FindUnits" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> | ||
614 | </context> | 629 | <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)\b)" /> | ||
615 | 630 | </context> | |||
616 | <!-- find strings // "some words" 'some words' --> | 631 | | ||
617 | <context name="FindStrings" attribute="Normal Text" lineEndContext="#stay"> | 632 | <!-- find strings // "some words" 'some words' --> | ||
618 | <DetectChar attribute="String" context="StringDQ" char=""" /> | 633 | <context name="FindStrings" attribute="Normal Text" lineEndContext="#stay"> | ||
619 | <DetectChar attribute="String" context="StringSQ" char="'" /> | 634 | <DetectChar attribute="String" context="StringDQ" char=""" /> | ||
620 | </context> | 635 | <DetectChar attribute="String" context="StringSQ" char="'" /> | ||
621 | 636 | </context> | |||
622 | <!-- find comments // /* comment */ --> | 637 | | ||
623 | <context name="FindComments" attribute="Normal Text" lineEndContext="#stay"> | 638 | <!-- find comments // /* comment */ --> | ||
624 | <Detect2Chars attribute="Comment" context="IsComments" char="/" char1="/" lookAhead="true"/> | 639 | <context name="FindComments" attribute="Normal Text" lineEndContext="#stay"> | ||
625 | <Detect2Chars attribute="Comment" context="IsComments" char="/" char1="*" lookAhead="true"/> | 640 | <Detect2Chars attribute="Comment" context="IsComments" char="/" char1="/" lookAhead="true"/> | ||
626 | </context> | 641 | <Detect2Chars attribute="Comment" context="IsComments" char="/" char1="*" lookAhead="true"/> | ||
627 | 642 | </context> | |||
628 | <context name="IsComments" attribute="Normal Text" lineEndContext="#stay"> | 643 | | ||
629 | <RegExpr attribute="Region Marker" context="#stay" String="/\*\s*BEGIN\b.*\*/|//\s*BEGIN\b.*" beginRegion="UserDefined" /> | 644 | <context name="IsComments" attribute="Normal Text" lineEndContext="#stay"> | ||
630 | <RegExpr attribute="Region Marker" context="#stay" String="/\*\s*END\b.*\*/|//\s*END\b.*" endRegion="UserDefined" /> | 645 | <RegExpr attribute="Region Marker" context="#stay" String="/\*\s*BEGIN\b.*\*/|//\s*BEGIN\b.*" beginRegion="UserDefined" /> | ||
631 | <Detect2Chars attribute="Comment" context="Comment" char="/" char1="*" beginRegion="comment" /> | 646 | <RegExpr attribute="Region Marker" context="#stay" String="/\*\s*END\b.*\*/|//\s*END\b.*" endRegion="UserDefined" /> | ||
632 | <Detect2Chars attribute="Comment" context="SassComment" char="/" char1="/" /> | 647 | <Detect2Chars attribute="Comment" context="Comment" char="/" char1="*" beginRegion="comment" /> | ||
648 | <Detect2Chars attribute="Comment" context="SassComment" char="/" char1="/" /> | ||||
633 | </context> | 649 | </context> | ||
634 | 650 | | |||
635 | <context name="SassComment" attribute="Comment" lineEndContext="#pop#pop"> | 651 | <context name="SassComment" attribute="Comment" lineEndContext="#pop#pop"> | ||
636 | <DetectSpaces /> | 652 | <DetectSpaces /> | ||
637 | <IncludeRules context="##Alerts" /> | 653 | <IncludeRules context="##Alerts" /> | ||
638 | <DetectIdentifier /> | 654 | <DetectIdentifier /> | ||
639 | </context> | 655 | </context> | ||
640 | 656 | | |||
Show All 13 Lines | |||||
654 | </context> | 670 | </context> | ||
655 | 671 | | |||
656 | <context name="@if" attribute="Normal Text" lineEndContext="#stay"> | 672 | <context name="@if" attribute="Normal Text" lineEndContext="#stay"> | ||
657 | <DetectSpaces /> | 673 | <DetectSpaces /> | ||
658 | <DetectChar attribute="Normal Text" context="#pop!RuleSet" char="{" beginRegion="ruleset" /> | 674 | <DetectChar attribute="Normal Text" context="#pop!RuleSet" char="{" beginRegion="ruleset" /> | ||
659 | <IncludeRules context="FindComments" /> | 675 | <IncludeRules context="FindComments" /> | ||
660 | <IncludeRules context="FindStrings" /> | 676 | <IncludeRules context="FindStrings" /> | ||
661 | <IncludeRules context="FindFunctions" /> | 677 | <IncludeRules context="FindFunctions" /> | ||
662 | <keyword attribute="Value Keyword" context="#stay" String="special values" /> | 678 | <IncludeRules context="FindValues" /> | ||
663 | <IncludeRules context="FindValues" /> | 679 | <AnyChar attribute="Operator" context="#stay" String="=!<>" /> | ||
664 | <AnyChar attribute="Operator" context="#stay" String="=!<>" /> | 680 | <!-- auto-completion only --> | ||
665 | <!-- auto-completion only --> | 681 | <keyword attribute="Normal Text" context="#stay" String="functions" /> | ||
666 | <keyword attribute="Normal Text" context="#stay" String="functions" /> | 682 | </context> | ||
667 | </context> | 683 | | ||
668 | 684 | <context name="@else" attribute="Error" lineEndContext="#stay"> | |||
669 | <context name="@else" attribute="Error" lineEndContext="#stay"> | 685 | <DetectSpaces attribute="Normal Text" /> | ||
670 | <DetectSpaces attribute="Normal Text" /> | 686 | <DetectChar attribute="Normal Text" context="#pop!RuleSet" char="{" beginRegion="ruleset" /> | ||
671 | <DetectChar attribute="Normal Text" context="#pop!RuleSet" char="{" beginRegion="ruleset" /> | 687 | <IncludeRules context="FindComments" /> | ||
672 | <IncludeRules context="FindComments" /> | 688 | <WordDetect attribute="At Rule" context="#pop!@if" String="if" /> | ||
673 | <WordDetect attribute="At Rule" context="#pop!@if" String="if" /> | 689 | <DetectIdentifier attribute="Error" /> | ||
674 | <DetectIdentifier attribute="Error" /> | 690 | </context> | ||
675 | </context> | 691 | | ||
676 | 692 | <context name="@extend" attribute="Normal Text" lineEndContext="#stay"> | |||
677 | <context name="@extend" attribute="Normal Text" lineEndContext="#stay"> | 693 | <DetectSpaces /> | ||
678 | <DetectSpaces /> | 694 | <DetectChar attribute="Separator Symbol" context="#pop" char=";" /> | ||
679 | <DetectChar attribute="Separator Symbol" context="#pop" char=";" /> | 695 | <DetectChar attribute="Normal Text" context="#pop" char="}" endRegion="ruleset" /> | ||
680 | <DetectChar attribute="Normal Text" context="#pop" char="}" endRegion="ruleset" /> | 696 | <IncludeRules context="FindSelector" /> | ||
681 | <IncludeRules context="FindSelector" /> | 697 | </context> | ||
682 | </context> | 698 | | ||
683 | 699 | <context name="@mixin" attribute="Normal Text" lineEndContext="#stay"> | |||
684 | <context name="@mixin" attribute="Normal Text" lineEndContext="#stay"> | 700 | <DetectSpaces /> | ||
685 | <DetectSpaces /> | 701 | <IncludeRules context="FindComments" /> | ||
686 | <IncludeRules context="FindComments" /> | 702 | <RegExpr attribute="Function" context="MixinParameter" String="[a-zA-Z0-9\-_]+" /> | ||
687 | <RegExpr attribute="Function" context="MixinParameter" String="[a-zA-Z0-9\-_]+" /> | 703 | </context> | ||
688 | </context> | 704 | | ||
689 | 705 | <context name="MixinParameter" attribute="Error" lineEndContext="#stay"> | |||
690 | <context name="MixinParameter" attribute="Error" lineEndContext="#stay"> | 706 | <DetectSpaces attribute="Normal Text" /> | ||
691 | <DetectSpaces attribute="Normal Text" /> | 707 | <AnyChar attribute="Normal Text" context="#stay" String="()" /> | ||
692 | <AnyChar attribute="Normal Text" context="#stay" String="()" /> | 708 | <DetectChar attribute="Separator Symbol" context="#stay" char="," /> | ||
693 | <DetectChar attribute="Separator Symbol" context="#stay" char="," /> | 709 | <DetectChar attribute="Normal Text" context="#pop#pop!RuleSet" char="{" beginRegion="ruleset" /> | ||
694 | <DetectChar attribute="Normal Text" context="#pop#pop!RuleSet" char="{" beginRegion="ruleset" /> | 710 | <IncludeRules context="FindComments" /> | ||
695 | <IncludeRules context="FindComments" /> | 711 | <RegExpr attribute="Variable" context="#stay" String="\$[a-zA-Z0-9\-_]+" /> | ||
696 | <RegExpr attribute="Variable" context="#stay" String="\$[a-zA-Z0-9\-_]+" /> | 712 | <StringDetect attribute="Operator" context="#stay" String="..." /> | ||
697 | </context> | 713 | </context> | ||
698 | 714 | | |||
699 | <context name="@keyframes" attribute="Normal Text" lineEndContext="#stay"> | 715 | <context name="@keyframes" attribute="Normal Text" lineEndContext="#stay"> | ||
700 | <DetectSpaces /> | 716 | <DetectSpaces /> | ||
701 | <IncludeRules context="FindComments" /> | 717 | <IncludeRules context="FindComments" /> | ||
702 | <DetectChar attribute="Normal Text" context="Within-@keyframes" char="{" beginRegion="ruleset" /> | 718 | <DetectChar attribute="Normal Text" context="Within-@keyframes" char="{" beginRegion="ruleset" /> | ||
703 | </context> | 719 | </context> | ||
704 | 720 | | |||
Show All 24 Lines | 743 | <context name="@font-face" attribute="Normal Text" lineEndContext="#stay"> | |||
729 | <IncludeRules context="FindComments" /> | 745 | <IncludeRules context="FindComments" /> | ||
730 | <DetectChar attribute="Normal Text" context="#pop!Within-@font-face" char="{" beginRegion="ruleset" /> | 746 | <DetectChar attribute="Normal Text" context="#pop!Within-@font-face" char="{" beginRegion="ruleset" /> | ||
731 | </context> | 747 | </context> | ||
732 | 748 | | |||
733 | <context name="Within-@font-face" attribute="Normal Text" lineEndContext="#stay"> | 749 | <context name="Within-@font-face" attribute="Normal Text" lineEndContext="#stay"> | ||
734 | <DetectSpaces /> | 750 | <DetectSpaces /> | ||
735 | <IncludeRules context="FindComments" /> | 751 | <IncludeRules context="FindComments" /> | ||
736 | <keyword attribute="Property" context="IsProperty" String="within-@font-face" /> | 752 | <keyword attribute="Property" context="IsProperty" String="within-@font-face" /> | ||
737 | <RegExpr attribute="Unknown Property" context="IsProperty" String="[A-Za-z_-]+\b" /> | 753 | <RegExpr attribute="Unknown Property" context="IsProperty" String="[A-Za-z_-]+\b" /> | ||
738 | <DetectChar attribute="Normal Text" context="#pop" char="}" endRegion="ruleset" /> | 754 | <DetectChar attribute="Normal Text" context="#pop" char="}" endRegion="ruleset" /> | ||
739 | </context> | 755 | </context> | ||
740 | 756 | | |||
741 | <context name="@page" attribute="Normal Text" lineEndContext="#stay"> | 757 | <context name="@page" attribute="Normal Text" lineEndContext="#stay"> | ||
742 | <DetectSpaces /> | 758 | <DetectSpaces /> | ||
743 | <IncludeRules context="FindComments" /> | 759 | <IncludeRules context="FindComments" /> | ||
744 | <DetectChar attribute="Selector Pseudo" context="SelectorPseudo-@page" char=":" /> | 760 | <DetectChar attribute="Selector Pseudo" context="SelectorPseudo-@page" char=":" /> | ||
745 | <DetectChar attribute="Normal Text" context="#pop!Within-@page" char="{" beginRegion="ruleset" /> | 761 | <DetectChar attribute="Normal Text" context="#pop!Within-@page" char="{" beginRegion="ruleset" /> | ||
▲ Show 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | |||||
797 | </context> | 813 | </context> | ||
798 | 814 | | |||
799 | <context name="SelectorAttr" attribute="Selector Attribute" lineEndContext="#stay"> | 815 | <context name="SelectorAttr" attribute="Selector Attribute" lineEndContext="#stay"> | ||
800 | <DetectChar attribute="Selector Attribute" context="#pop" char="]" /> | 816 | <DetectChar attribute="Selector Attribute" context="#pop" char="]" /> | ||
801 | <IncludeRules context="FindStrings" /> | 817 | <IncludeRules context="FindStrings" /> | ||
802 | <DetectChar attribute="Operator" context="SelectorAttrValue" char="=" /> | 818 | <DetectChar attribute="Operator" context="SelectorAttrValue" char="=" /> | ||
803 | <Detect2Chars attribute="Operator" context="SelectorAttrValue" char="~" char1="=" /> | 819 | <Detect2Chars attribute="Operator" context="SelectorAttrValue" char="~" char1="=" /> | ||
804 | <Detect2Chars attribute="Operator" context="SelectorAttrValue" char="^" char1="=" /> | 820 | <Detect2Chars attribute="Operator" context="SelectorAttrValue" char="^" char1="=" /> | ||
805 | <Detect2Chars attribute="Operator" context="SelectorAttrValue" char="$" char1="=" /> | 821 | <Detect2Chars attribute="Operator" context="SelectorAttrValue" char="$" char1="=" /> | ||
806 | <Detect2Chars attribute="Operator" context="SelectorAttrValue" char="*" char1="=" /> | 822 | <Detect2Chars attribute="Operator" context="SelectorAttrValue" char="*" char1="=" /> | ||
807 | <Detect2Chars attribute="Operator" context="SelectorAttrValue" char="|" char1="=" /> | 823 | <Detect2Chars attribute="Operator" context="SelectorAttrValue" char="|" char1="=" /> | ||
808 | <DetectIdentifier /> | 824 | <DetectIdentifier /> | ||
809 | </context> | 825 | </context> | ||
810 | 826 | | |||
811 | <context name="SelectorAttrValue" attribute="String" lineEndContext="#stay"> | 827 | <context name="SelectorAttrValue" attribute="String" lineEndContext="#stay"> | ||
812 | <DetectChar attribute="Selector Attribute" context="#pop#pop" char="]" /> | 828 | <DetectChar attribute="Selector Attribute" context="#pop#pop" char="]" /> | ||
813 | <DetectIdentifier /> | 829 | <DetectIdentifier /> | ||
814 | </context> | 830 | </context> | ||
815 | 831 | | |||
816 | <context name="SelectorPseudo" attribute="Selector Pseudo" lineEndContext="#pop"> | 832 | <context name="SelectorPseudo" attribute="Selector Pseudo" lineEndContext="#pop"> | ||
817 | <DetectChar attribute="Selector Pseudo" context="SelectorPseudoElements" char=":" /> | 833 | <DetectChar attribute="Selector Pseudo" context="SelectorPseudoElements" char=":" /> | ||
818 | <keyword attribute="Selector Pseudo" context="SelectorPseudoValueSelector" String="pseudoclass-not" /> | 834 | <keyword attribute="Selector Pseudo" context="SelectorPseudoValueSelector" String="pseudoclass-selector" /> | ||
819 | <keyword attribute="Selector Pseudo" context="SelectorPseudoValue" String="pseudoclasses" /> | 835 | <keyword attribute="Selector Pseudo" context="SelectorPseudoValue" String="pseudoclasses" /> | ||
820 | <RegExpr attribute="Selector Pseudo" context="SelectorPseudoValue" String="[-a-zA-Z][-a-zA-Z0-9]*" /> | 836 | <RegExpr attribute="Selector Pseudo" context="SelectorPseudoValue" String="[-a-zA-Z][-a-zA-Z0-9]*" /> | ||
821 | </context> | 837 | </context> | ||
822 | 838 | | |||
823 | <context name="SelectorPseudoElements" attribute="Selector Pseudo" lineEndContext="#pop#pop"> | 839 | <context name="SelectorPseudoElements" attribute="Selector Pseudo" lineEndContext="#pop#pop"> | ||
824 | <keyword attribute="Selector Pseudo" context="#pop!SelectorPseudoValue" String="pseudoelements" /> | 840 | <keyword attribute="Selector Pseudo" context="#pop!SelectorPseudoValue" String="pseudoelements" /> | ||
825 | <RegExpr attribute="Selector Pseudo" context="#pop!SelectorPseudoValue" String="[-a-zA-Z][-a-zA-Z0-9]*" /> | 841 | <RegExpr attribute="Selector Pseudo" context="#pop!SelectorPseudoValue" String="[-a-zA-Z][-a-zA-Z0-9]*" /> | ||
826 | </context> | 842 | </context> | ||
Show All 24 Lines | 864 | <context name="Comment" attribute="Comment" lineEndContext="#stay"> | |||
851 | <IncludeRules context="##Alerts" /> | 867 | <IncludeRules context="##Alerts" /> | ||
852 | <DetectIdentifier /> | 868 | <DetectIdentifier /> | ||
853 | </context> | 869 | </context> | ||
854 | 870 | | |||
855 | <context name="RuleSet" attribute="Normal Text" lineEndContext="#stay"> | 871 | <context name="RuleSet" attribute="Normal Text" lineEndContext="#stay"> | ||
856 | <DetectSpaces /> | 872 | <DetectSpaces /> | ||
857 | <DetectChar attribute="Normal Text" context="#pop" char="}" endRegion="ruleset" /> | 873 | <DetectChar attribute="Normal Text" context="#pop" char="}" endRegion="ruleset" /> | ||
858 | <RegExpr attribute="Property" context="Rule" String="[A-Za-z_-]+\s*:($|[/{\s0-9$"'])" lookAhead="true" /> | 874 | <RegExpr attribute="Property" context="Rule" String="[A-Za-z_-]+\s*:($|[/{\s0-9$"'])" lookAhead="true" /> | ||
875 | <IncludeRules context="Base" /> | ||||
859 | <IncludeRules context="Base" /> | 876 | <!-- auto-completion only, includes by a previous rule --> | ||
860 | <!-- auto-completion only, includes by a previous rule --> | 877 | <keyword attribute="Normal Text" context="#stay" String="properties" /> | ||
878 | </context> | ||||
861 | <keyword attribute="Normal Text" context="#stay" String="properties" /> | 879 | | ||
862 | </context> | 880 | <context name="Rule" attribute="Normal Text" lineEndContext="#stay"> | ||
863 | 881 | <DetectChar attribute="Normal Text" context="RuleParameters" char=":" /> | |||
864 | <context name="Rule" attribute="Normal Text" lineEndContext="#stay"> | 882 | <Detect2Chars attribute="Variable" context="IsVariable" char="-" char1="-" /> | ||
865 | <DetectChar attribute="Normal Text" context="RuleParameters" char=":" /> | 883 | <keyword attribute="Property" context="#stay" String="properties" /> | ||
866 | <Detect2Chars attribute="Variable" context="IsVariable" char="-" char1="-" /> | 884 | <RegExpr attribute="Unknown Property" context="#stay" String="[^:]+" /> | ||
867 | <keyword attribute="Property" context="#stay" String="properties" /> | 885 | </context> | ||
868 | <RegExpr attribute="Unknown Property" context="#stay" String="[^:]+" /> | 886 | | ||
869 | </context> | 887 | <context name="IsVariable" attribute="Normal Text" lineEndContext="#pop"> | ||
870 | 888 | <DetectChar attribute="Normal Text" context="#pop!RuleParameters" char=":" /> | |||
871 | <context name="IsVariable" attribute="Normal Text" lineEndContext="#pop"> | 889 | <RegExpr attribute="Variable" context="#stay" String="[^:]+" /> | ||
872 | <DetectChar attribute="Normal Text" context="#pop!RuleParameters" char=":" /> | 890 | </context> | ||
873 | <RegExpr attribute="Variable" context="#stay" String="[^:]+" /> | 891 | | ||
874 | </context> | 892 | <context name="RuleParameters" attribute="Normal Text" lineEndContext="#stay"> | ||
875 | 893 | <DetectSpaces /> | |||
876 | <context name="RuleParameters" attribute="Normal Text" lineEndContext="#stay"> | 894 | <!-- Jump out conditions --> | ||
877 | <DetectSpaces /> | 895 | <DetectChar attribute="Separator Symbol" context="#pop#pop" char=";" /> | ||
878 | <!-- Jump out conditions --> | 896 | <DetectChar attribute="Separator Symbol" context="#stay" char="," /> | ||
879 | <DetectChar attribute="Separator Symbol" context="#pop#pop" char=";" /> | 897 | <DetectChar attribute="Normal Text" context="#pop#pop#pop" char="}" endRegion="ruleset" /> | ||
880 | <DetectChar attribute="Separator Symbol" context="#stay" char="," /> | 898 | <DetectChar attribute="Normal Text" context="SubRule" char="{" beginRegion="ruleset" /> | ||
881 | <DetectChar attribute="Normal Text" context="#pop#pop#pop" char="}" endRegion="ruleset" /> | 899 | <IncludeRules context="FindComments" /> | ||
882 | <DetectChar attribute="Normal Text" context="SubRule" char="{" beginRegion="ruleset" /> | 900 | <IncludeRules context="FindStrings" /> | ||
883 | <IncludeRules context="FindComments" /> | 901 | <IncludeRules context="FindFunctions" /> | ||
884 | <IncludeRules context="FindStrings" /> | 902 | <IncludeRules context="FindValues" /> | ||
885 | <IncludeRules context="FindFunctions" /> | 903 | <!-- auto-completion only --> | ||
886 | <IncludeRules context="FindValues" /> | 904 | <keyword attribute="Normal Text" context="#stay" String="functions" /> | ||
887 | <!-- auto-completion only --> | 905 | </context> | ||
888 | <keyword attribute="Normal Text" context="#stay" String="functions" /> | 906 | | ||
889 | </context> | 907 | <context name="SubRule" attribute="Normal Text" lineEndContext="#stay"> | ||
890 | 908 | <DetectSpaces /> | |||
891 | <context name="SubRule" attribute="Normal Text" lineEndContext="#stay"> | 909 | <IncludeRules context="FindComments" /> | ||
892 | <DetectSpaces /> | 910 | <DetectChar attribute="Normal Text" context="#pop#pop#pop" char="}" endRegion="ruleset" /> | ||
893 | <IncludeRules context="FindComments" /> | 911 | <RegExpr attribute="Property" context="IsProperty" String="[A-Za-z_-]+(?=\s*:)" /> | ||
894 | <DetectChar attribute="Normal Text" context="#pop#pop#pop" char="}" endRegion="ruleset" /> | 912 | <RegExpr attribute="Variable" context="VariableDefine" String="\$[a-zA-Z0-9\-_]+(?=\s*:)" /> | ||
895 | <RegExpr attribute="Property" context="IsProperty" String="[A-Za-z_-]+(?=\s*:)" /> | 913 | <Detect2Chars attribute="Interpolation" context="InterpolationMaybeProperty" char="#" char1="{" /> | ||
896 | <RegExpr attribute="Variable" context="VariableDefine" String="\$[a-zA-Z0-9\-_]+(?=\s*:)" /> | 914 | <DetectIdentifier /> | ||
897 | <Detect2Chars attribute="Interpolation" context="Interpolation" char="#" char1="{" /> | 915 | <AnyChar attribute="Error" context="#stay" String="*>+~|.#" /> | ||
898 | <DetectIdentifier /> | 916 | <!-- auto-completion only, includes by previous rule --> | ||
899 | <AnyChar attribute="Error" context="#stay" String="*>+~|.#" /> | 917 | <keyword attribute="Normal Text" context="#stay" String="properties" /> | ||
900 | <!-- auto-completion only, includes by previous rule --> | 918 | <keyword attribute="Normal Text" context="#stay" String="sub-properties" /> | ||
901 | <keyword attribute="Normal Text" context="#stay" String="properties" /> | 919 | </context> | ||
902 | <keyword attribute="Normal Text" context="#stay" String="sub-properties" /> | 920 | | ||
903 | </context> | 921 | <context name="Function" attribute="Normal Text" lineEndContext="#stay"> | ||
904 | 922 | <DetectChar attribute="Function" context="FunctionParameters" char="(" /> | |||
905 | <context name="Function" attribute="Normal Text" lineEndContext="#stay"> | 923 | <StringDetect attribute="Function" context="FunctionVar" String="var(" /> | ||
906 | <DetectChar attribute="Function" context="FunctionParameters" char="(" /> | 924 | <StringDetect attribute="Function" context="FunctionUrl" String="url(" /> | ||
907 | <StringDetect attribute="Function" context="FunctionVar" String="var(" /> | 925 | <StringDetect attribute="Function" context="FunctionCalc" String="calc(" /> | ||
908 | <StringDetect attribute="Function" context="FunctionUrl" String="url(" /> | 926 | <keyword attribute="Function" context="#stay" String="functions" /> | ||
909 | <StringDetect attribute="Function" context="FunctionCalc" String="calc(" /> | 927 | <RegExpr attribute="Function" context="#stay" String="[-a-zA-Z][-a-zA-Z0-9]*" /> | ||
910 | <keyword attribute="Function" context="#stay" String="functions" /> | 928 | </context> | ||
911 | <RegExpr attribute="Function" context="#stay" String="[-a-zA-Z][-a-zA-Z0-9]*" /> | 929 | | ||
912 | </context> | 930 | <context name="FunctionVar" attribute="Variable" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop!FunctionParameters"> | ||
913 | 931 | <DetectSpaces /> | |||
914 | <context name="FunctionVar" attribute="Variable" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop!FunctionParameters"> | 932 | <IncludeRules context="FindComments" /> | ||
915 | <DetectSpaces /> | 933 | <RegExpr attribute="Variable" context="#pop!FunctionParameters" String="--[^ \t\),]+" /> | ||
916 | <IncludeRules context="FindComments" /> | 934 | </context> | ||
917 | <RegExpr attribute="Variable" context="#pop!FunctionParameters" String="--[^ \t\),]+" /> | 935 | | ||
918 | </context> | 936 | <context name="FunctionCalc" attribute="Normal Text" lineEndContext="#stay"> | ||
919 | 937 | <DetectSpaces /> | |||
920 | <context name="FunctionCalc" attribute="Normal Text" lineEndContext="#stay"> | 938 | <DetectChar attribute="Function" context="#pop#pop" char=")" /> | ||
921 | <DetectSpaces /> | 939 | <IncludeRules context="Calc" /> | ||
922 | <DetectChar attribute="Function" context="#pop#pop" char=")" /> | 940 | </context> | ||
923 | <IncludeRules context="Calc" /> | 941 | | ||
924 | </context> | 942 | <context name="NestedCalc" attribute="Normal Text" lineEndContext="#stay"> | ||
925 | 943 | <DetectSpaces /> | |||
926 | <context name="NestedCalc" attribute="Normal Text" lineEndContext="#stay"> | 944 | <DetectChar attribute="Normal Text" context="#pop" char=")" /> | ||
927 | <DetectSpaces /> | 945 | <IncludeRules context="Calc" /> | ||
928 | <DetectChar attribute="Normal Text" context="#pop" char=")" /> | 946 | </context> | ||
929 | <IncludeRules context="Calc" /> | 947 | | ||
930 | </context> | 948 | <context name="Calc" attribute="Normal Text" lineEndContext="#stay"> | ||
931 | 949 | <DetectChar attribute="Separator Symbol" context="#stay" char="," /> | |||
932 | <context name="Calc" attribute="Normal Text" lineEndContext="#stay"> | 950 | <DetectChar attribute="Normal Text" context="NestedCalc" char="(" /> | ||
933 | <DetectChar attribute="Separator Symbol" context="#stay" char="," /> | 951 | <IncludeRules context="FindComments" /> | ||
934 | <DetectChar attribute="Normal Text" context="NestedCalc" char="(" /> | 952 | <IncludeRules context="FindStrings" /> | ||
935 | <IncludeRules context="FindComments" /> | 953 | <IncludeRules context="FindFunctions" /> | ||
936 | <IncludeRules context="FindStrings" /> | 954 | <IncludeRules context="FindValues" /> | ||
937 | <IncludeRules context="FindFunctions" /> | 955 | <RegExpr attribute="Operator" context="#stay" String="[-](?=$|[ \t(,;])|[+](?=$|[^0-9)])|[/*]" /> | ||
938 | <IncludeRules context="FindValues" /> | 956 | <!-- auto-completion only --> | ||
939 | <RegExpr attribute="Operator" context="#stay" String="[-](?=$|[ \t(,;])|[+](?=$|[^0-9)])|[/*]" /> | 957 | <keyword attribute="Normal Text" context="#stay" String="functions" /> | ||
940 | <!-- auto-completion only --> | 958 | </context> | ||
941 | <keyword attribute="Normal Text" context="#stay" String="functions" /> | 959 | | ||
942 | </context> | 960 | <context name="FunctionUrl" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="UrlValue"> | ||
943 | 961 | <DetectSpaces /> | |||
944 | <context name="FunctionUrl" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="UrlValue"> | 962 | <IncludeRules context="FindStrings" /> | ||
945 | <DetectSpaces /> | 963 | <DetectChar attribute="Function" context="#pop#pop" char=")" /> | ||
946 | <IncludeRules context="FindStrings" /> | 964 | </context> | ||
947 | <DetectChar attribute="Function" context="#pop#pop" char=")" /> | 965 | | ||
948 | </context> | 966 | <context name="UrlValue" attribute="String" lineEndContext="#stay"> | ||
949 | 967 | <DetectChar attribute="Function" context="#pop#pop#pop" char=")" /> | |||
950 | <context name="UrlValue" attribute="String" lineEndContext="#stay"> | 968 | </context> | ||
951 | <DetectChar attribute="Function" context="#pop#pop#pop" char=")" /> | 969 | | ||
952 | </context> | 970 | <context name="FunctionParameters" attribute="Normal Text" lineEndContext="#stay"> | ||
953 | 971 | <DetectSpaces /> | |||
954 | <context name="FunctionParameters" attribute="Normal Text" lineEndContext="#stay"> | 972 | <DetectChar attribute="Function" context="#pop#pop" char=")" /> | ||
955 | <DetectSpaces /> | 973 | <IncludeRules context="FindComments" /> | ||
956 | <DetectChar attribute="Function" context="#pop#pop" char=")" /> | 974 | <IncludeRules context="FindStrings" /> | ||
957 | <IncludeRules context="FindComments" /> | 975 | <IncludeRules context="FindFunctions" /> | ||
958 | <IncludeRules context="FindStrings" /> | 976 | <IncludeRules context="FindValues" /> | ||
959 | <IncludeRules context="FindValues" /> | 977 | <DetectChar attribute="Separator Symbol" context="#stay" char="," /> | ||
960 | <DetectChar attribute="Separator Symbol" context="#stay" char="," /> | 978 | <StringDetect attribute="Operator" String="..." /> | ||
961 | </context> | 979 | </context> | ||
962 | 980 | | |||
963 | <!-- string contexts --> | 981 | <!-- string contexts --> | ||
964 | <context name="StringDQ" attribute="String" lineEndContext="#stay"> | 982 | <context name="StringDQ" attribute="String" lineEndContext="#stay"> | ||
965 | <DetectChar attribute="String" context="#pop" char=""" /> | 983 | <DetectChar attribute="String" context="#pop" char=""" /> | ||
966 | <IncludeRules context="InsideString" /> | 984 | <IncludeRules context="InsideString" /> | ||
967 | </context> | 985 | </context> | ||
968 | 986 | | |||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |