|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 | <!--
|
3 |
| - Wed 28 Jun 2017 11:48:43 AM MDT |
| 3 | + Wed 28 Jun 2017 12:13:22 PM MDT |
4 | 4 |
|
5 |
| - Minecraft Functions Syntax Highlighting v0.0.7 |
| 5 | + Minecraft Functions Syntax Highlighting v0.0.8 |
6 | 6 |
|
7 | 7 | Author: nigathan <[email protected]>
|
8 | 8 |
|
|
14 | 14 | FIXED respected with their natural opening and closing.
|
15 | 15 | Example:
|
16 | 16 | summon minecraft:ocelot ~ ~ ~ {Attributes:[{Base:1.0,Name:"generic.movementSpeed"},{Base:8.0,Name:"generic.followRange"}],CustomName:"Lightning McKitty",CustomNameVisible:1}
|
| 17 | + |
| 18 | + * Text within nested curly braces does not recieve |
| 19 | + highlighting. |
17 | 20 |
|
18 | 21 | GtkSourceView is free software; you can redistribute it and/or
|
19 | 22 | modify it under the terms of the GNU Lesser General Public
|
|
41 | 44 | <style id="operator" _name="Operators" map-to="def:operator"/>
|
42 | 45 | <style id="comment" _name="Comment" map-to="def:comment"/>
|
43 | 46 | <style id="error" _name="Error" map-to="def:error"/>
|
44 |
| - <style id="warning" _name="Warning" map-to="def:warning"/> |
45 | 47 | <style id="string" _name="String" map-to="def:string"/>
|
46 | 48 | <style id="data" _name="NBT Data Tag" map-to="def:statement"/>
|
47 | 49 | <style id="floating-point" _name="Floating point number" map-to="def:floating-point"/>
|
|
119 | 121 | <end>"</end>
|
120 | 122 | </context>
|
121 | 123 |
|
122 |
| - <context id="char" end-at-line-end="true" style-ref="string"> |
123 |
| - <start>'</start> |
124 |
| - <end>'</end> |
125 |
| - </context> |
126 |
| - |
127 | 124 | <context id="data" end-at-line-end="true" style-ref="data">
|
128 | 125 | <start>{</start>
|
129 | 126 | <end>}$</end>
|
|
132 | 129 | <match>\%{name}:</match>
|
133 | 130 | </context>
|
134 | 131 | <context ref="string"/>
|
135 |
| - <context ref="char"/> |
136 | 132 | <context ref="def:decimal"/>
|
137 | 133 | <context ref="float"/>
|
138 | 134 | <context style-ref="def:string" extend-parent="false">
|
|
150 | 146 | </context>
|
151 | 147 | </include>
|
152 | 148 | </context>
|
153 |
| - <!--<context id="data" style-ref="def:type"> |
154 |
| - <match>(?<open>{)(([^{}]+)|(?R))*(?<close>})</match> |
155 |
| - <include> |
156 |
| - <context sub-pattern="open" style-ref="data"/> |
157 |
| - <context sub-pattern="close" style-ref="data"/> |
158 |
| - </include> |
159 |
| - </context>--> |
160 | 149 |
|
161 | 150 | <context ref="def:decimal"/>
|
162 | 151 |
|
|
0 commit comments