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