-
Notifications
You must be signed in to change notification settings - Fork 2
/
patch.xml
42 lines (38 loc) · 1.24 KB
/
patch.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language
name="JSX"
section="Scripts"
mimetype="text/jsx"
version="0.0.1"
priority="10"
kateversion="3.12.0"
indenter="cstyle"
author="Rafał Rzepecki ([email protected])"
license="MIT"
>
<highlighting>
<contexts>
<context name="Normal">
<keyword attribute="Keyword" String="keywords"/>
<keyword attribute="Reserved" String="reserved"/>
<keyword attribute="Keyword" context="NoRegExp" String="primitives"/>
<IncludeRules context="FindXML (XML)" />
</context>
<context name="FindXML (XML)">
<DetectChar char="{" context="Nested JS text" />
</context>
<context name="Value (XML)">
<DetectChar char="{" context="Nested JS" />
</context>
<context name="Nested JS text" lineEndContext="#stay" attribute="Normal Text" >
<DetectChar char="}" context="#pop" />
<IncludeRules context="Normal" />
</context>
<context name="Nested JS" lineEndContext="#stay" attribute="Normal Text" >
<DetectChar char="}" context="#pop#pop#pop" />
<IncludeRules context="Normal" />
</context>
</contexts>
</highlighting>
</language>