Skip to content
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

add ruby slim-lang syntax support #1693

Closed
mfinelli opened this issue Jun 19, 2021 · 1 comment · Fixed by #1694
Closed

add ruby slim-lang syntax support #1693

mfinelli opened this issue Jun 19, 2021 · 1 comment · Fixed by #1694

Comments

@mfinelli
Copy link
Contributor

Syntax:
Ruby's slim templating language (*.slim)

Guideline Criteria:
https://packagecontrol.io/packages/Ruby%20Slim (67K downloads on packagecontrol.io)
https://github.com/slim-template/ruby-slim.tmbundle

@sheldond
Copy link

sheldond commented Aug 5, 2021

Here is some info on how I got slim syntax working in bat, which may help if someone wants to bring support into bat.

The project at https://github.com/slim-template/ruby-slim.tmbundle appears to only contains a .tmLanguage file, which bat does not seem to support.

But I was able to still get slim syntax highlighting working inside bat by first converting the .tmLanguage file into a .sublime-syntax file by using the following tool: https://github.com/aziz/SublimeSyntaxConvertor

Here are the step I used:

git clone https://github.com/slim-template/ruby-slim.tmbundle

gem install sublime_syntax_convertor

sublime_syntax_convertor ruby-slim.tmbundle/Syntaxes/Ruby\ Slim.tmLanguage

Now copy the resulting .sublime-syntax file to your bat config syntaxes dir and run bat cache --build

The result is working well for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants