tmTheme-Editor icon indicating copy to clipboard operation
tmTheme-Editor copied to clipboard

Scopes not correctly exported to Sublime

Open a-p-co opened this issue 10 years ago • 6 comments

First of all, this is a awesome tool that I've been looking for some time now, so thank you for your effort. I don't know if this issue was already solved, but i couldn't figure it out for my self.

When I create a theme and then export it over to Sublime, some scopes defined in tmTheme-Editor seem not to be working, as if Sublime wasn't understanding what they mean, which ends up with some colors just being white (default).

What can I do to resolve this? Am I doing something wrong or it's just some custom setting inside Sublime that I'm not aware of?

I'm using Sublime Text 3, if that's relevant.

a-p-co avatar Jul 14 '15 14:07 a-p-co

Could you please share the tmTheme file you built and the example file so that I can investigate this.

aziz avatar Jul 14 '15 14:07 aziz

I just made a pull request with the new theme.

And you can check out the example file from: https://raw.githubusercontent.com/a-p-co/darcula-theme/master/base_downloader.rb

a-p-co avatar Jul 14 '15 15:07 a-p-co

Could you replicate the issue?

a-p-co avatar Jul 15 '15 20:07 a-p-co

Hello, Aziz!

Thank you very much for the editor - it is great!

I am experiencing the same problems. A part of sintax is not decorated in my ST3 the way it looks on the site. I tried to download unedited theme to check the issue and find out that unedited theme (Monokai Extended) is not looking as expected in my ST3 (functions are not green, keywords are not bold in my Ruby etc). I suppouse it can be not a problem of your editor, but some issue with my ST preferences, but if you have any thought regarding the case, I would admire to hear from you.

Good luck!

maxvia avatar Jul 19 '15 11:07 maxvia

Sorry guys, couldn't find a time to look into this. give me more time and I'll investigate it. My first guess is that you're using the latest ST and the scope names are different. TmThemeEditor is using a very old ruby library called textpow that used Textmate tmLanguages files. I'm working on a new parser that's not ready yet, but will allow to parse all new sublime-syntax files and your own custom languages as well. It's a lot of work and I'm pretty busy these days but stay tuned.

aziz avatar Jul 19 '15 11:07 aziz

Thanks Aziz! Good luck!

maxvia avatar Jul 20 '15 05:07 maxvia