Skip to content

Commit

Permalink
(chore) move keyword to sep lines
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel authored and nknapp committed May 16, 2020
1 parent dc0df11 commit 9c4f581
Showing 1 changed file with 38 additions and 5 deletions.
43 changes: 38 additions & 5 deletions src/languages/handlebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,50 @@ Description: Matcher for Handlebars as well as EmberJS additions.
Website: https://handlebarsjs.com
Category: template
*/

export default function (hljs) {

var BUILT_INS = {
'builtin-name': 'action bindattr collection component concat debugger '
+ 'each each-in get hash if in input link-to loc log lookup '
+ 'mut outlet partial query-params render template textarea unbound '
+ 'unless view with yield'
'builtin-name': [
'action',
'bindattr',
'collection',
'component',
'concat',
'debugger',
'each',
'each-in',
'get',
'hash',
'if',
'in',
'input',
'link-to',
'loc',
'log',
'lookup',
'mut',
'outlet',
'partial',
'query-params',
'render',
'template',
'textarea',
'unbound',
'unless',
'view',
'with',
'yield'
].join(" ")
};

var LITERALS = {
'literal': 'true false undefined null'
'literal': [
'true',
'false',
'undefined',
'null'
].join(" ")
};

// as defined in https://handlebarsjs.com/guide/expressions.html#literal-segments
Expand Down

0 comments on commit 9c4f581

Please sign in to comment.