fix indented node slashdash

This commit is contained in:
Kat Marchán 2024-12-18 12:35:04 -08:00
parent 673c16c56c
commit 180a414c7f
No known key found for this signature in database
GPG Key ID: AEB529C08A3C7E9E
1 changed files with 7 additions and 7 deletions

View File

@ -55,10 +55,10 @@
"include": "#slashdash_comment" "include": "#slashdash_comment"
}, },
{ {
"include": "#slashdash_node_with_children_comment" "include": "#slashdash_node_comment"
}, },
{ {
"include": "#slashdash_node_comment" "include": "#slashdash_node_with_children_comment"
}, },
{ {
"include": "#line_comment" "include": "#line_comment"
@ -201,26 +201,26 @@
"slashdash_comment": { "slashdash_comment": {
"name": "comment.block.slashdash.kdl", "name": "comment.block.slashdash.kdl",
"comment": "Slashdash inline comment", "comment": "Slashdash inline comment",
"begin": "(?<!^)/-", "begin": "(?<!^\\s*)/-",
"end": "\\s" "end": "\\s"
}, },
"slashdash_node_comment": { "slashdash_node_comment": {
"name": "comment.block.slashdash.kdl", "name": "comment.block.slashdash.kdl",
"comment": "Slashdash node comment", "comment": "Slashdash node comment",
"begin": "(?<=^)/-", "begin": "(?<=^\\s*)/-[^{]+$",
"end": "(?:;|(?<!\\\\)$)" "end": "(?:;|(?<!\\\\)$)"
}, },
"slashdash_node_with_children_comment": { "slashdash_node_with_children_comment": {
"name": "comment.block.slashdash.kdl", "name": "comment.block.slashdash.kdl",
"comment": "Slashdash node comment", "comment": "Slashdash node comment",
"begin": "(?<=^)/-[^{]+{", "begin": "(?<=^\\s*)/-[^{]+{",
"end": "\\}" "end": "\\}"
}, },
"slashdash_block_comment": { "slashdash_block_comment": {
"name": "comment.block.slashdash.kdl", "name": "comment.block.slashdash.kdl",
"comment": "Slashdash block comment", "comment": "Slashdash block comment",
"begin": "/-(?:\\s*){", "begin": "/-\\s*{",
"end": "}" "end": "\\}"
} }
}, },
"scopeName": "source.kdl" "scopeName": "source.kdl"