github-linguist 7.2.0 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/grammars/documentation.markdown.injection.haxe.json +22 -0
- data/grammars/etc.json +7 -0
- data/grammars/file.lasso.json +3 -1
- data/grammars/source.abap.json +111 -21
- data/grammars/source.ats.json +17 -87
- data/grammars/source.ballerina.json +1 -1
- data/grammars/source.clarion.json +6 -6
- data/grammars/source.editorconfig.json +322 -0
- data/grammars/source.gfm.json +3 -1
- data/grammars/source.hx.json +1 -1
- data/grammars/source.hxml.json +4 -4
- data/grammars/source.hy.json +429 -0
- data/grammars/source.js.jsx.json +3 -1
- data/grammars/source.jsonnet.json +197 -0
- data/grammars/source.kotlin.json +23 -2
- data/grammars/source.mcfunction-snapshot.json +3053 -0
- data/grammars/source.mcfunction.json +1260 -0
- data/grammars/source.modula-3.json +1 -1
- data/grammars/source.reason.json +3 -0
- data/grammars/source.renpy.json +4 -4
- data/grammars/source.scheme.json +1 -1
- data/grammars/source.solidity.json +189 -0
- data/grammars/source.ssh-config.json +110 -0
- data/grammars/source.ts.json +6 -3
- data/grammars/source.tsx.json +6 -3
- data/grammars/source.viml.json +4 -0
- data/grammars/source.vyper.json +213 -0
- data/grammars/source.zig.json +1 -1
- data/grammars/text.conllu.json +45 -0
- data/grammars/text.html.basic.json +3 -1
- data/grammars/text.html.vue.json +6 -2
- data/grammars/text.rtf.json +143 -0
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- data/lib/linguist/generated.rb +5 -5
- data/lib/linguist/heuristics.yml +12 -5
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +54 -2
- data/lib/linguist/samples.json +3151 -247
- metadata +13 -2
|
@@ -60,11 +60,11 @@
|
|
|
60
60
|
"repository": {
|
|
61
61
|
"attributes": {
|
|
62
62
|
"name": "entity.other.attribute-name.clarion",
|
|
63
|
-
"match": "\\b(?i:ABOVE|ABSOLUTE|ALONE|ALRT|ANGLE|AT|AUTO|AUTOSIZE|AVE|BELOW|BEVEL|BINARY|BINDABLE|BITMAP|BOXED|C|CAP|CENTER|CENTERED|CNT|COLOR|COLUMN|COM|COMPATIBILITY|CONST|CURSOR|DEFAULT|DELAY|DERIVED|DIM|DLL|DOCUMENT|DOCK|DOCKED|DOWN|DRAGID|DRIVER|DROP|DROPID|DUP|ENCRYPT|EXPAND|EXTEND|EXTERNAL|FILL|FILTER|FIRST|FIX|FIXED|FLAT|FONT|FROM|FULL|GLOBALCLASS|GRAY|GRID|HIDE|HLP|HSCROLL|HVSCROLL|ICON|ICONIZE|IMM|IMPLEMENTS|INNER|INS|LANDSCAPE|LAST|LATE|LAYOUT|LENGTH|LFT|LINEWIDTH|LINK|LOCATE|MARK|MASK|MAX|MAXIMIZE|MDI|META|MIN|MM|MODAL|MSG|NAME|NOBAR|NOCASE|NOFRAME|NOMEMO|NOMERGE|NOSHEET|OEM|OPT|ORDER|OUTER|OVER|OVR|OWNER|PAGE|PAGEAFTER|PAGEBEFORE|PALETTE|PAPER|PASCAL|PASSWORD|POINTS|PRE|PREVIEW|PRIMARY|PRIVATE|PROC|PROTECTED|RANGE|RAW|READONLY|RECLAIM|REPEAT|REPLACE|REQ|RESIZE|SCROLL|SINGLE|SMOOTH|SPREAD|STATIC|STD|STEP|STRETCH|SUM|SUPPRESS|TALLY|TARGET|THOUS|TILED|TIMER|TIP|TOGETHER|TOOLBOX|TRN|UP|UPR|USE|VALUE|VERTICAL|VCR|VIRTUAL|VSCROLL|WALLPAPER|WIDTH|WITHNEXT|WITHPRIOR|WIZARD|WRAP|ZOOM|CHECK|DOUBLE|SEPARATOR|PAGENO|RTF|SYSTEM|TYPE
|
|
63
|
+
"match": "\\b(?i:ABOVE|ABSOLUTE|ALONE|ALRT|ANGLE|AT|AUTO|AUTOSIZE|AVE|BELOW|BEVEL|BINARY|BINDABLE|BITMAP|BOXED|C|CAP|CENTER|CENTERED|CNT|COLOR|COLUMN|COM|COMPATIBILITY|CONST|CURSOR|DEFAULT|DELAY|DERIVED|DIM|DLL|COM|DOCUMENT|DOCK|DOCKED|DOWN|DRAGID|DRIVER|DROP|DROPID|DUP|ENCRYPT|EXPAND|EXTEND|EXTERNAL|FILL|FILTER|FIRST|FIX|FIXED|FLAT|FONT|FROM|FULL|GLOBALCLASS|GRAY|GRID|HIDE|HLP|HSCROLL|HVSCROLL|ICON|ICONIZE|IMM|IMPLEMENTS|INNER|INS|LANDSCAPE|LAST|LATE|LAYOUT|LENGTH|LFT|LINEWIDTH|LINK|LOCATE|MARK|MASK|MAX|MAXIMIZE|MDI|META|MIN|MM|MODAL|MSG|NAME|NOBAR|NOCASE|NOFRAME|NOMEMO|NOMERGE|NOSHEET|OEM|OPT|ORDER|OUTER|OVER|OVR|OWNER|PAGE|PAGEAFTER|PAGEBEFORE|PALETTE|PAPER|PASCAL|PASSWORD|POINTS|PRE|PREVIEW|PRIMARY|PRIVATE|PROC|PROTECTED|RANGE|RAW|READONLY|RECLAIM|REPEAT|REPLACE|REQ|RESIZE|SCROLL|SINGLE|SMOOTH|SPREAD|STATIC|STD|STEP|STRETCH|SUM|SUPPRESS|TALLY|TARGET|THOUS|TILED|TIMER|TIP|TOGETHER|TOOLBOX|TRN|UP|UPR|USE|VALUE|VERTICAL|VCR|VIRTUAL|VSCROLL|WALLPAPER|WIDTH|WITHNEXT|WITHPRIOR|WIZARD|WRAP|ZOOM|CHECK|DOUBLE|SEPARATOR|PAGENO|RTF|SYSTEM|TYPE)\\b"
|
|
64
64
|
},
|
|
65
65
|
"baseTypes": {
|
|
66
66
|
"name": "storage.type.base-types.clarion",
|
|
67
|
-
"match": "\\b(?i:ANY|ASTRING|BFLOAT4|BFLOAT8|BLOB|MEMO|BOOL|BSTRING|BYTE|CSTRING|DATE|DECIMAL|DOUBLE|FLOAT4|LONG|
|
|
67
|
+
"match": "\\b(?i:ANY|ASTRING|BFLOAT4|BFLOAT8|BLOB|MEMO|BOOL|BSTRING|BYTE|CSTRING|DATE|DECIMAL|DOUBLE|FLOAT4|LONG|PDECIMAL|PSTRING|REAL|SHORT|SIGNED|SREAL|STRING|TIME|ULONG|UNSIGNED|USHORT|VARIANT)\\b"
|
|
68
68
|
},
|
|
69
69
|
"classLabels": {
|
|
70
70
|
"name": "entity.name.class.clarion",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
},
|
|
91
91
|
"hardReservedKeywords": {
|
|
92
92
|
"name": "keyword.clarion",
|
|
93
|
-
"match": "\\b(?i:ACCEPT|
|
|
93
|
+
"match": "\\b(?i:ACCEPT|BREAK|BY|CASE|CHOOSE|CYCLE|DO|ELSE|ELSIF|END|EXECUTE|EXIT|FUNCTION|GOTO|IF|LOOP|MEMBER|NEW|OF|OROF|PARENT|PROCEDURE|PROGRAM|RETURN|ROUTINE|SELF|THEN|TIMES|TO|UNTIL|WHILE)\\b"
|
|
94
94
|
},
|
|
95
95
|
"implicits": {
|
|
96
96
|
"name": "keyword.implicit.clarion",
|
|
@@ -107,15 +107,15 @@
|
|
|
107
107
|
},
|
|
108
108
|
"langConstants": {
|
|
109
109
|
"name": "support.constant.clarion",
|
|
110
|
-
"match": "\\b(?i:TRUE|FALSE
|
|
110
|
+
"match": "\\b(?i:TRUE|FALSE)\\b"
|
|
111
111
|
},
|
|
112
112
|
"langFunctions": {
|
|
113
113
|
"name": "support.function.clarion",
|
|
114
|
-
"match": "\\b(?i:ADD|DISPOSE|ADDRESS|GET|BAND|BUILD|CLEAR|CLOSE|DELETE|DUPLICATE|FIXFORMAT|FREESTATE|GETNULLS|GETSTATE|HOLD|LOCK|OPEN|POINTER|POSITION|
|
|
114
|
+
"match": "\\b(?i:ADD|DISPOSE|ADDRESS|GET|BAND|BUILD|CLEAR|CLOSE|DELETE|DUPLICATE|FIXFORMAT|FREESTATE|GETNULLS|GETSTATE|HOLD|LOCK|OPEN|POINTER|POSITION|RECORDS|REGET|RESET|RESTORESTATE|SET|SETNULLS|STATUS|UNBIND|UNFIXFORMAT|_PROC|_PROC1|_PROC2|_PROC3|ACCEPTED|ACOS|ALERT|ALIAS|ALL|ARC|ASIN|ASK|ATAN|BEEP|BINDEXPRESSION |BLANK|BOF|BOX|BUFFER|BYTES|CALL|CENTER|CHAIN|CHANGE|CHANGES|CHOICE|CHORD|CLIP|CLIPBOARD|CLOCK|CLONE|COLORDIALOG|COMMAND|COMMIT|COMPRESS |CONVERTANSITOOEM|CONVERTOEMTOANSI|CONTENTS|COPY|COS|DATE|DAY|DEBUGHOOK|DECOMPRESS |DELETEREG|DESTROY|DIRECTORY|DIRECTORY|DISABLE|DISPLAY|DRAGID|DROPID|ELLIPSE|EMPTY|ENABLE|ENDPAGE|EOF|ERASE|ERROR|ERRORCODE|ERRORFILE|EVALUATE|EXISTS|FIELD|FILEDIALOG|FILEDIALOGA|FILEERROR|FILEERRORCODE|FIRSTFIELD|FLUSH|FOCUS|FONTDIALOG|FONTDIALOGA|FORWARDKEY|FREE|FREEZE|GETEXITCODE|GETFONT|GETGROUP|GETREG|GETREGSUBKEYS|GETREGVALUES|GETINI|GETPOSITION|HALT|HELP|HIDE|HOWMANY|IDLE|IMAGE|INCOMPLETE|INSTANCE|INSTRING|ISALPHA|ISGROUP|ISLOWER|ISUPPER|ISSTRING|KEYBOARD|KEYCHAR|KEYCODE|KEYSTATE|LASTFIELD|LEFT|LEN|LINE|LOCALE|LOCKTHREAD|LOG10|LOGE|LONGPATH|LOWER|MATCH|MESSAGE|MONTH|MOUSEX|MOUSEY|NAME|NEXT|NOMEMO|NOTIFICATION|NOTIFY|NUMERIC|PACK|PATH|PENCOLOR|PENWIDTH|PENSTYLE|PIE|POLYGON|POPBIND|POPERRORS|POPUP|POST|PRESS|PRESSKEY|PREVIOUS|PRINTERDIALOG|PRINTERDIALOGA|PUSHBIND|PUSHERRORS|PUT|PUTREG|PUTINI|QUOTE|RANDOM|REGISTER|REGISTEREVENT|EVENT|RELEASE|REMOVE|RESUME|RIGHT|ROLLBACK|ROUNDBOX|RUN|RUNCODE|REJECTCODE|SELECT|SELECTED|SEND|SET3DLOOK|SETCLIPBOARD|SETCLOCK|SETCOMMAND|SETCURSOR|SETDROPID|SETEXITCODE|SETFONT|SETFONT|SETKEYCHAR|SETKEYCODE|SETLAYOUT|SETPATH|SETPENWIDTH|SETPENSTYLE|SETPENCOLOR|SETPOSITION|SETPOSITION|SETTARGET|SETTODAY|SHARE|SHORTPATH|SHOW|SHUTDOWN|SIN|SKIP|SQRT|START|STATUS|STOP|STREAM|STRPOS|SUB|SUSPEND|TAN|THREAD|THREADLOCKED|TIE|TIED|TODAY|TYPE|UNFREEZE|UNHIDE|UNLOAD|UNLOCK|UNLOCKTHREAD|UNQUOTE|UNREGISTER|UNREGISTEREVENT|UNTIE|UPDATE|UPPER|WATCH|WHAT|WHAT|WHERE|WHERE|WHO|WHO|YEAR|YIELD|ABS|AFTER|AGE|APPEND|BEFORE|BIND|BINDEXPRESSION|BOR|BSHIFT|BXOR|CHR|COMPRESS|CREATE|DDEACKNOWLEDGE|DDEAPP|DDECHANNEL|DDECLIENT|DDECLOSE|DDEEXECUTE|DDEITEM|DDEPOKE|DDEQUERY|DDEREAD|DDESERVER|DDETOPIC|DDEVALUE|DDEWRITE|DECOMPRESS|DEFORMAT|FILEEXISTS|FORMAT|FULLNAME|INLIST|INRANGE|INT|LOGOUT|OCXLOADIMAGE|OCXREGISTEREVENTPROC|OCXREGISTERPROPCHANGE|OCXREGISTERPROPEDIT|OCXSETPARAM|OCXUNREGISTEREVENTPROC|OCXUNREGISTERPROPCHANGE|OCXUNREGISTERPROPEDIT|OLEDIRECTORY|OMITTED|PEEK|POKE|PRAGMA|PRINT|PRINTER|RENAME|ROUND|SAVEDIALOG|SETNONULL|SETNULL|SHIFT|SORT|VAL|XOR)\\b"
|
|
115
115
|
},
|
|
116
116
|
"langProps": {
|
|
117
117
|
"name": "support.constant.clarion",
|
|
118
|
-
"match": "\\b(?i:PROP|
|
|
118
|
+
"match": "\\b(?i:PROP|EVENT|COLOR|CREATE|BRUSH|FILE|LEVEL|STD|CURSOR|ICON|BEEP|REJECT|FONT|CHARSET|PEN|LISTZONE|BUTTON|MSGMODE|WINDOW|TEXT|FREEZE|DDE|FF_|OCX|DOCK|MATCH|PAPER|DRIVEROP|DATATYPE|GradientTypes):\\w*\\b"
|
|
119
119
|
},
|
|
120
120
|
"numericConstants": {
|
|
121
121
|
"name": "constant.numeric.clarion",
|
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "editorconfig",
|
|
3
|
+
"scopeName": "source.editorconfig",
|
|
4
|
+
"patterns": [
|
|
5
|
+
{
|
|
6
|
+
"include": "#main"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"repository": {
|
|
10
|
+
"comment": {
|
|
11
|
+
"patterns": [
|
|
12
|
+
{
|
|
13
|
+
"name": "comment.line.number-sign.editorconfig",
|
|
14
|
+
"begin": "(\\s*)(#)",
|
|
15
|
+
"end": "$",
|
|
16
|
+
"beginCaptures": {
|
|
17
|
+
"1": {
|
|
18
|
+
"name": "punctuation.whitespace.comment.leading.editorconfig"
|
|
19
|
+
},
|
|
20
|
+
"2": {
|
|
21
|
+
"name": "punctuation.definition.comment.editorconfig"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "comment.line.semicolon.editorconfig",
|
|
27
|
+
"begin": "(\\s*)(;)",
|
|
28
|
+
"end": "$",
|
|
29
|
+
"beginCaptures": {
|
|
30
|
+
"1": {
|
|
31
|
+
"name": "punctuation.whitespace.comment.leading.editorconfig"
|
|
32
|
+
},
|
|
33
|
+
"2": {
|
|
34
|
+
"name": "punctuation.definition.comment.editorconfig"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"escape": {
|
|
41
|
+
"name": "constant.character.escape.editorconfig",
|
|
42
|
+
"match": "\\\\."
|
|
43
|
+
},
|
|
44
|
+
"keywords": {
|
|
45
|
+
"patterns": [
|
|
46
|
+
{
|
|
47
|
+
"name": "constant.language.boolean.${1:/downcase}.editorconfig",
|
|
48
|
+
"match": "(?i)\\b(true|false|on|off|yes|no)\\b"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "constant.language.charset.encoding.${1:/downcase}.editorconfig",
|
|
52
|
+
"match": "(?i)\\b(latin1|utf-8|utf-16[bl]e)\\b"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "constant.language.${1:/downcase}.editorconfig",
|
|
56
|
+
"match": "(?i)\\b(CRLF|CR|LF|tab|space|unset)\\b"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"main": {
|
|
61
|
+
"patterns": [
|
|
62
|
+
{
|
|
63
|
+
"include": "#comment"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"include": "#section"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"include": "#rule"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"number": {
|
|
74
|
+
"name": "constant.numeric.decimal.integer.int.editorconfig",
|
|
75
|
+
"match": "\\d+"
|
|
76
|
+
},
|
|
77
|
+
"pathBracketsCurly": {
|
|
78
|
+
"begin": "{",
|
|
79
|
+
"end": "}|(?=$)",
|
|
80
|
+
"patterns": [
|
|
81
|
+
{
|
|
82
|
+
"include": "#escape"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "punctuation.separator.delimiter.comma.editorconfig",
|
|
86
|
+
"match": ","
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"include": "#pathRange"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"include": "#pathSpec"
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"beginCaptures": {
|
|
96
|
+
"0": {
|
|
97
|
+
"name": "punctuation.definition.brace.bracket.curly.begin.editorconfig"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"endCaptures": {
|
|
101
|
+
"0": {
|
|
102
|
+
"name": "punctuation.definition.brace.bracket.curly.end.editorconfig"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"pathBracketsSquare": {
|
|
107
|
+
"begin": "\\[",
|
|
108
|
+
"end": "\\]|(?=$)",
|
|
109
|
+
"patterns": [
|
|
110
|
+
{
|
|
111
|
+
"include": "#pathSpec"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"beginCaptures": {
|
|
115
|
+
"0": {
|
|
116
|
+
"name": "punctuation.definition.brace.bracket.square.begin.editorconfig"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"endCaptures": {
|
|
120
|
+
"0": {
|
|
121
|
+
"name": "punctuation.definition.brace.bracket.square.end.editorconfig"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"pathRange": {
|
|
126
|
+
"name": "meta.range.editorconfig",
|
|
127
|
+
"match": "([0-9]+)(\\.{2})([0-9]+)",
|
|
128
|
+
"captures": {
|
|
129
|
+
"1": {
|
|
130
|
+
"patterns": [
|
|
131
|
+
{
|
|
132
|
+
"include": "#number"
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
"2": {
|
|
137
|
+
"name": "punctuation.definition.separator.range.editorconfig"
|
|
138
|
+
},
|
|
139
|
+
"3": {
|
|
140
|
+
"patterns": [
|
|
141
|
+
{
|
|
142
|
+
"include": "#number"
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"pathSpec": {
|
|
149
|
+
"patterns": [
|
|
150
|
+
{
|
|
151
|
+
"include": "#escape"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"include": "#pathBracketsCurly"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"include": "#pathBracketsSquare"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "keyword.operator.glob.wildcard.globstar.editorconfig",
|
|
161
|
+
"match": "\\*{2}"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "keyword.operator.glob.wildcard.editorconfig",
|
|
165
|
+
"match": "\\*"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "keyword.operator.glob.wildcard.editorconfig",
|
|
169
|
+
"match": "\\?"
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
"rule": {
|
|
174
|
+
"patterns": [
|
|
175
|
+
{
|
|
176
|
+
"match": "^\\s*(indent_(width))(?=$|[=\\s])",
|
|
177
|
+
"captures": {
|
|
178
|
+
"1": {
|
|
179
|
+
"name": "keyword.other.definition.indent_size.editorconfig"
|
|
180
|
+
},
|
|
181
|
+
"2": {
|
|
182
|
+
"name": "invalid.illegal.confusable.editorconfig"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"match": "^\\s*(tab_(size))(?=$|[=\\s])",
|
|
188
|
+
"captures": {
|
|
189
|
+
"1": {
|
|
190
|
+
"name": "keyword.other.definition.tab_width.editorconfig"
|
|
191
|
+
},
|
|
192
|
+
"2": {
|
|
193
|
+
"name": "invalid.illegal.confusable.editorconfig"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "meta.rule.${1:/downcase}.editorconfig",
|
|
199
|
+
"begin": "^\\s*([A-Za-z0-9_]+)\\s*(=)",
|
|
200
|
+
"end": "$",
|
|
201
|
+
"patterns": [
|
|
202
|
+
{
|
|
203
|
+
"include": "#value"
|
|
204
|
+
}
|
|
205
|
+
],
|
|
206
|
+
"beginCaptures": {
|
|
207
|
+
"1": {
|
|
208
|
+
"name": "keyword.other.definition.${1:/downcase}.editorconfig"
|
|
209
|
+
},
|
|
210
|
+
"2": {
|
|
211
|
+
"name": "punctuation.separator.key-value.editorconfig"
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
"section": {
|
|
218
|
+
"name": "meta.section.editorconfig",
|
|
219
|
+
"begin": "^\\s*(?=\\[.*?\\])",
|
|
220
|
+
"end": "(?!\\G)(?=^\\s*\\[)",
|
|
221
|
+
"patterns": [
|
|
222
|
+
{
|
|
223
|
+
"include": "#sectionHeader"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"include": "#comment"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"include": "#rule"
|
|
230
|
+
}
|
|
231
|
+
]
|
|
232
|
+
},
|
|
233
|
+
"sectionHeader": {
|
|
234
|
+
"name": "meta.section.header.editorconfig",
|
|
235
|
+
"contentName": "entity.name.section.group-title.editorconfig",
|
|
236
|
+
"begin": "\\G\\[",
|
|
237
|
+
"end": "\\]|(?=$)",
|
|
238
|
+
"patterns": [
|
|
239
|
+
{
|
|
240
|
+
"name": "keyword.control.logical.not.negation.editorconfig",
|
|
241
|
+
"match": "\\G!"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"include": "#pathSpec"
|
|
245
|
+
}
|
|
246
|
+
],
|
|
247
|
+
"beginCaptures": {
|
|
248
|
+
"0": {
|
|
249
|
+
"name": "punctuation.section.brace.bracket.square.begin.editorconfig"
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"endCaptures": {
|
|
253
|
+
"0": {
|
|
254
|
+
"name": "punctuation.section.brace.bracket.square.end.editorconfig"
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"string": {
|
|
259
|
+
"patterns": [
|
|
260
|
+
{
|
|
261
|
+
"name": "string.quoted.double.editorconfig",
|
|
262
|
+
"begin": "\"",
|
|
263
|
+
"end": "\"",
|
|
264
|
+
"patterns": [
|
|
265
|
+
{
|
|
266
|
+
"include": "#escape"
|
|
267
|
+
}
|
|
268
|
+
],
|
|
269
|
+
"beginCaptures": {
|
|
270
|
+
"0": {
|
|
271
|
+
"name": "punctuation.definition.string.begin.editorconfig"
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"endCaptures": {
|
|
275
|
+
"0": {
|
|
276
|
+
"name": "punctuation.definition.string.end.editorconfig"
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"name": "string.quoted.single.editorconfig",
|
|
282
|
+
"begin": "'",
|
|
283
|
+
"end": "'",
|
|
284
|
+
"patterns": [
|
|
285
|
+
{
|
|
286
|
+
"include": "#escape"
|
|
287
|
+
}
|
|
288
|
+
],
|
|
289
|
+
"beginCaptures": {
|
|
290
|
+
"0": {
|
|
291
|
+
"name": "punctuation.definition.string.begin.editorconfig"
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"endCaptures": {
|
|
295
|
+
"0": {
|
|
296
|
+
"name": "punctuation.definition.string.end.editorconfig"
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
]
|
|
301
|
+
},
|
|
302
|
+
"value": {
|
|
303
|
+
"patterns": [
|
|
304
|
+
{
|
|
305
|
+
"include": "#escape"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"include": "#comment"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"include": "#keywords"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"include": "#number"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"include": "#string"
|
|
318
|
+
}
|
|
319
|
+
]
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
data/grammars/source.gfm.json
CHANGED
data/grammars/source.hx.json
CHANGED
|
@@ -1995,7 +1995,7 @@
|
|
|
1995
1995
|
"type-name": {
|
|
1996
1996
|
"patterns": [
|
|
1997
1997
|
{
|
|
1998
|
-
"match": "\\b(Any|Array|ArrayAccess|Bool|Class|Date|DateTools|Dynamic|Enum|EnumValue|EReg|Float|IMap|Int|IntIterator|Iterable|Iterator|Lambda|List|ListIterator|ListNode|Map|Math|Null|Reflect|Single|Std|String|StringBuf|StringTools|Sys|Type|UInt|ValueType|Void|Xml|XmlType)(?:(\\.)(_*[A-Z]\\w*[a-z]\\w*))*\\b",
|
|
1998
|
+
"match": "\\b(Any|Array|ArrayAccess|Bool|Class|Date|DateTools|Dynamic|Enum|EnumValue|EReg|Float|IMap|Int|IntIterator|Iterable|Iterator|KeyValueIterator|KeyValueIterable|Lambda|List|ListIterator|ListNode|Map|Math|Null|Reflect|Single|Std|String|StringBuf|StringTools|Sys|Type|UInt|ValueType|Void|Xml|XmlType)(?:(\\.)(_*[A-Z]\\w*[a-z]\\w*))*\\b",
|
|
1999
1999
|
"captures": {
|
|
2000
2000
|
"1": {
|
|
2001
2001
|
"name": "support.class.builtin.hx"
|
data/grammars/source.hxml.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
|
-
"begin": "(
|
|
15
|
+
"begin": "\\s*(--macro)\\b",
|
|
16
16
|
"end": "\\n",
|
|
17
17
|
"patterns": [
|
|
18
18
|
{
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
"match": "(
|
|
29
|
+
"match": "\\s*(-m|-main|--main)\\b\\s*\\b(?:(([a-z][a-zA-Z0-9]*\\.)*)(_*[A-Z]\\w*))?\\b",
|
|
30
30
|
"captures": {
|
|
31
31
|
"1": {
|
|
32
32
|
"name": "keyword.other.hxml"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
"match": "
|
|
43
|
+
"match": "\\s*(-cppia|-cpp?|-js|-as3|-swf-(header|version|lib(-extern)?)|-swf9?|-neko|-python|-php|-cs|-java-lib|-java|-xml|-lua|-hl|-x|-lib|-D|-resource|-exclude|-version|-v|-debug|-prompt|-cmd|-dce\\s+(std|full|no)?|--flash-strict|--no-traces|--flash-use-stage|--neko-source|--gen-hx-classes|-net-lib|-net-std|-c-arg|--each|--next|--display|--no-output|--times|--no-inline|--no-opt|--php-front|--php-lib|--php-prefix|--remap|--help-defines|--help-metas|-help|--help|-java|-cs|--js-modern|--interp|--eval|--dce|--wait|--connect|--cwd|--run).*$",
|
|
44
44
|
"captures": {
|
|
45
45
|
"1": {
|
|
46
46
|
"name": "keyword.other.hxml"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
"match": "
|
|
51
|
+
"match": "\\s*(--js(on)?|--lua|--swf-(header|version|lib(-extern)?)|--swf|--as3|--neko|--php|--cppia|--cpp|--cppia|--cs|--java-lib|--java|--python|--hl|-p|--class-path|-L|--library|--define|-r|--resource|--cmd|-C|--verbose|--debug|--prompt|--xml|--json|--net-lib|--net-std|--c-arg|--version|-h|--main).*$",
|
|
52
52
|
"captures": {
|
|
53
53
|
"1": {
|
|
54
54
|
"name": "keyword.other.hxml"
|
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Hy",
|
|
3
|
+
"scopeName": "source.hy",
|
|
4
|
+
"patterns": [
|
|
5
|
+
{
|
|
6
|
+
"include": "#comment"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"include": "#shebang-comment"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"include": "#quoted-sexp"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"include": "#sexp"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"include": "#keyfn"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"include": "#string"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"include": "#vector"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"include": "#set"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"include": "#map"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"include": "#regexp"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"include": "#var"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"include": "#constants"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"include": "#dynamic-variables"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"include": "#metadata"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"include": "#namespace-symbol"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"include": "#symbol"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"repository": {
|
|
55
|
+
"comment": {
|
|
56
|
+
"name": "comment.line.semicolon.hy",
|
|
57
|
+
"begin": "(?\u003c!\\\\);",
|
|
58
|
+
"end": "$",
|
|
59
|
+
"beginCaptures": {
|
|
60
|
+
"0": {
|
|
61
|
+
"name": "punctuation.definition.comment.hy"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"constants": {
|
|
66
|
+
"patterns": [
|
|
67
|
+
{
|
|
68
|
+
"name": "constant.language.nil.hy",
|
|
69
|
+
"match": "(nil)(?=(\\s|\\)|\\]|\\}))"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "constant.language.boolean.hy",
|
|
73
|
+
"match": "(True|False)"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "constant.numeric.ratio.hy",
|
|
77
|
+
"match": "(-?\\d+/\\d+)"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "constant.numeric.arbitrary-radix.hy",
|
|
81
|
+
"match": "(-?\\d+[rR][0-9a-zA-Z]+)"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "constant.numeric.hexadecimal.hy",
|
|
85
|
+
"match": "(-?0[xX][0-9a-fA-F]+)"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "constant.numeric.octal.hy",
|
|
89
|
+
"match": "(-?0\\d+)"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "constant.numeric.bigdecimal.hy",
|
|
93
|
+
"match": "(-?\\d+\\.\\d+([eE][+-]?\\d+)?M)"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "constant.numeric.double.hy",
|
|
97
|
+
"match": "(-?\\d+\\.\\d+([eE][+-]?\\d+)?)"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "constant.numeric.bigint.hy",
|
|
101
|
+
"match": "(-?\\d+N)"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "constant.numeric.long.hy",
|
|
105
|
+
"match": "(-?\\d+)"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"include": "#keyword"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
"dynamic-variables": {
|
|
113
|
+
"name": "meta.symbol.dynamic.hy",
|
|
114
|
+
"match": "\\*[\\w\\.\\-\\_\\:\\+\\=\\\u003e\\\u003c\\!\\?\\d]+\\*"
|
|
115
|
+
},
|
|
116
|
+
"keyfn": {
|
|
117
|
+
"patterns": [
|
|
118
|
+
{
|
|
119
|
+
"name": "storage.control.hy",
|
|
120
|
+
"match": "(?\u003c=(\\s|\\(|\\[|\\{))(if(-[-a-z\\?]*)?|when(-[-a-z]*)?|for(-[-a-z]*)?|cond|do|let(-[-a-z\\?]*)?|binding|loop|recur|fn|throw[a-z\\-]*|try|catch|finally|([a-z]*case))(?=(\\s|\\)|\\]|\\}))"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "keyword.control.hy",
|
|
124
|
+
"match": "(?\u003c=(\\s|\\(|\\[|\\{))(declare-?|(in-)?ns|import|use|require|load|compile|(def[a-z\\-]*))(?=(\\s|\\)|\\]|\\}))"
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
"keyword": {
|
|
129
|
+
"name": "constant.keyword.hy",
|
|
130
|
+
"match": "(?\u003c=(\\s|\\(|\\[|\\{)):[a-zA-Z0-9\\#\\.\\-\\_\\:\\+\\=\\\u003e\\\u003c\\/\\!\\?\\*]+(?=(\\s|\\)|\\]|\\}|\\,))"
|
|
131
|
+
},
|
|
132
|
+
"map": {
|
|
133
|
+
"name": "meta.map.hy",
|
|
134
|
+
"begin": "(\\{)",
|
|
135
|
+
"end": "(\\}(?=[\\}\\]\\)\\s]*(?:;|$)))|(\\})",
|
|
136
|
+
"patterns": [
|
|
137
|
+
{
|
|
138
|
+
"include": "$self"
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"beginCaptures": {
|
|
142
|
+
"1": {
|
|
143
|
+
"name": "punctuation.section.map.begin.hy"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"endCaptures": {
|
|
147
|
+
"1": {
|
|
148
|
+
"name": "punctuation.section.map.end.trailing.hy"
|
|
149
|
+
},
|
|
150
|
+
"2": {
|
|
151
|
+
"name": "punctuation.section.map.end.hy"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"metadata": {
|
|
156
|
+
"patterns": [
|
|
157
|
+
{
|
|
158
|
+
"name": "meta.metadata.map.hy",
|
|
159
|
+
"begin": "(\\^\\{)",
|
|
160
|
+
"end": "(\\}(?=[\\}\\]\\)\\s]*(?:;|$)))|(\\})",
|
|
161
|
+
"patterns": [
|
|
162
|
+
{
|
|
163
|
+
"include": "$self"
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
"beginCaptures": {
|
|
167
|
+
"1": {
|
|
168
|
+
"name": "punctuation.section.metadata.map.begin.hy"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"endCaptures": {
|
|
172
|
+
"1": {
|
|
173
|
+
"name": "punctuation.section.metadata.map.end.trailing.hy"
|
|
174
|
+
},
|
|
175
|
+
"2": {
|
|
176
|
+
"name": "punctuation.section.metadata.map.end.hy"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "meta.metadata.simple.hy",
|
|
182
|
+
"begin": "(\\^)",
|
|
183
|
+
"end": "(\\s)",
|
|
184
|
+
"patterns": [
|
|
185
|
+
{
|
|
186
|
+
"include": "#keyword"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"include": "$self"
|
|
190
|
+
}
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
"namespace-symbol": {
|
|
196
|
+
"patterns": [
|
|
197
|
+
{
|
|
198
|
+
"match": "([a-zA-Z\\.\\-\\_\\+\\=\\\u003e\\\u003c\\!\\?\\*][\\w\\.\\-\\_\\:\\+\\=\\\u003e\\\u003c\\!\\?\\*\\d]*)/",
|
|
199
|
+
"captures": {
|
|
200
|
+
"1": {
|
|
201
|
+
"name": "meta.symbol.namespace.hy"
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
},
|
|
207
|
+
"quoted-sexp": {
|
|
208
|
+
"name": "meta.quoted-expression.hy",
|
|
209
|
+
"begin": "(['``]\\()",
|
|
210
|
+
"end": "(\\))$|(\\)(?=[\\}\\]\\)\\s]*(?:;|$)))|(\\))",
|
|
211
|
+
"patterns": [
|
|
212
|
+
{
|
|
213
|
+
"include": "$self"
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
"beginCaptures": {
|
|
217
|
+
"1": {
|
|
218
|
+
"name": "punctuation.section.expression.begin.hy"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"endCaptures": {
|
|
222
|
+
"1": {
|
|
223
|
+
"name": "punctuation.section.expression.end.trailing.hy"
|
|
224
|
+
},
|
|
225
|
+
"2": {
|
|
226
|
+
"name": "punctuation.section.expression.end.trailing.hy"
|
|
227
|
+
},
|
|
228
|
+
"3": {
|
|
229
|
+
"name": "punctuation.section.expression.end.hy"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"regexp": {
|
|
234
|
+
"name": "string.regexp.hy",
|
|
235
|
+
"begin": "#\"",
|
|
236
|
+
"end": "\"",
|
|
237
|
+
"patterns": [
|
|
238
|
+
{
|
|
239
|
+
"include": "#regexp_escaped_char"
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
"beginCaptures": {
|
|
243
|
+
"0": {
|
|
244
|
+
"name": "punctuation.definition.regexp.begin.hy"
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"endCaptures": {
|
|
248
|
+
"0": {
|
|
249
|
+
"name": "punctuation.definition.regexp.end.hy"
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"regexp_escaped_char": {
|
|
254
|
+
"name": "constant.character.escape.hy",
|
|
255
|
+
"match": "\\\\."
|
|
256
|
+
},
|
|
257
|
+
"set": {
|
|
258
|
+
"name": "meta.set.hy",
|
|
259
|
+
"begin": "(\\#\\{)",
|
|
260
|
+
"end": "(\\}(?=[\\}\\]\\)\\s]*(?:;|$)))|(\\})",
|
|
261
|
+
"patterns": [
|
|
262
|
+
{
|
|
263
|
+
"include": "$self"
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
"beginCaptures": {
|
|
267
|
+
"1": {
|
|
268
|
+
"name": "punctuation.section.set.begin.hy"
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"endCaptures": {
|
|
272
|
+
"1": {
|
|
273
|
+
"name": "punctuation.section.set.end.trailing.hy"
|
|
274
|
+
},
|
|
275
|
+
"2": {
|
|
276
|
+
"name": "punctuation.section.set.end.hy"
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"sexp": {
|
|
281
|
+
"name": "meta.expression.hy",
|
|
282
|
+
"begin": "(\\()",
|
|
283
|
+
"end": "(\\))$|(\\)(?=[\\}\\]\\)\\s]*(?:;|$)))|(\\))",
|
|
284
|
+
"patterns": [
|
|
285
|
+
{
|
|
286
|
+
"name": "meta.definition.global.hy",
|
|
287
|
+
"begin": "(?\u003c=\\()(ns|declare|def[\\w\\d._:+=\u003e\u003c!?*-]*|[\\w._:+=\u003e\u003c!?*-][\\w\\d._:+=\u003e\u003c!?*-]*/def[\\w\\d._:+=\u003e\u003c!?*-]*)\\s+",
|
|
288
|
+
"end": "(?=\\))",
|
|
289
|
+
"patterns": [
|
|
290
|
+
{
|
|
291
|
+
"include": "#metadata"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"include": "#dynamic-variables"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"name": "entity.global.hy",
|
|
298
|
+
"match": "([a-zA-Z\\.\\-\\_\\+\\=\\\u003e\\\u003c\\!\\?\\*][\\w\\.\\-\\_\\:\\+\\=\\\u003e\\\u003c\\!\\?\\*\\d]*)"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"include": "$self"
|
|
302
|
+
}
|
|
303
|
+
],
|
|
304
|
+
"beginCaptures": {
|
|
305
|
+
"1": {
|
|
306
|
+
"name": "keyword.control.hy"
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"include": "#keyfn"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"include": "#constants"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"include": "#vector"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"include": "#map"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"include": "#set"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"include": "#sexp"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"match": "(?\u003c=\\()(.+?)(?=\\s|\\))",
|
|
330
|
+
"patterns": [
|
|
331
|
+
{
|
|
332
|
+
"include": "$self"
|
|
333
|
+
}
|
|
334
|
+
],
|
|
335
|
+
"captures": {
|
|
336
|
+
"1": {
|
|
337
|
+
"name": "entity.name.function.hy"
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"include": "$self"
|
|
343
|
+
}
|
|
344
|
+
],
|
|
345
|
+
"beginCaptures": {
|
|
346
|
+
"1": {
|
|
347
|
+
"name": "punctuation.section.expression.begin.hy"
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
"endCaptures": {
|
|
351
|
+
"1": {
|
|
352
|
+
"name": "punctuation.section.expression.end.trailing.hy"
|
|
353
|
+
},
|
|
354
|
+
"2": {
|
|
355
|
+
"name": "punctuation.section.expression.end.trailing.hy"
|
|
356
|
+
},
|
|
357
|
+
"3": {
|
|
358
|
+
"name": "punctuation.section.expression.end.hy"
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
"shebang-comment": {
|
|
363
|
+
"name": "comment.line.shebang.hy",
|
|
364
|
+
"begin": "^(#!)",
|
|
365
|
+
"end": "$",
|
|
366
|
+
"beginCaptures": {
|
|
367
|
+
"1": {
|
|
368
|
+
"name": "punctuation.definition.comment.shebang.hy"
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"string": {
|
|
373
|
+
"name": "string.quoted.double.hy",
|
|
374
|
+
"begin": "(?\u003c!\\\\)(\")",
|
|
375
|
+
"end": "(\")",
|
|
376
|
+
"patterns": [
|
|
377
|
+
{
|
|
378
|
+
"name": "constant.character.escape.hy",
|
|
379
|
+
"match": "\\\\."
|
|
380
|
+
}
|
|
381
|
+
],
|
|
382
|
+
"beginCaptures": {
|
|
383
|
+
"1": {
|
|
384
|
+
"name": "punctuation.definition.string.begin.hy"
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
"endCaptures": {
|
|
388
|
+
"1": {
|
|
389
|
+
"name": "punctuation.definition.string.end.hy"
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
"symbol": {
|
|
394
|
+
"patterns": [
|
|
395
|
+
{
|
|
396
|
+
"name": "meta.symbol.hy",
|
|
397
|
+
"match": "([a-zA-Z\\.\\-\\_\\+\\=\\\u003e\\\u003c\\!\\?\\*][\\w\\.\\-\\_\\:\\+\\=\\\u003e\\\u003c\\!\\?\\*\\d]*)"
|
|
398
|
+
}
|
|
399
|
+
]
|
|
400
|
+
},
|
|
401
|
+
"var": {
|
|
402
|
+
"name": "meta.var.hy",
|
|
403
|
+
"match": "(?\u003c=(\\s|\\(|\\[|\\{)\\#)'[a-zA-Z0-9\\.\\-\\_\\:\\+\\=\\\u003e\\\u003c\\/\\!\\?\\*]+(?=(\\s|\\)|\\]|\\}))"
|
|
404
|
+
},
|
|
405
|
+
"vector": {
|
|
406
|
+
"name": "meta.vector.hy",
|
|
407
|
+
"begin": "(\\[)",
|
|
408
|
+
"end": "(\\](?=[\\}\\]\\)\\s]*(?:;|$)))|(\\])",
|
|
409
|
+
"patterns": [
|
|
410
|
+
{
|
|
411
|
+
"include": "$self"
|
|
412
|
+
}
|
|
413
|
+
],
|
|
414
|
+
"beginCaptures": {
|
|
415
|
+
"1": {
|
|
416
|
+
"name": "punctuation.section.vector.begin.hy"
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
"endCaptures": {
|
|
420
|
+
"1": {
|
|
421
|
+
"name": "punctuation.section.vector.end.trailing.hy"
|
|
422
|
+
},
|
|
423
|
+
"2": {
|
|
424
|
+
"name": "punctuation.section.vector.end.hy"
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|