Closed jamesrayman closed 7 months ago
No updates on this yet?
I just spent half a day trying to debug this, i am new at Neovim and wasn't sure if my config was not working. Found out this was an issue with the astro tree sitter itself.
Hope this can be fixed as this is a major block for me to use Astro on nvim or vice versa.
Feel free to open a pull request yourself. Otherwise, you'll have to wait for me or someone else to decide it's worth our time to fix. If you need a quick and dirty fix in the meantime, comments reset the hyphen count. For example, the following is highlighted correctly:
---
const myArray = [-1, -2, /* */ -3]
---
Alright thanks for the tip!
Sorry wasn't meant to put pressure but was just asking in general if someone has update or found a solution. Glad you found a workaround for the meantime.
Sorry for the wait. Fixed in ccd8826973bdd770136481e96554ee7c570f0fd4.
Here's an example in the form of a tree-sitter test:
Here is the test output:
If you make one of the numbers in
myArray
positive, the test passes. I'm pretty sure the bug sits somewhere inscan_js_expr
insrc/scanner.c
.