Skip to content

Commit f45dfa3

Browse files
author
Jeff Larkin
committed
Removed variable-list from OpenACC syntax because it was breaking clauses depending on it
1 parent 06e91f8 commit f45dfa3

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

syntaxes/openacc_lang.json

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@
5858
"1": {
5959
"name": "punctuation.parentheses.right.openacc"
6060
}
61-
},
62-
"patterns": [{ "include": "#variable-list" }]
61+
}
6362
},
6463
{
6564
"begin": "(?i)\\b(default)\\s*(\\()",
@@ -84,7 +83,22 @@
8483
]
8584
},
8685
{
87-
"begin": "(?i)\\b(firstprivate|private)\\s*(\\()",
86+
"begin": "(?i)\\b(private)\\s*(\\()",
87+
"beginCaptures": {
88+
"1": { "name": "string.regexp.openmp" },
89+
"2": {
90+
"name": "punctuation.parentheses.left.openmp"
91+
}
92+
},
93+
"end": "(\\))",
94+
"endCaptures": {
95+
"1": {
96+
"name": "punctuation.parentheses.right.openmp"
97+
}
98+
}
99+
},
100+
{
101+
"begin": "(?i)\\b(firstprivate)\\s*(\\()",
88102
"beginCaptures": {
89103
"1": { "name": "string.regexp.openacc" },
90104
"2": {
@@ -96,8 +110,7 @@
96110
"1": {
97111
"name": "punctuation.parentheses.right.openacc"
98112
}
99-
},
100-
"patterns": [{ "include": "#variable-list" }]
113+
}
101114
},
102115
{
103116
"begin": "(?i)\\b(if|self)\\s*(\\()",
@@ -216,8 +229,7 @@
216229
},
217230
{ "include": "#invalid-word" }
218231
]
219-
},
220-
{ "include": "#variable-list" }
232+
}
221233
]
222234
},
223235
{
@@ -255,8 +267,7 @@
255267
"1": {
256268
"name": "punctuation.parentheses.right.openacc"
257269
}
258-
},
259-
"patterns": [{ "include": "#variable-list" }]
270+
}
260271
}
261272
]
262273
},

0 commit comments

Comments
 (0)