-
Notifications
You must be signed in to change notification settings - Fork 112
Handlebars scanner #103
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
base: master
Are you sure you want to change the base?
Handlebars scanner #103
Conversation
'h' => :c, | ||
'haml' => :haml, | ||
'handlebars' => :handlebars, | ||
'hbs' => :handlebars, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Who came up with this abbreviation? Is it really used? I mean, we're not on DOS any more…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, seems to be standard: https://github.com/donpark/hbs, https://github.com/leshill/handlebars_assets. Well, back to 1985 then…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haha - I blame lazy typists ;)
Thanks for your pull request! I got a few questions.
|
@korny I am so sorry for letting this PR fall through the cracks. You asked some good questions that I didn't have immediate answers to and then I let this slip to the bottom of my stack. I've just rebased this PR and will try to follow through more promptly this time. I hear what you're saying regarding Handlebars as a free template language. I really tried to follow the pattern set for You're also right that I've kept the actual highlighting pretty simple. I'm highlighting delimiters ( I'll try to see this through ASAP now, assuming you're interested in merging it. Thanks in advance. |
@korny Would it be appropriate to merge this in even in its current state. Sort of as an MVP that can be improved in future pull requests? |
I'm interested in merging it, but I don't like to add "beta" scanners. It should be more complete before it is included in CodeRay, see my comments above. |
I've written a new scanner for the Handlebars templating language. I will submit a corresponding pull request to coderay-scanner-tests very soon.
Just let me know if you have any questions or suggestions. Thanks!