Closed FichteFoll closed 5 years ago
A big thanks for this. :+1: I probably would never rewrite it by myself since its "looking" is kind of good enough for me.
Would you mind providing a decent miscellaneous/demo.ass
for the purpose of a quick visual view.
The current one is just too simple. :laughing:
Thank you @FichteFoll :heart:
The ASS syntax defiition always annoyed me because of its wrong scope usage (notably
entity.name
for style references), so I finally decided to tackle those. And while I was at it I realized I could do a much better job at highlighting, so I implemented a couple new features and more finegrained highlighting comparable to how ASS is actually parsed (by VSFilter).constant.numeric.*
where I just picked whatever seemed potentially useful.comment
. Less disruptive for flow and the other fields still matter when you decomment them.source.ass.tags
scope because they are not text.Here are a few screenshots from an example script:
(Ignore the linter errors that I got for free thanks to SublimeLinter.)
See also the extended test file.
I left the commits as I made them because I imagine you'd squash them anyway.