llvm.org GIT mirror llvm / 29d3c61
Add Textmate bundle for Tablegen syntax-highlighting git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171496 91177308-0d34-0410-b5e6-96231b3b80d8 Joel Jones 6 years ago
3 changed file(s) with 151 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 This directory contains a "bundle" for doing syntax highlighting of TableGen
1 files for the TextMate editor for OS X. The highlighting follows that done
2 by the TextMate "C" bundle. Currently, keywords, comments, and strings are
3 highlighted.
4
5 To install this bundle, copy it to
6 ~/Library/Application\ Support/TextMate/Bundles
0
1
2
3
4 fileTypes
5
6 foldingStartMarker
7 /\*\*|\{\s*$
8 foldingStopMarker
9 \*\*/|^\s*\}
10 name
11 TableGen
12 patterns
13
14
15 include
16 #comments
17
18
19 match
20 \b(def|let|in|code|dag|string|list|bits|bit|field|include|defm|foreach|class|multiclass)\b
21 name
22 keyword.control.tablegen
23
24
25 begin
26 "
27 end
28 "
29 name
30 string.quoted.double.untitled
31 patterns
32
33
34 match
35 \\.
36 name
37 constant.character.escape.tablegen
38
39
40
41
42 repository
43
44 comments
45
46 patterns
47
48
49 captures
50
51 1
52
53 name
54 meta.toc-list.banner.block.tablegen
55
56
57 match
58 ^/\* =(\s*.*?)\s*= \*/$\n?
59 name
60 comment.block.tablegen
61
62
63 begin
64 /\*
65 captures
66
67 0
68
69 name
70 punctuation.definition.comment.tablegen
71
72
73 end
74 \*/
75 name
76 comment.block.tablegen
77
78
79 match
80 \*/.*\n
81 name
82 invalid.illegal.stray-comment-end.tablegen
83
84
85 captures
86
87 1
88
89 name
90 meta.toc-list.banner.line.tablegen
91
92
93 match
94 ^// =(\s*.*?)\s*=\s*$\n?
95 name
96 comment.line.banner.tablegen
97
98
99 begin
100 //
101 beginCaptures
102
103 0
104
105 name
106 punctuation.definition.comment.tablegen
107
108
109 end
110 $\n?
111 name
112 comment.line.double-slash.tablegen
113 patterns
114
115
116 match
117 (?>\\\s*\n)
118 name
119 punctuation.separator.continuation.tablegen
120
121
122
123
124
125
126 scopeName
127 source.tablegen
128 uuid
129 3A090BFC-E74B-4993-8DAE-7CCF6D238A32
130
131
0
1
2
3
4 name
5 TableGen Bundle
6 ordering
7
8 uuid
9 96925448-7219-41E9-A7F0-8D5B70E9B877
10
11