Skip to content

Commit 4581924

Browse files
committed
Colorize VSCode Output
1 parent 4e04306 commit 4581924

File tree

2 files changed

+80
-0
lines changed

2 files changed

+80
-0
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,11 @@
490490
"language": "objectscript-csp",
491491
"scopeName": "source.objectscript_csp",
492492
"path": "syntaxes/objectscript-csp.tmLanguage.json"
493+
},
494+
{
495+
"language": "vscode-objectscript-output",
496+
"scopeName": "source.vscode_objectscript_output",
497+
"path": "syntaxes/vscode-objectscript-output.tmLanguage.json"
493498
}
494499
],
495500
"snippets": [
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
3+
"name": "vscode-objectscript-output",
4+
"scopeName": "source.vscode_objectscript_output",
5+
"patterns": [
6+
{
7+
"match": "^\\s*(?:\\> )?(?:ERROR).*\\#\\d+\\:",
8+
"name": "invalid"
9+
},
10+
{
11+
"match": "^\\s*(?:ERROR)\\s*\\:",
12+
"name": "invalid"
13+
},
14+
{
15+
"match": "^\\s*(?:Authorization error\\:)",
16+
"name": "invalid"
17+
},
18+
{
19+
"match": "^Detected \\d+ errors during compilation in \\S+",
20+
"name": "invalid"
21+
},
22+
{
23+
"match": "^Compilation finished successfully in \\S+",
24+
"name": "markup.bold"
25+
},
26+
{
27+
"match": "(?<=^Compiling (?:class|routine|file|table) \\:? ?)[^\\:\\s]+",
28+
"name": "entity.name.class"
29+
},
30+
{
31+
"match": "(?<=^Deleting (?:class|routine|file|table) )\\S+",
32+
"name": "entity.name.class"
33+
},
34+
{
35+
"match": "(?<=^Dropping orphaned procedure\\: )\\S+",
36+
"name": "entity.name.class"
37+
},
38+
{
39+
"match": "(?<=^\\s*ERROR\\:\\s*)\\S+",
40+
"name": "entity.name.class"
41+
},
42+
{
43+
"match": "\"(.*?)\"",
44+
"name": "string.quoted"
45+
},
46+
{
47+
"match": "'(.*?)'",
48+
"name": "string.quoted"
49+
},
50+
{
51+
"match": "\\b(((0|1)?[0-9][1-2]?)|(Jan(uary)?|Feb(ruary)?|Mar(ch)?|Apr(il)?|May|Jun(e)?|Jul(y)?|Aug(ust)?|Sept(ember)?|Oct(ober)?|Nov(ember)?|Dec(ember)?))[/|\\-|\\.| ]([0-2]?[0-9]|[3][0-1])[/|\\-|\\.| ]((19|20)?[0-9]{2})\\b",
52+
"name": "constant.numeric"
53+
},
54+
{
55+
"match": "\\b((19|20)?[0-9]{2}[/|\\-|\\.| ](((0|1)?[0-9][1-2]?)|(Jan(uary)?|Feb(ruary)?|Mar(ch)?|Apr(il)?|May|Jun(e)?|Jul(y)?|Aug(ust)?|Sept(ember)?|Oct(ober)?|Nov(ember)?|Dec(ember)?))[/|\\-|\\.| ]([0-2]?[0-9]|[3][0-1]))\\b",
56+
"name": "constant.numeric"
57+
},
58+
{
59+
"match": "\\b([0-2]?[0-9]|[3][0-1])[/|\\-|\\.| ](((0|1)?[0-9][1-2]?)|(Jan(uary)?|Feb(ruary)?|Mar(ch)?|Apr(il)?|May|Jun(e)?|Jul(y)?|Aug(ust)?|Sept(ember)?|Oct(ober)?|Nov(ember)?|Dec(ember)?))[/|\\-|\\.| ]((19|20)?[0-9]{2})\\b",
60+
"name": "constant.numeric"
61+
},
62+
{
63+
"match": "\\b([0|1]?[0-9]|2[0-3])\\:[0-5][0-9](\\:[0-5][0-9])?( ?(?i:(a|p)m?))?( ?[+-]?[0-9]*)?\\b",
64+
"name": "constant.numeric"
65+
},
66+
{
67+
"match": "\\b\\d+\\.?\\d*?\\b",
68+
"name": "constant.numeric"
69+
},
70+
{
71+
"match": "\\b(?i:(0?x)?[0-9a-f][0-9a-f]+)\\b",
72+
"name": "constant.numeric"
73+
}
74+
]
75+
}

0 commit comments

Comments
 (0)