Multiple characters bracket

Mmm I gave it a shot myself but it actually sounds like a bug :thinking:
I would suggest marking this as a bug :lady_beetle: here by changing the category.

The editor picks up the fact that | x | is wrapping but fails to highlight…, funny enough if you use [| x |] it only paints half of it.
Screenshot 2023-05-22 at 13.17.14

Also again Nova should autoclose automatically but it does not… :expressionless:
One way you could maybe bypass, could be maybe using the tree-sitter [Autoclose] feature (Tree-sitter - Nova)

In terms of colour situation I managed to find a way to fix but these are all hacky and I wished Nova had a better support for brackets and so fort, considering weird combos are very common across all frameworks

The hack I did was using the tree-sitter highlighter, and grabbing the brackets, here is an example. But for it work you have to uncheck the rainbow bracket… :expressionless:

1 Like