aurora-langium 0.2.4 → 0.2.5
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.
- package/package.json +3 -2
- package/syntaxes/aurora.tmLanguage.json +169 -0
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aurora-langium",
|
|
3
3
|
"description": "It contains the DSL named Aurora",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.5",
|
|
5
5
|
"files": [
|
|
6
6
|
"bin",
|
|
7
7
|
"out",
|
|
8
8
|
"src",
|
|
9
9
|
"pack",
|
|
10
|
-
"dist"
|
|
10
|
+
"dist",
|
|
11
|
+
"syntaxes"
|
|
11
12
|
],
|
|
12
13
|
"type": "module",
|
|
13
14
|
"main": "dist/cjs/extension/main.cjs",
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "aurora",
|
|
3
|
+
"scopeName": "source.aurora",
|
|
4
|
+
"fileTypes": [
|
|
5
|
+
".aurora"
|
|
6
|
+
],
|
|
7
|
+
"patterns": [
|
|
8
|
+
{
|
|
9
|
+
"include": "#comments"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"include": "#arith"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "storage.type",
|
|
16
|
+
"match": "\\b(from|import|module|Treatment|Treatments|package|template|time|TRUE|FALSE|Investigations|Investigation|Issues|Clinical|Activity|Orders|Vitals|Vital|Treatment|Antibiotics|Antibiotic|Diet|Labs|Lab)\\b"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "storage.type",
|
|
20
|
+
"match": "\\b(([A-Za-z0-9_]+)*:)"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "variable.parameter",
|
|
24
|
+
"match": "\\b(Allergies|EDConsult|EDAssessment|Past History|Physical|Note|Trajectory|Clinical)\\b"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "variable.parameter",
|
|
28
|
+
"match": "\\#(.+)$"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "storage.type",
|
|
32
|
+
"match": "\\+(.+)$"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "invalid.deprecated",
|
|
36
|
+
"match": "[-][!][\\s\\S]*"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "keyword.control.aurora",
|
|
40
|
+
"match": "\\b(def|module|arith_module)\\b"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "constant.numeric.aurora",
|
|
44
|
+
"match": "\\b[0-9]+(\\.[0-9]+)?\\b"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "keyword.operator.aurora",
|
|
48
|
+
"match": "[+\\-*/%^]"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "punctuation.separator.aurora",
|
|
52
|
+
"match": "[;:,]"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "punctuation.brackets.aurora",
|
|
56
|
+
"match": "[(){}]"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "string.quoted.double.n",
|
|
60
|
+
"begin": "[?][?]",
|
|
61
|
+
"end" : ";"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "string.quoted.double.n",
|
|
65
|
+
"match": "[-][?][\\s\\S]*"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "entity.other.inherited-class",
|
|
69
|
+
"begin": "[x][x]",
|
|
70
|
+
"end" : ";"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "entity.other.inherited-class",
|
|
74
|
+
"match": "[-][x][\\s\\S]*"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"begin": "/\\*",
|
|
78
|
+
"captures": {
|
|
79
|
+
"0": {
|
|
80
|
+
"name": "punctuation.definition.comment.json.comments"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"end": "\\*/",
|
|
84
|
+
"name": "comment.block.json.comments"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"match": "(//).*$\\n?",
|
|
88
|
+
"name": "comment.line.double-slash.js"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "invalid.deprecated",
|
|
92
|
+
"begin": "[!][!]",
|
|
93
|
+
"end" : ";"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "invalid.deprecated",
|
|
97
|
+
"begin": "[-][!]",
|
|
98
|
+
"end": "\n"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "keyword.control",
|
|
102
|
+
"begin": "[.][.]",
|
|
103
|
+
"end" : ";"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "keyword.control",
|
|
107
|
+
"match": "[-][.][\\s\\S]*"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "keyword.control.aurora",
|
|
111
|
+
"match": "\\b(def|module)\\b"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"repository": {
|
|
115
|
+
"comments": {
|
|
116
|
+
"patterns": [
|
|
117
|
+
{
|
|
118
|
+
"name": "comment.block.aurora",
|
|
119
|
+
"begin": "/\\*",
|
|
120
|
+
"beginCaptures": {
|
|
121
|
+
"0": {
|
|
122
|
+
"name": "punctuation.definition.comment.aurora"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"end": "\\*/",
|
|
126
|
+
"endCaptures": {
|
|
127
|
+
"0": {
|
|
128
|
+
"name": "punctuation.definition.comment.aurora"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"begin": "//\n\r",
|
|
134
|
+
"beginCaptures": {
|
|
135
|
+
"1": {
|
|
136
|
+
"name": "punctuation.whitespace.comment.leading.aurora"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"end": "(?=$)",
|
|
140
|
+
"name": "comment.line.aurora"
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
"arith": {
|
|
145
|
+
"patterns": [
|
|
146
|
+
{
|
|
147
|
+
"name": "keyword.control.arith",
|
|
148
|
+
"match": "\\b(def|arith_module)\\b"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "constant.numeric.arith",
|
|
152
|
+
"match": "\\b[0-9]+(\\.[0-9]+)?\\b"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "keyword.operator.arith",
|
|
156
|
+
"match": "[+\\-*/%^]"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "punctuation.separator.arith",
|
|
160
|
+
"match": "[;:,]"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "punctuation.brackets.arith",
|
|
164
|
+
"match": "[(){}]"
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|