@malloydata/syntax-highlight 0.0.403 → 0.0.404
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.
|
@@ -199,6 +199,19 @@ export const monarch: Monaco.IMonarchLanguage = {
|
|
|
199
199
|
[/\bpublic\b/, 'keyword.control.public'],
|
|
200
200
|
[/\bprivate\b/, 'keyword.control.private'],
|
|
201
201
|
[/\binclude\b/, 'keyword.control.include'],
|
|
202
|
+
[/\bas\b/, 'keyword.control.as'],
|
|
203
|
+
[/\bfrom\b/, 'keyword.control.from'],
|
|
204
|
+
[/\bexport\b/, 'keyword.control.export'],
|
|
205
|
+
[/\bcase\b/, 'keyword.control.case'],
|
|
206
|
+
[/\bthen\b/, 'keyword.control.then'],
|
|
207
|
+
[/\bend\b/, 'keyword.control.end'],
|
|
208
|
+
[/\bfilter\b/, 'keyword.control.filter'],
|
|
209
|
+
[/\bin\b/, 'keyword.other.in'],
|
|
210
|
+
[/\blike\b/, 'keyword.other.like'],
|
|
211
|
+
[/\binner\b/, 'keyword.other.inner'],
|
|
212
|
+
[/\bleft\b/, 'keyword.other.left'],
|
|
213
|
+
[/\bright\b/, 'keyword.other.right'],
|
|
214
|
+
[/\bfull\b/, 'keyword.other.full'],
|
|
202
215
|
],
|
|
203
216
|
properties: [
|
|
204
217
|
[/\baccept\b/, 'keyword.control.accept'],
|
|
@@ -236,6 +249,8 @@ export const monarch: Monaco.IMonarchLanguage = {
|
|
|
236
249
|
[/\bview\b/, 'keyword.control.view'],
|
|
237
250
|
[/\bwhere\b/, 'keyword.control.where'],
|
|
238
251
|
[/\bdeclare\b/, 'keyword.control.declare'],
|
|
252
|
+
[/\btype\b/, 'keyword.control.type'],
|
|
253
|
+
[/\bgiven\b/, 'keyword.control.given'],
|
|
239
254
|
],
|
|
240
255
|
functions: [
|
|
241
256
|
[
|
|
@@ -243,7 +258,7 @@ export const monarch: Monaco.IMonarchLanguage = {
|
|
|
243
258
|
['entity.name.function', '', 'entity.name.function.modifier'],
|
|
244
259
|
],
|
|
245
260
|
[
|
|
246
|
-
/\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\s*\()/,
|
|
261
|
+
/\b(ALL|AVG|CAST|COMPOSE|COUNT|EXCLUDE|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\s*\()/,
|
|
247
262
|
['entity.name.function', ''],
|
|
248
263
|
],
|
|
249
264
|
[/\b([a-zA-Z_][a-zA-Z_0-9]*)(\s*\()/, ['entity.name.function', '']],
|
|
@@ -267,6 +282,7 @@ export const monarch: Monaco.IMonarchLanguage = {
|
|
|
267
282
|
[/\bstring\b/, 'entity.name.type.string'],
|
|
268
283
|
[/\bnumber\b/, 'entity.name.type.number'],
|
|
269
284
|
[/\bdate\b/, 'entity.name.type.date'],
|
|
285
|
+
[/\btimestamptz\b/, 'entity.name.type.timestamptz'],
|
|
270
286
|
[/\btimestamp\b/, 'entity.name.type.timestamp'],
|
|
271
287
|
[/\bboolean\b/, 'entity.name.type.boolean'],
|
|
272
288
|
],
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
|
-
"match": "(?i)\\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\\s*\\()",
|
|
71
|
+
"match": "(?i)\\b(ALL|AVG|CAST|COMPOSE|COUNT|EXCLUDE|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\\s*\\()",
|
|
72
72
|
"captures": {
|
|
73
73
|
"1": { "name": "entity.name.function" }
|
|
74
74
|
}
|
|
@@ -342,6 +342,10 @@
|
|
|
342
342
|
"match": "(?i)\\bdate\\b",
|
|
343
343
|
"name": "entity.name.type.date"
|
|
344
344
|
},
|
|
345
|
+
{
|
|
346
|
+
"match": "(?i)\\btimestamptz\\b",
|
|
347
|
+
"name": "entity.name.type.timestamptz"
|
|
348
|
+
},
|
|
345
349
|
{
|
|
346
350
|
"match": "(?i)\\btimestamp\\b",
|
|
347
351
|
"name": "entity.name.type.timestamp"
|
|
@@ -493,6 +497,14 @@
|
|
|
493
497
|
{
|
|
494
498
|
"match": "(?i)\\bdeclare\\b",
|
|
495
499
|
"name": "keyword.control.declare"
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"match": "(?i)\\btype\\b",
|
|
503
|
+
"name": "keyword.control.type"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"match": "(?i)\\bgiven\\b",
|
|
507
|
+
"name": "keyword.control.given"
|
|
496
508
|
}
|
|
497
509
|
]
|
|
498
510
|
},
|
|
@@ -569,6 +581,58 @@
|
|
|
569
581
|
{
|
|
570
582
|
"match": "(?i)\\binclude\\b",
|
|
571
583
|
"name": "keyword.control.include"
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"match": "(?i)\\bas\\b",
|
|
587
|
+
"name": "keyword.control.as"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"match": "(?i)\\bfrom\\b",
|
|
591
|
+
"name": "keyword.control.from"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"match": "(?i)\\bexport\\b",
|
|
595
|
+
"name": "keyword.control.export"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"match": "(?i)\\bcase\\b",
|
|
599
|
+
"name": "keyword.control.case"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"match": "(?i)\\bthen\\b",
|
|
603
|
+
"name": "keyword.control.then"
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"match": "(?i)\\bend\\b",
|
|
607
|
+
"name": "keyword.control.end"
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"match": "(?i)\\bfilter\\b",
|
|
611
|
+
"name": "keyword.control.filter"
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"match": "(?i)\\bin\\b",
|
|
615
|
+
"name": "keyword.other.in"
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"match": "(?i)\\blike\\b",
|
|
619
|
+
"name": "keyword.other.like"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"match": "(?i)\\binner\\b",
|
|
623
|
+
"name": "keyword.other.inner"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"match": "(?i)\\bleft\\b",
|
|
627
|
+
"name": "keyword.other.left"
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"match": "(?i)\\bright\\b",
|
|
631
|
+
"name": "keyword.other.right"
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"match": "(?i)\\bfull\\b",
|
|
635
|
+
"name": "keyword.other.full"
|
|
572
636
|
}
|
|
573
637
|
]
|
|
574
638
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@malloydata/syntax-highlight",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.404",
|
|
4
4
|
"description": "A package to simplify the process of developing, testing, and syncnig Malloy syntax highlighting grammars",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"build": "npm run codegen && tsc",
|
|
20
20
|
"clean": "tsc --build --clean && rm -f tsconfig.tsbuildinfo && rm -rf dist && node ../../scripts/femto-build.js --clean",
|
|
21
21
|
"gen-malloy-monarch": "ts-node scripts/generateMonarchGrammar grammars/malloy/malloy.tmGrammar.json grammars/malloy/malloy.monarch.ts && prettier grammars/malloy/malloy.monarch.ts --write",
|
|
22
|
-
"gen-malloy-tokens": "ts-node scripts/generateLanguageTokenizationFile grammars/malloy/tokenizations/darkPlus.ts",
|
|
22
|
+
"gen-malloy-tokens": "ts-node scripts/generateLanguageTokenizationFile grammars/malloy/tokenizations/darkPlus.ts && prettier grammars/malloy/tokenizations/darkPlus.ts --write",
|
|
23
23
|
"test-monarch-grammars": "rimraf ./dist && tsc && karma start",
|
|
24
24
|
"test-textmate-grammars": "jest",
|
|
25
25
|
"gen-monaco-darkplus": "ts-node scripts/generateMonarchTheme themes/textmate/dark_plus.json themes/monaco/darkPlus.ts",
|