Skip to content

Commit b7cb49a

Browse files
committed
If necessary, in the future
1 parent 1cb0992 commit b7cb49a

File tree

4 files changed

+57
-0
lines changed

4 files changed

+57
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.cxsetup linguist-language=CXSetup

grammars/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
languages.yml if I ever decide to make a GitHub/linguist PR for some weirdass idiotic reason.

grammars/cxsetup.tmLanguage.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"name": "CX Setup",
3+
"scopeName": "source.cxsetup",
4+
"fileTypes": ["cxsetup"],
5+
"patterns": [
6+
{
7+
"name": "keyword.control.cxsetup",
8+
"match": "\\b(ENDL2|ENDL|RUN|SAFECIN|SUM|SET|SUB|FILE\\.EXISTS|CLEAR|DIR\\.EXISTS|BACK|PATH\\.EXISTS|ECHO|STYLE|RESET|REQUIRES|CIN|YAYORNAY|REQINSTALL|GETPASS|TERMINATE|PKGRUN|ROUND|DIV|FORE|PIPRUN|NPMRUN|ECHORDIE|ABS|INVERT|PROD|REM)\\b"
9+
},
10+
{
11+
"name": "keyword.operator.negation.cxsetup",
12+
"match": "\\b!(TERMINATE|ENDL2|ENDL|RUN|SAFECIN|SUM|SET|SUB|FILE\\.EXISTS|CLEAR|DIR\\.EXISTS|BACK|PATH\\.EXISTS|ECHO|STYLE|RESET|REQUIRES|CIN|YAYORNAY|REQINSTALL|GETPASS|PKGRUN|ROUND|DIV|FORE|PIPRUN|NPMRUN|ECHORDIE|ABS|INVERT|PROD|REM)\\b"
13+
},
14+
{
15+
"name": "keyword.operator.alwaysrun.cxsetup",
16+
"match": "\\b&(TERMINATE|ENDL2|ENDL|RUN|SAFECIN|SUM|SET|SUB|FILE\\.EXISTS|CLEAR|DIR\\.EXISTS|BACK|PATH\\.EXISTS|ECHO|STYLE|RESET|REQUIRES|CIN|YAYORNAY|REQINSTALL|GETPASS|PKGRUN|ROUND|DIV|FORE|PIPRUN|NPMRUN|ECHORDIE|ABS|INVERT|PROD|REM)\\b"
17+
},
18+
{
19+
"name": "support.function.cachegrab.cxsetup",
20+
"match": "c\\d+:\\d+[el]:\\d+:\\d+:[rlbnRLBNekvm]"
21+
},
22+
{
23+
"name": "string.quoted.double.cxsetup",
24+
"match": "\"(\\\\.|[^\"])*\""
25+
},
26+
{
27+
"name": "constant.numeric.cxsetup",
28+
"match": "-?\\b\\d+(\\.\\d+)?([eE]\\d+)?\\b"
29+
},
30+
{
31+
"name": "comment.line.double-slash.cxsetup",
32+
"begin": "//",
33+
"beginCaptures": {
34+
"0": { "name": "punctuation.definition.comment.cxsetup" }
35+
},
36+
"end": "$\\n?",
37+
"name": "comment.line.cxsetup"
38+
},
39+
{
40+
"name": "punctuation.terminator.cxsetup",
41+
"match": ";"
42+
},
43+
{
44+
"name": "punctuation.separator.cxsetup",
45+
"match": "\\?"
46+
}
47+
],
48+
}

grammars/languages.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CXSetup:
2+
type: programming
3+
extensions:
4+
- ".cxsetup"
5+
tm_scope: source.cxsetup
6+
ace_mode: text
7+
color: "#f1c40f"

0 commit comments

Comments
 (0)