vscode-textmate
vscode-textmate copied to clipboard
A library that helps tokenize text using Text Mate grammars.
A `begin`/`end` rule will create a `\\G` anchor immediately after the `begin` match ✅ however, if the `begin` rule matches the ending newline `\n` character it causes it to place...
Without this, there is no way to use `IGrammar.tokenizeLine2` without redefining the EncodedTokenDataConsts and reimplementing the functions. See for example: https://github.com/microsoft/vscode/blob/8810d514c7452ce912bd9bc6f79a3429cc55dcdd/src/vs/editor/common/encodedTokenAttributes.ts#L101-L103
I just want to use this library, as a library, not as VSCode accessory. **Is that supported?** ## Do you need help making it useful for the community? If you...
Embedded grammars are not loaded from disk when inside a `captures` rule If the embedded grammar was pre-loaded by another include in the same grammar OR loaded via another grammar...
There should be a way to embed languages generically, without having to account for every possible comment/string/etc of that specific language that just so happen to break the unrelated container...
I originally raised this as https://github.com/microsoft/vscode/issues/189940 but it seems like it should be moved here. The original report is as follows: --- This was reported at https://github.com/dart-lang/dart-syntax-highlight/issues/11#issuecomment-1613758553. Dart highlighting on...
On top of exposing a bundled umd version, also expose ESM version
When using backreferences across `begin`-`end`/`while` rules a bunch of regex characters get escaped in the process The escape characters differ between VSCode TextMate and the official TextMate 2.0 TextMate 2.0...
fixes #251
actual: Currently an empty or non-existent `end` pattern will match against the unicode character `�` `\uFFFF` this bug was caused by a partial fix of * https://github.com/microsoft/vscode-textmate/issues/66 https://github.com/microsoft/vscode-textmate/commit/7640bd6490ad961437a6982d7489e212777df7d8 didn't fix...