cylc / cylc.tmbundle Goto Github PK
View Code? Open in Web Editor NEWTextMate bundle for the Cylc language (for TextMate, PyCharm, WebStorm, Sublime)
License: BSD 3-Clause "New" or "Revised" License
TextMate bundle for the Cylc language (for TextMate, PyCharm, WebStorm, Sublime)
License: BSD 3-Clause "New" or "Revised" License
From Yammer:
I have downloaded it and followed the PyCharm instructions to import it to the TextBundle list, but how do I get PyCharm to apply the syntax highlighting? If I open eg suite.rc it is still just treating it as a text file with no highlighting
Considering we don't update the cylc-texmate-grammar often, and scheduled workflows stop after 60 days of inactivity, it would be better to just use a workflow_dispatch
to trigger this when we release
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.
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:
patterns and includes are not supported within captures: {'0': {'patterns': [{'include': '#headers'}]}}
patterns and includes are not supported within captures: {'1': {'patterns': [{'include': '#jinja2'}, {'match': '[\\w\\+\\^\\$][\\w\\+\\-\\^\\$\\/\\t ,:]*', 'name': 'keyword.graph.cylc'}]}, '2': {'name': 'keyword.operator.assignment.cylc'}}
patterns and includes are not supported within captures: {'0': {'patterns': [{'include': '#graphSyntax'}]}}
Traceback (most recent call last):
File "/opt/sublime_text/Lib/python38/sublime_plugin.py", line 1659, in run_
return self.run()
File "/opt/sublime_text/Packages/Default.sublime-package/convert_syntax.py", line 433, in run
File "/opt/sublime_text/Packages/Default.sublime-package/convert_syntax.py", line 358, in convert
File "/opt/sublime_text/Packages/Default.sublime-package/convert_syntax.py", line 269, in make_context
File "/opt/sublime_text/Packages/Default.sublime-package/convert_syntax.py", line 328, in make_context
Exception: unknown pattern type: dict_keys(['name', 'patterns'])
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.