Phidica / sublime-fish

A robust Sublime Text syntax package for fish
MIT License
35 stars 2 forks source link

[fish 3] && and || highlighted wrong #20

Closed floam closed 5 years ago

floam commented 5 years ago

The newish && and || fish 3 syntax is causing the remainder of the line to be highlighted like a syntax error.

Phidica commented 5 years ago

Yes, fish 3 currently isn't supported and I haven't yet decided how I'm going to go about it.

There are several backwards incompatible changes (such as removed support for ^ redirection and ? globbing) between the syntaxes. Currently I'm considering adapting this repository to provide separate packages on Package Control for fish 2 and fish 3. Do any users have a preference between me continuing to support fish 2 in this way, or retaining just one package that only supports the latest version of fish?

If I go down the route of having two packages, then the current package would become "fish 2" and users would need to uninstall that and install a "fish 3" package to upgrade fish versions.

floam commented 5 years ago

Could you detect the installed version of fish at runtime? There will be fish 2 users for a while yet.

Phidica commented 5 years ago

Ohh, that's a great idea actually. The package can distribute both syntax files and a plugin can automatically detect which one to apply based on the user's fish version.

PatrickF1 commented 5 years ago

Hi @Phidica , first off big thanks for maintaining this package. I use fish frequently and I love ST3 so I am very fan of your package. Could you give us an update on fish 3 support, please?

Phidica commented 5 years ago

The main obstruction has been the conversion to .sublime-syntax, which I want to be coincident with the release of fish 3 support. I've recently picked this conversion work back up after taking some time away from it to consider my path forward.

fish 3 support is certainly coming, I would say within the next few months but I can't be more specific or committal than that.

Phidica commented 5 years ago

Closed with the release of 3.0.0 :tada: Sorry for the long delay in getting it done, but I hope it has been worth the wait :)

PatrickF1 commented 5 years ago

Thank you @Phidica ! Very much appreciate your volunteer effort in maintaining this awesome package!