daaain / Handlebars

Fullest Handlebars.js templating support for Sublime Text 2 / 3. Also drives syntax colouring on Github and in Visual Studio Code. Install from: https://packagecontrol.io/packages/Handlebars.
MIT License
301 stars 48 forks source link

Convert Handlebars.tmLanguage to Handlebars.sublime-syntax #108

Closed kjmph closed 10 months ago

kjmph commented 4 years ago

For some packages that rely on syntax parsing, such as bat, they look for sublime-syntax as opposed to tmLanguage. However, by leveraging SublimeSyntaxConvertor, we can convert Handlebars.tmLanguage to Handlebars.sublime-syntax. Thus, Handlebars can now be syntax highlighted by bat.

daaain commented 4 years ago

Hey, first of all, thanks a lot for the PR and sorry for the slow reply!

Sounds good to me, but would you mind writing up a paragraph on how to do this conversion? I was looking for a Sublime package, but it might be the Ruby package https://github.com/aziz/SublimeSyntaxConvertor you used? What is the exact command to use?

kjmph commented 4 years ago

I ran this:

$ gem install --user-install sublime_syntax_convertor
$ ~/.gem/ruby/X.X.X/bin/sublime_syntax_convertor Handlebars.tmLanguage

Replace, X.X.X with your Ruby version.

Does this help?

daaain commented 10 months ago

Done in https://github.com/daaain/Handlebars/pull/111