Skip to content

Commit a70621b

Browse files
committed
[hanldebar] update grammar to daaain/Handlebars@4e82444 (2016-12-08), fixes microsoft#17093
1 parent 8fefdb7 commit a70621b

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

extensions/handlebars/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"vscode": "0.10.x"
77
},
88
"scripts": {
9-
"update-grammar": "node ../../build/npm/update-grammar.js daaain/Handlebars grammars/Handlebars.json ./syntaxes/Handlebars.json"
9+
"update-grammar": "node ../../build/npm/update-grammar.js daaain/Handlebars grammars/Handlebars.json ./syntaxes/Handlebars.tmLanguage.json"
1010
},
1111
"contributes": {
1212
"languages": [{
@@ -19,7 +19,7 @@
1919
"grammars": [{
2020
"language": "handlebars",
2121
"scopeName": "text.html.handlebars",
22-
"path": "./syntaxes/Handlebars.json"
22+
"path": "./syntaxes/Handlebars.tmLanguage.json"
2323
}]
2424
}
2525
}

extensions/handlebars/syntaxes/Handlebars.json renamed to extensions/handlebars/syntaxes/Handlebars.tmLanguage.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@
327327
]
328328
},
329329
"end_block": {
330-
"begin": "(\\{\\{~?/)([a-zA-Z0-9_\\.-]+)\\s*",
330+
"begin": "(\\{\\{~?/)([a-zA-Z0-9/_\\.-]+)\\s*",
331331
"end": "(~?\\}\\})",
332332
"name": "meta.function.block.end.handlebars",
333333
"endCaptures": {
@@ -428,7 +428,7 @@
428428
]
429429
},
430430
"block_helper": {
431-
"begin": "(\\{\\{~?\\#)([-a-zA-Z0-9_\\./]+)\\s?(@?[-a-zA-Z0-9_\\./]+)*\\s?(@?[-a-zA-Z0-9_\\./]+)*\\s?(@?[-a-zA-Z0-9_\\./]+)*",
431+
"begin": "(\\{\\{~?\\#)([-a-zA-Z0-9_\\./>]+)\\s?(@?[-a-zA-Z0-9_\\./]+)*\\s?(@?[-a-zA-Z0-9_\\./]+)*\\s?(@?[-a-zA-Z0-9_\\./]+)*",
432432
"end": "(~?\\}\\})",
433433
"name": "meta.function.block.start.handlebars",
434434
"endCaptures": {
@@ -522,7 +522,7 @@
522522
"match": "\\\\\""
523523
},
524524
"partial_and_var": {
525-
"begin": "(\\{\\{~?\\{*(>|!<)*)\\s*(@?[-a-zA-Z0-9_\\./]+)*",
525+
"begin": "(\\{\\{~?\\{*(>|!<)*)\\s*(@?[-a-zA-Z0-9$_\\./]+)*",
526526
"end": "(~?\\}\\}\\}*)",
527527
"name": "meta.function.inline.other.handlebars",
528528
"beginCaptures": {
@@ -558,7 +558,7 @@
558558
"name": "entity.other.attribute-name.handlebars"
559559
},
560560
"handlebars_attribute_value": {
561-
"begin": "([-a-zA-Z0-9_\\./]+)\\b\\s*",
561+
"begin": "([-a-zA-Z0-9_\\./]+)\\b",
562562
"captures": {
563563
"1": {
564564
"name": "variable.parameter.handlebars"
@@ -850,5 +850,5 @@
850850
"tmpl"
851851
],
852852
"uuid": "70E91676-DE0A-4266-A2B9-3AD2E535E484",
853-
"version": "https://github.com/daaain/Handlebars/commit/bdaec7aaf5eaac45d1878096110d1db7975fb100"
853+
"version": "https://github.com/daaain/Handlebars/commit/4e8244410815da73f93375532939d48bd5a9bb93"
854854
}

0 commit comments

Comments
 (0)