Skip to content

Commit

Permalink
add syntax definitions comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cedeber committed May 29, 2017
1 parent ec648cd commit fbc6913
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions syntax/mustache.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ contexts:
- match: ""
push: "Packages/HTML/HTML.sublime-syntax"
with_prototype:
# Unescaped Variable - shortcut
- match: "{{{"
captures:
0: entity.name.function.mustache
Expand All @@ -19,13 +20,15 @@ contexts:
captures:
0: entity.name.function.mustache
pop: true
# Comment
- match: "{{\\s*!"
captures:
0: punctuation.definition.comment.mustache
push:
- meta_scope: comment.block.mustache
- match: "}}"
pop: true
# Unescaped Variable
- match: "{{(?=\\s*&)"
scope: storage.type.function.mustache
push:
Expand All @@ -37,6 +40,7 @@ contexts:
- match: "}}"
scope: storage.type.function.mustache
pop: true
# Partial
- match: "{{(?=\\s*>)"
scope: storage.type.function.mustache
push:
Expand All @@ -46,6 +50,7 @@ contexts:
- match: "}}"
scope: storage.type.function.mustache
pop: true
# (Inverted) Section
- match: "{{(?=\\s*[#^/=])"
scope: storage.type.function.mustache
push:
Expand All @@ -57,6 +62,7 @@ contexts:
- match: "}}"
scope: storage.type.function.mustache
pop: true
# Escaped Variable
- match: "{{"
scope: storage.type.function.mustache
push:
Expand Down

0 comments on commit fbc6913

Please sign in to comment.