Syntax Highlighting is incorrect for blocks without quotes #26
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
repos/svelte-sublime#26
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
first, thank you for this awesome package and all associated work.
here is the problem:
with optional quotes (correct highlight):

without quote

config:
Sublime Text Build 4126
Want to apologize for my absence on this project for the last few months. I've been extremely overloaded with my full-time work since the beginning of the year and it has made it impossible to address these issues in a timely manner. That said, things are leveling back out now and I will be addressing this and other issues in the next week or two.
Appreciate everyone's patients as I know how frustrating it can feel to be at the mercy of an open-source project that isn't keeping up with changes and fixes without any real recourse. This repo is not abandoned and I will absolutely be continuing to maintain it for the foreseeable future.
Fixes for this have been deployed and can be accessed at https://github.com/corneliusio/svelte-sublime/releases/tag/st4-3.5.0 if you're interested in downloading manually.
Due to changes to the package control channel, I was forced to submit an update to them as well to handle releases for ST3 and ST4 respectively. https://github.com/wbond/package_control_channel/pull/8522
This will likely take a few days to be merged in, so in the meantime, the best way to get these updates is by manually installing from here.
I will leave this issue open for the time being for anyone to submit feedback in case they run into problems but will presume the issue is resolved once the package control channel has been updated.
setting "Svelte" as file type (previously HTML) fixed my issue.
Thanks for the time you put into that
@jum-s Yes! Files with a
.svelteextension (or .svlt because I used to do that way back before there was a standard) should automatically use this syntax def. Otherwise, if you're using.htmlfiles, you need to set that manually in Sublime. Note that you can also set default syntaxes for various file types in Sublime under View > Syntax > Open all with current extension as… and choosing the desired syntax definition.