Skip to content

Commit

Permalink
fix indented node slashdash
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Dec 18, 2024
1 parent 673c16c commit 180a414
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions kdl.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 180a414

Please sign in to comment.