RedCMD

Results 67 issues of RedCMD

Example code from the HTML syntax highlighting extension: https://github.com/microsoft/vscode/blob/2260d7cca34384a2838c728850afdd38113ddb47/extensions/html/syntaxes/html.tmLanguage.json#L11 ![image](https://user-images.githubusercontent.com/33529441/171994566-473be163-1bd0-44f6-bac5-dc0d8d4d4929.png) 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: ![image](https://user-images.githubusercontent.com/33529441/150917587-7a5afb36-7c12-4005-b466-f402c403f4c9.png) ```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 ![image](https://user-images.githubusercontent.com/33529441/148741438-16ba238c-fb79-4c1f-a454-7618164b5fe2.png) ```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) ![image](https://user-images.githubusercontent.com/33529441/190891474-465eec6c-03fb-43b0-a958-5d7e3613e367.png) Cannot add `#else`, `#elif`, `#elifdef` or `#elifndef` as `brackets` as Vscode does not support 'middle'/'inside' `brackets` however, it does not cause any issues

triage-needed

Given this example on http://tree-sitter.github.io/tree-sitter/playground ![image](https://user-images.githubusercontent.com/33529441/190597565-eeffe9b9-e343-4aec-8da4-4d34810cee34.png) 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]+/, ),...

bug
c-library

The scope `Invalid Illegal` does not work because it has an invalid colour code `"white"` => `"#FFFFFF` Before: ![image](https://user-images.githubusercontent.com/33529441/185099858-728c8149-17b3-4b24-a464-986bce269cc3.png) After: ![image](https://user-images.githubusercontent.com/33529441/185099953-3d16577f-97b3-463a-af97-2144ababf7ce.png)

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:...