I’m playing around with writing a new syntax and want to enable “toggle comment”. I have “line_comment” being defined as:
contexts:
main:
- match: '\*'
scope: punctuation.definition.comment.tla
push: line_comment
And the ending piece as:
line_comment:
- meta_scope: comment.line.tla
- match: $
pop: true
This appears to all work correctly as I can manually comment out a line with \*
and I see syntax highlighting. But Ctrl-/
doesn’t toggle a line comment. What do I need to do to enable that?