fix indented node slashdash
This commit is contained in:
parent
673c16c56c
commit
180a414c7f
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue