stollcri / elixir.novaextension

Elixir Language Definition Extension for Panic Nova
MIT License
9 stars 5 forks source link

Function heads break syntax highlighting #2

Open epogue opened 4 years ago

epogue commented 4 years ago

When a function head is used for defining default arguments for multiple function signatures, the syntax highlighting breaks for the next function definition until end is reached.

image

P.S. Thank you for pulling this package together! I'm hoping to get a chance to dive into Nova extensions soon and contribute where I can.

stollcri commented 4 years ago

I'm trying to find the solution for this

happycollision commented 3 years ago

I am about to have a look myself, though this will be the first time I dig into a Nova extension so you might want to check as well: Typescript has a similar language feature and seems to highlight correctly in Nova. ~Perhaps that extension will give some clues.~

CleanShot 2020-12-02 at 21 36 33@2x

Update: Well. The extension I was thinking does not include syntax highlighting. I guess Panic provides that out of the box.