RedCMD
RedCMD
ah my bad should add the prefix whitespace on it aswell ```json "begin": "^([ \t]*)(//)" "while": "^\\1( |\t)|[ \t]*$" ``` this won't work for comments on the end of code...
the `{` being highlighted as red is a bug `\{` should be treated as `string`, which it is currently not so VSCode thinks it is a opening bracket without a...
mit license is fine you can add `"tokenTypes"` under `"grammars"` in `package.json` to change the `standard token type` for certain scopes ```json "tokenTypes": { "constant.character.escape": "string" }, ```  and...
the built-in JSON extension only activates on the `languageId`; `json` however this extension uses `json-tmlanguage` you'll be able to use the new `jsonLanguageParticipants` feature in the next release (currently in...
VSCode engine `1.87.0` VSCode's JSON TextMate engine doesn't support C style comments at all however you can disable the warning message via an option in a schema ``` { "allowComments":...
that Readme shows a basic implementation of VSCode's TextMate in javascript I guess it assumes that you already know what TextMate grammars are are you not able to import (require)...
related: * https://github.com/microsoft/vscode-textmate/issues/127 * https://github.com/microsoft/vscode-textmate/issues/208
Onigmo seems to have a disabled option just for this https://github.com/textmate/Onigmo/blob/03411d106584594b606b1d30757ec560954e6c49/doc/RE#L499-L507
here's my VSCode extension to help with authoring TextMate grammars https://marketplace.visualstudio.com/items?itemName=RedCMD.tmlanguage-syntax-highlighter
VSCode does do the odd patch from time to time https://github.com/microsoft/vscode/blob/main/extensions/html/build/update-grammar.mjs I wouldn't really bother forking unless you wish to maintain the grammar (adding features/fix bugs etc) must of those...