Permalink
Browse files

allow dot paths to parent context: ../../

  • Loading branch information...
1 parent a699d59 commit 2f664bb500b6646e23428f5af4a738d110026d98 @nrw committed Jul 18, 2012
Showing with 6 additions and 6 deletions.
  1. +3 −3 Handlebars.JSON-tmLanguage
  2. +3 −3 Handlebars.tmLanguage
View
6 Handlebars.JSON-tmLanguage
@@ -32,7 +32,7 @@
},
"partial_and_var": {
"name": "meta.function.inline.other.handlebars",
- "begin": "(\\{\\{\\{*>*)\\s*([-a-zA-Z_]+)*",
+ "begin": "(\\{\\{\\{*>*)\\s*([-a-zA-Z_\\./]+)*",
"end": "(\\}\\}\\}*)",
"beginCaptures": {
"1": { "name": "support.constant.handlebars" },
@@ -47,8 +47,8 @@
]
},
"block_helper": {
- "name": "meta.function.block.start.handlebars.sproutcore",
- "begin": "(\\{\\{\\#)([a-zA-Z_\\.-]+)\\s+([a-zA-Z_\\.-]+)*",
+ "name": "meta.function.block.start.handlebars",
+ "begin": "(\\{\\{\\#)([-a-zA-Z_\\./]+)\\s+([-a-zA-Z_\\./]+)*",
"end": "(\\}\\})",
"beginCaptures": {
View
6 Handlebars.tmLanguage
@@ -41,7 +41,7 @@
<key>block_helper</key>
<dict>
<key>begin</key>
- <string>(\{\{\#)([a-zA-Z_\.-]+)\s+([a-zA-Z_\.-]+)*</string>
+ <string>(\{\{\#)([-a-zA-Z_\./]+)\s+([-a-zA-Z_\./]+)*</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
@@ -71,7 +71,7 @@
</dict>
</dict>
<key>name</key>
- <string>meta.function.block.start.handlebars.sproutcore</string>
+ <string>meta.function.block.start.handlebars</string>
<key>patterns</key>
<array>
<dict>
@@ -400,7 +400,7 @@
<key>partial_and_var</key>
<dict>
<key>begin</key>
- <string>(\{\{\{*&gt;*)\s*([-a-zA-Z_]+)*</string>
+ <string>(\{\{\{*&gt;*)\s*([-a-zA-Z_\./]+)*</string>
<key>beginCaptures</key>
<dict>
<key>1</key>

0 comments on commit 2f664bb

Please sign in to comment.