Closed Thom1729 closed 5 years ago
When extending assertions in syntax tests, keep extending the assertion until the asserted scope would change.
Given (curly brackets denote selection):
// SYNTAX TEST "Packages/JavaScript/JavaScript.sublime-syntax" [a, b, c, d] //^{ meta.sequence punctuation.section.brackets.begin}
When you type a caret, the old result was:
// SYNTAX TEST "Packages/JavaScript/JavaScript.sublime-syntax" [a, b, c, d] //^^{ meta.sequence}
And the new result is:
// SYNTAX TEST "Packages/JavaScript/JavaScript.sublime-syntax" [a, b, c, d] //^^^^^^^^^^^^{ meta.sequence}
I've always wanted this, but was too lazy to implement it whenever it bothered me until I eventually forgot about it again. Thanks.
When extending assertions in syntax tests, keep extending the assertion until the asserted scope would change.
Given (curly brackets denote selection):
When you type a caret, the old result was:
And the new result is: