vscode-kdl icon indicating copy to clipboard operation
vscode-kdl copied to clipboard

slashdash comments parsing blocks naïvely

Open zkat opened this issue 1 year ago • 2 comments

slashdash comments are supposed to be bounded by entity, not by simple syntax delimiters, but I don't know how, or if it's even possible, to say something like:

start: "{"
consume: "#children"
end: "}"

Which is what I think it would take to fix this

zkat avatar Jan 08 '25 18:01 zkat

Oh it looks like you can include patterns: https://macromates.com/manual/en/language_grammars

zkat avatar Jan 08 '25 21:01 zkat

Oh it looks like you can include patterns: https://macromates.com/manual/en/language_grammars

I think that might also make it possible to highlight node identifiers differently from other strings, with a bit of difficulty, but I haven't tried how TM handles that.

larsgw avatar Jan 27 '25 00:01 larsgw