RedCMD
RedCMD
Example code from the HTML syntax highlighting extension: https://github.com/microsoft/vscode/blob/2260d7cca34384a2838c728850afdd38113ddb47/extensions/html/syntaxes/html.tmLanguage.json#L11  It would be expected that `meta.tag.*.*.html` matches a scope starting with `meta.tag`, containing any 2 words inside and ends with...
Create a syntax highlighter with the following code:  ```json { "scopeName": "source.redcmd.syntax.lag", "patterns": [ { "match": "a", "name": "keyword.control", "captures": { "0": { "patterns": [] } } } ]...
The regex `[[:upper:]]` works as expected at matching only upper case letters. Normally if you missspell anything inside the posix class, the textmate engine will fail. Except for a few...
Creating a syntax highlighter with the following code and running it on a single line file filled with thousands of the letter `c` will cause tremendous lag  ```json {...
When trying to call a subroutine on a capture group via `\\g`. The call will remove all the previous tokens from capture groups that aren't rechecked in the subroutine. Create...
Fixes https://github.com/microsoft/vscode/issues/160744 extension of https://github.com/microsoft/vscode/pull/159997 (https://github.com/microsoft/vscode/issues/159586)  Cannot add `#else`, `#elif`, `#elifdef` or `#elifndef` as `brackets` as Vscode does not support 'middle'/'inside' `brackets` however, it does not cause any issues
Given this example on http://tree-sitter.github.io/tree-sitter/playground  at the current cursor position `descendantForPosition()` prioritizes the `}` over the 0width node which one might say is expected (pretend the `MISSING identifier` is...
running `node.parent` on a 0width node returns the previous sibling instead of the parent 0width node: `node.text == ''` node is named ```js alias( token.immediate( repeat( choice( /\\./, /[^\\"\r\n]+/, ),...
The scope `Invalid Illegal` does not work because it has an invalid colour code `"white"` => `"#FFFFFF` Before:  After: 
This simple grammar parses `r0` as `register` and `label` as `label` ```js module.exports = grammar({ name: "bug", rules: { source_file: $ => repeat( choice( $.register, $.label, ), ), // error:...