Skip to content

Commit ce794bf

Browse files
committed
fix(vscode): correct handling of comments in tmlanguage
1 parent 7ce7941 commit ce794bf

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

syntaxes/robotframework.tmLanguage.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@
200200
"beginCaptures": { "1": { "name": "keyword.other.header.testcase.robotframework" } },
201201
"end": "^(?=\\*)",
202202
"patterns": [
203+
{ "include": "#comment_line" },
203204
{ "include": "#testcase_name" },
204205
{ "include": "#block_statements" }
205206
]
@@ -210,6 +211,7 @@
210211
"beginCaptures": { "1": { "name": "keyword.other.header.task.robotframework" } },
211212
"end": "^(?=\\*)",
212213
"patterns": [
214+
{ "include": "#comment_line" },
213215
{ "include": "#testcase_name" },
214216
{ "include": "#block_statements" }
215217
]
@@ -220,6 +222,7 @@
220222
"beginCaptures": { "1": { "name": "keyword.other.header.keyword.robotframework" } },
221223
"end": "^(?=\\*)",
222224
"patterns": [
225+
{ "include": "#comment_line" },
223226
{ "include": "#keyword_name" },
224227
{ "include": "#block_statements" }
225228
]

syntaxes/robotframework.tmLanguage.template.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@
200200
"beginCaptures": { "1": { "name": "keyword.other.header.testcase.robotframework" } },
201201
"end": "^(?=\\*)",
202202
"patterns": [
203+
{ "include": "#comment_line" },
203204
{ "include": "#testcase_name" },
204205
{ "include": "#block_statements" }
205206
]
@@ -210,6 +211,7 @@
210211
"beginCaptures": { "1": { "name": "keyword.other.header.task.robotframework" } },
211212
"end": "^(?=\\*)",
212213
"patterns": [
214+
{ "include": "#comment_line" },
213215
{ "include": "#testcase_name" },
214216
{ "include": "#block_statements" }
215217
]
@@ -220,6 +222,7 @@
220222
"beginCaptures": { "1": { "name": "keyword.other.header.keyword.robotframework" } },
221223
"end": "^(?=\\*)",
222224
"patterns": [
225+
{ "include": "#comment_line" },
223226
{ "include": "#keyword_name" },
224227
{ "include": "#block_statements" }
225228
]

0 commit comments

Comments
 (0)