Open aulemahal opened 10 months ago
Apologies for not spotting this issue sooner.
Unfortunately, none of us have access to Sublime Text at present. The underlying TextMate grammar has not changed in a year (https://github.com/cylc/Cylc.tmbundle/commit/9b43c77297e23f61c2c1d20639a3b922a188d9cd) so this is probably due to changes in Sublime rather than changes in the TextMate grammar which we also use in other text editors. There are a few mentions of syntax highlighting improvements in the v4 changelog, but no mention of compatibility breaking changes.
The issue appears similar to this unanswered question: https://forum.sublimetext.com/t/convert-syntax-py-exception-unknown-pattern-type/15076
I'm not sure what to make of that error unfortunately (it's coming from within the Sublime Python code). We're trying to use this grammar in a new context at the moment which means passing it through another validator, will see if it flags anything.
Description
Hi! It seems the tmLanguage file is not compatible with Sublime Text. At least, not with the version 4, the latest build (4152).
Following the instructions to install the package doesn't do anything, the Cylc syntax doesn't get added to the list.
Reproducible Example
I dug deeper and opened the
Cylc.tmLanguage
file. In Sublime, I did Tools > Developers > New syntax from Cylc.tmLanguage. This is supposed to convert the file to a sublime-syntax file.In Sublime's console I got:
Maybe the latest Sublime has gone incompatible ? Or maybe that the tmLanguage has changed in ways incompatible with Sublime's implementation ?
It's not a major problem. If the solution isn't easy, it could at least be helpful to indicate on the README that some versions of Sublime are not supported.
I am running Sublime on a Fedora 38 Linux machine.