|
5 | 5 | <!ENTITY envname "[a-zA-Z]+\*?">
|
6 | 6 | <!ENTITY regionmarker "%\s*(?:BEGIN|END)">
|
7 | 7 | ]>
|
8 |
| -< language name= "LaTeX" version= "12" section= "Markup" kateversion= "5.0" priority= "10" extensions= "*.tex;*.ltx;*.dtx;*.sty;*.cls;*.bbx;*.cbx;*.lbx;*.tikz;*.pgf" mimetype= "text/x-tex" casesensitive= "1" author= "Jeroen Wijnhout ([email protected])+Holger Danielsson ([email protected])+Michel Ludwig ([email protected])+Thomas Braun ([email protected])" license= "LGPL" > |
| 8 | +< language name= "LaTeX" version= "13" section= "Markup" kateversion= "5.0" priority= "10" extensions= "*.tex;*.ltx;*.dtx;*.sty;*.cls;*.bbx;*.cbx;*.lbx;*.tikz;*.pgf" mimetype= "text/x-tex" casesensitive= "1" author= "Jeroen Wijnhout ([email protected])+Holger Danielsson ([email protected])+Michel Ludwig ([email protected])+Thomas Braun ([email protected])" license= "LGPL" > |
9 | 9 | <highlighting>
|
10 | 10 | <!-- NOTE: Keywords of kind "\something" do not need a delimiter before "\".
|
11 | 11 | Using a DetectChar rule with lookAhead to detect "\" at the beginning
|
|
437 | 437 |
|
438 | 438 | <context name="LabelOption" attribute="Normal Text" lineEndContext="#stay">
|
439 | 439 | <DetectSpaces/>
|
440 |
| - <DetectChar char="(" attribute="Math" context="MathModeTex" /> |
| 440 | + <Detect2Chars char="\" char1="(" attribute="Math" context="MathModeLatex"/> |
441 | 441 | <DetectChar char="\" attribute="Macro" context="ContrSeq"/>
|
442 | 442 | <DetectChar char="$" attribute="Math" context="MathModeTex" />
|
443 | 443 | <DetectChar char="%" attribute="Comment" context="Comment"/>
|
|
461 | 461 |
|
462 | 462 | <context name="FancyLabelParameter" attribute="Environment" lineEndContext="#stay">
|
463 | 463 | <DetectSpaces/>
|
464 |
| - <DetectChar char="(" attribute="Math" context="MathModeTex" /> |
| 464 | + <Detect2Chars char="\" char1="(" attribute="Math" context="MathModeLatex"/> |
465 | 465 | <DetectChar char="\" attribute="Macro" context="ContrSeq"/>
|
466 | 466 | <DetectChar char="$" attribute="Math" context="MathModeTex" />
|
467 | 467 | <DetectChar char="%" attribute="Comment" context="Comment"/>
|
|
492 | 492 |
|
493 | 493 | <context name="SpecialCommandParameterOption" attribute="Option Text" lineEndContext="#stay">
|
494 | 494 | <DetectSpaces/>
|
495 |
| - <Detect2Chars char="\" char1="(" attribute="Math" context="MathModeTex" /> |
| 495 | + <Detect2Chars char="\" char1="(" attribute="Math" context="MathModeLatex" /> |
496 | 496 | <DetectChar char="\" attribute="Macro" context="ContrSeq"/>
|
497 | 497 | <DetectChar char="$" attribute="Math" context="MathModeTex" />
|
498 | 498 | <DetectChar char="%" attribute="Comment" context="Comment"/>
|
|
0 commit comments