|
55 | 55 | "include": "#slashdash_comment" |
56 | 56 | }, |
57 | 57 | { |
58 | | - "include": "#slashdash_node_with_children_comment" |
| 58 | + "include": "#slashdash_node_comment" |
59 | 59 | }, |
60 | 60 | { |
61 | | - "include": "#slashdash_node_comment" |
| 61 | + "include": "#slashdash_node_with_children_comment" |
62 | 62 | }, |
63 | 63 | { |
64 | 64 | "include": "#line_comment" |
|
201 | 201 | "slashdash_comment": { |
202 | 202 | "name": "comment.block.slashdash.kdl", |
203 | 203 | "comment": "Slashdash inline comment", |
204 | | - "begin": "(?<!^)/-", |
| 204 | + "begin": "(?<!^\\s*)/-", |
205 | 205 | "end": "\\s" |
206 | 206 | }, |
207 | 207 | "slashdash_node_comment": { |
208 | 208 | "name": "comment.block.slashdash.kdl", |
209 | 209 | "comment": "Slashdash node comment", |
210 | | - "begin": "(?<=^)/-", |
| 210 | + "begin": "(?<=^\\s*)/-[^{]+$", |
211 | 211 | "end": "(?:;|(?<!\\\\)$)" |
212 | 212 | }, |
213 | 213 | "slashdash_node_with_children_comment": { |
214 | 214 | "name": "comment.block.slashdash.kdl", |
215 | 215 | "comment": "Slashdash node comment", |
216 | | - "begin": "(?<=^)/-[^{]+{", |
| 216 | + "begin": "(?<=^\\s*)/-[^{]+{", |
217 | 217 | "end": "\\}" |
218 | 218 | }, |
219 | 219 | "slashdash_block_comment": { |
220 | 220 | "name": "comment.block.slashdash.kdl", |
221 | 221 | "comment": "Slashdash block comment", |
222 | | - "begin": "/-(?:\\s*){", |
223 | | - "end": "}" |
| 222 | + "begin": "/-\\s*{", |
| 223 | + "end": "\\}" |
224 | 224 | } |
225 | 225 | }, |
226 | 226 | "scopeName": "source.kdl" |
|
0 commit comments