PanAeon / vscode-tmgrammar-test

Test helpers for VSCode textmate grammars

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Split carets

MetRonnie opened this issue · comments

Possible feature request: allowing split ^s, e.g.

let foo, bar;
//  ^^^  ^^^ variable.other.readwrite.js

Note: Currently, the example above, or even something like

const foo = 2;
//   ^^      ^ non.existant.scope

doesn't raise an error or anything,

I'll take a look tomorrow for this.

@MetRonnie yes, you are right. I thought that it would be OK to ignore invalid comments so I put a strict regex that silently filters invalid assertions, including split ^.
LOL, I even wrote a test 'should not parse multiple accent groups'.
Just released 0.0.9 where I've added support for split carets, but also show an error message when a line starts with <comment> ^^^ but is unparsable.