Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/rmarkdown.xml
Show All 9 Lines | 7 | depends on: | |||
---|---|---|---|---|---|
10 | Kate highlighting module for LaTeX | 10 | Kate highlighting module for LaTeX | ||
11 | Kate highlighting module for YAML | 11 | Kate highlighting module for YAML | ||
12 | --> | 12 | --> | ||
13 | 13 | | |||
14 | <language name="R Markdown" | 14 | <language name="R Markdown" | ||
15 | section="Markup" | 15 | section="Markup" | ||
16 | extensions="*.rmd;*.Rmd;*.RMD" | 16 | extensions="*.rmd;*.Rmd;*.RMD" | ||
17 | mimetype="text/x-r-markdown" | 17 | mimetype="text/x-r-markdown" | ||
18 | version="5" | 18 | version="6" | ||
19 | kateversion="3.4" | 19 | kateversion="5.0" | ||
20 | casesensitive="true" | 20 | casesensitive="true" | ||
21 | author="Dirk Sarpe (dsarpe@posteo.de)" | 21 | author="Dirk Sarpe (dsarpe@posteo.de)" | ||
22 | license="GPL"> | 22 | license="GPL"> | ||
23 | 23 | | |||
24 | <highlighting> | 24 | <highlighting> | ||
25 | <contexts> | 25 | <contexts> | ||
26 | 26 | | |||
27 | <context attribute="Markdown" name="Normal Text" lineEndContext="#stay"> | 27 | <context attribute="Markdown" name="Start Document" lineEndContext="Normal Text" lineEmptyContext="Normal Text" fallthrough="true" fallthroughContext="Normal Text"> | ||
28 | <RegExpr String="^---$" column="0" attribute="Markdown" context="YAMLhead" beginRegion="YAMLhead block"/> | ||||
29 | </context> | ||||
30 | | ||||
31 | <context attribute="Markdown" name="Normal Text" lineEndContext="#stay" lineEmptyContext="find-code-block"> | ||||
28 | <RegExpr String="^```\{r.*\}" column="0" attribute="Structure" context="R block" | 32 | <RegExpr String="^```\{r.*\}" column="0" attribute="Structure" context="R block" | ||
29 | beginRegion="R block"/> | 33 | beginRegion="R block"/> | ||
30 | <Detect2Chars char="`" char1="r" attribute="Structure" | 34 | <Detect2Chars char="`" char1="r" attribute="Structure" | ||
31 | context="R inline"/> | 35 | context="R inline"/> | ||
32 | <Detect2Chars char="$" char1="$" attribute="MathMode" | 36 | <Detect2Chars char="$" char1="$" attribute="MathMode" | ||
33 | context="LaTeX equation block" beginRegion="LaTeX equation block"/> | 37 | context="LaTeX equation block" beginRegion="LaTeX equation block"/> | ||
34 | <DetectChar char="$" attribute="MathMode" | 38 | <DetectChar char="$" attribute="MathMode" | ||
35 | context="LaTeX inline equation"/> | 39 | context="LaTeX inline equation"/> | ||
36 | <RegExpr String="^---$" column="0" attribute="Markdown" context="YAMLhead" | 40 | <IncludeRules context="Normal Text##Markdown" includeAttrib="true"/> | ||
37 | beginRegion="YAMLhead block"/> | 41 | </context> | ||
38 | <IncludeRules context="##Markdown" includeAttrib="true"/> | 42 | <context attribute="Markdown" name="find-code-block" lineEndContext="#stay" lineEmptyContext="#stay" fallthrough="true" fallthroughContext="#pop"> | ||
43 | <IncludeRules context="find-code-block##Markdown" includeAttrib="true"/> | ||||
39 | </context> | 44 | </context> | ||
40 | 45 | | |||
41 | <context name="R block" attribute="Markdown" lineEndContext="#stay"> | 46 | <context name="R block" attribute="Markdown" lineEndContext="#stay"> | ||
42 | <RegExpr String="^```$" column="0" attribute="Structure" context="#pop" | 47 | <RegExpr String="^```$" column="0" attribute="Structure" context="#pop" | ||
43 | endRegion="R block"/> | 48 | endRegion="R block"/> | ||
44 | <IncludeRules context="##R Script" includeAttrib="true"/> | 49 | <IncludeRules context="##R Script" includeAttrib="true"/> | ||
45 | </context> | 50 | </context> | ||
46 | 51 | | |||
Show All 37 Lines |