-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathXML-TTX.sublime-syntax
58 lines (50 loc) · 1.96 KB
/
XML-TTX.sublime-syntax
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
%YAML 1.2
---
name: XML-TTX
file_extensions: [ttx]
scope: text.xml.ttx
contexts:
main:
- match: ""
push: Packages/XML/XML.sublime-syntax
with_prototype:
- match: (<)(assembly)(>)
captures:
1: punctuation.definition.tag.begin.xml
2: entity.name.tag.xml
3: punctuation.definition.tag.end.xml
push: assembly
- match: '(<)((GlyphOrder|BASE|CBDT|CBLC|CFF|CFF2|COLR|CPAL|DSIG|EBDT|EBLC|EBSC|FFTM|Feat|GDEF|GMAP|GPKG|GPOS|GSUB|Glat|Gloc|HVAR|JSTF|LTSH|MATH|MERG|META|MVAR|OS_2|PCLT|SING|STAT|SVG|Silf|Sill|TSI.|TTFA|VDMX|VORG|VVAR|ankr|avar|bsln|cidg|cmap|cvar|cvt|feat|fmtx|fpgm|fvar|gasp|gcid|glyf|gvar|hdmx|head|hhea|hmtx|kern|kerx|lcar|loca|ltag|maxp|meta|mort|morx|name|opbd|post|prep|prop|sbit|sbix|trak|vhea|vmtx)(\s+.+)?)(>)'
captures:
1: punctuation.definition.tag.begin.xml
2: entity.name.tag.xml text.xml.ttx.sfnttable
5: punctuation.definition.tag.end.xml
assembly:
- meta_content_scope: string.block.assembly
- match: (</)(assembly)(>)
captures:
1: punctuation.definition.tag.begin.xml
2: entity.name.tag.xml
3: punctuation.definition.tag.end.xml
pop: true
- match: (\/\*)(\*\/)
captures:
1: punctuation.definition.comment.begin.xml
2: punctuation.definition.comment.end.xml
- match: (\/\*)(.+)(\*\/)
captures:
1: punctuation.definition.comment.begin.xml
2: comment.block.assembly
3: punctuation.definition.comment.end.xml
- match: (\[)(\])
captures:
1: meta.tag.parameters.begin.assembly
2: meta.tag.parameters.end.assembly
- match: (\[)([ 01]+)(\])
captures:
1: meta.tag.parameters.begin.assembly
2: meta.tag.parameters.assembly
3: meta.tag.parameters.end.assembly
#scope: meta.tag.parameters.assembly
- match: \b[0-9]+\b
scope: constant.numeric.assembly