RedCMD

Results 231 comments of RedCMD

@alexr00 should reopen the original issue is about `until` which Jeff confirmed as a bug > I do get the `until` problem though.

- [ ] rename `CallStack` to something else. `TextMate Tokens`? - [x] find freezing issue with large amount of treeview nodes - [x] support `injections` and `injectTo` - [ ]...

you can specify start and end points to `captures()`, to gather all nodes that intersect the range ```js query.captures(tree.rootNode, startPosition, endPosition); ``` I'm interested in what you came up with...

You could get away with having the label being the hex colour and then the colour name in the `detail` section ![image](https://github.com/Dart-Code/Dart-Code/assets/33529441/fccd03d7-9c28-4835-ae5e-e02f0540aef0) ```ts const label1: vscode.CompletionItemLabel = { label: '#FF0000',...

I've just noticed that the code had been updated in VSCode https://github.com/microsoft/vscode/blob/9962e85fc9e739f33379fea40affadc49f832dac/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.ts#L44 you can now use the `detail` field in the documentation section ![image](https://github.com/Dart-Code/Dart-Code/assets/33529441/270de248-a15b-48ca-90bc-572b7505cc7a) ```ts const label1: vscode.CompletionItemLabel = {...

> regex is more relaxed, it still checks for start/end it checks if the hex code is at the very beginning or the very end so you can still put...

This also affects `MISSING` nodes, as they too are 0width workaround is to create a function that detects 0width nodes and use `.parent` twice ```ts /** * TreeSitter bug *...

related https://github.com/tree-sitter/tree-sitter/issues/3271 (C-Library)

There is no lookahead that I no of the best you can do is something like this: `token(seq("/*", /[^*]*\*+([^/*][^*]*\*+)*/, "/"))` http://stackoverflow.com/questions/13014947/regex-to-match-a-c-style-multiline-comment/36328890#36328890 sadly it has very little structure but does work