-
Notifications
You must be signed in to change notification settings - Fork 94
Convert to .sublime-syntax, #87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I don't know how to work with this on CI, I have little experience with Makefile. Sublime will prompt for where to save the file. |
How can we run |
Also, GitHub itself uses MagicPython and depends on us providing |
Sublime have switched all default packages to use sublime_syntax. In GitSavvy we have decided to only support the latest version of sublime and git. It doesn't make a problem in sublime if both tmLanguage and sublime-syntax files exist side by side. Can solve it like that. |
Yeah, but this still doesn't work for us as it creates a build time dependency for Sublime.
What does GitSavvy exactly do to highlighters (or how does it interact with them)? Why does it care about what format highlighters use, |
In GitSavvy we are parsing them and reading all extensions and maybe some other info which I can't remember. We can work around this exact issue by using opening the next view with the same syntax and then when the initial file is loaded. |
@randy3k, do you know how we can fully automate the sublime-syntax build process? We can use some parts of https://github.com/randy3k/UnitTesting |
It could be done by placing a |
@1st1, if I make the release process seamlessly can we merge it then? |
Why can't you modify GitSavvy to convert old schemas to sublime-syntax on the fly? It's just that GitSavvy is the only user who requested the change, and honestly I don't want to complicate our build process just for it. And you still didn't answer my question:
Can you list that "some other info"? Because if it's just reading the extensions, then adding support of tmLanguage files to GitSavvy is a matter of half an hour work. |
I made a patch for GitSavvy timbrel/GitSavvy@81cc0e6 Do you want me to leave this PR with only eb6d0c8 ? |
?? |
I'm ooo currently. @vpetrovykh want to review eb6d0c8? |
I am unclear what is eb6d0c8 trying to address. @stoivo, could you please explain how duplicating scopes |
If I open
|
Ping? |
Aaaah, yes, now I see what the issue is. Thanks for noticing it. @stoivo could you please amend your pull request so that the two rules you're copying into P.S. Just run |
Thanks, I am just back home from vacation. Awesome that you fixed it. |
closing #86
As I can see the syntax is generated from MagicPython.syntax.yaml into MagicPython.tmLanguage.
I open MagicPython.tmLanguage and removed the 3 first lines
Then I ran
Plugin Development: Convert syntax to .sublime-syntax
from sublime command pallet. This generated MagicPyhon.sublime-syntax.