Andrew Dupont

Results 560 comments of Andrew Dupont

Ooh. This looks promising, but I'd love to see some new specs so we can figure out exactly what this will and won't do.

Also: Chrome has supported [lookbehinds in regular expressions](https://caniuse.com/mdn-javascript_regular_expressions_lookbehind_assertion) since version 62, so we could try that instead.

> Happy yo share the one huge file privately to devs, but can't post it publicly. You can [find me on Discord](https://discord.gg/7aEbB9dGRT) if you like and send it to me...

@gazhay and I figured it out; he was kind enough to provide me the offending file on Discord. The length of the file was a red herring! You can reproduce...

This and #942 feel like they'll get addressed at the same time. This is far from my area of expertise, but I might try to investigate when I get the...

There have already been a handful of JavaScript fixes in #859 (check the commit descriptions for details), and I've upgraded the `tree-sitter-javascript` parser to the latest `master` since the 1.113...

> I'm see some inconsistency in identifier coloring in JS. In particular, variables are scoped and colored differently inside and outside of "blocks", and also depending on how they're used....

> what purpose is `meta.block.js` serving here? [This post illustrates](https://pulsar-edit.dev/blog/20231013-savetheclocktower-modern-tree-sitter-part-3.html#what-does-this-get-us) the sorts of things you can do with `meta` scopes. The TextMate scope system exposes itself to settings and snippets...

The legacy Tree-sitter grammar picks such utterly ridiculous scope names for both `console.log` that I'm amazed they align to the same color in any theme. In the legacy grammar, `console`...

Eesh. Nice catch. I'll be able to make unit tests out of these examples. (Once I fix this bug, of course — which does not seem like it will be...