Skip to content

Commit

Permalink
reorganise definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
cedeber committed May 30, 2017
1 parent eb05665 commit 6cc6706
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions syntax/mustache.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,6 @@ contexts:
- meta_scope: comment.block.mustache
- match: "}}"
pop: true
# Unescaped Variable - shortcut
- match: "{{{"
scope: entity.name.function.mustache
push:
- meta_scope: constant.language.other.mustache
- match: "}}}"
scope: entity.name.function.mustache
pop: true
# Unescaped Variable
- match: "{{(?=\\s*&)"
scope: storage.type.function.mustache
push:
- meta_scope: constant.other.placeholder.mustache
- match: "&"
scope: entity.name.function.mustache
- match: \.
scope: keyword.operator.accessor.mustache
- match: "}}"
scope: storage.type.function.mustache
pop: true
# Partial
- match: "{{(?=\\s*>)"
scope: storage.type.function.mustache
Expand All @@ -58,6 +38,26 @@ contexts:
- match: "}}"
scope: storage.type.function.mustache
pop: true
# Unescaped Variable
- match: "{{(?=\\s*&)"
scope: storage.type.function.mustache
push:
- meta_scope: constant.other.placeholder.mustache
- match: "&"
scope: entity.name.function.mustache
- match: \.
scope: keyword.operator.accessor.mustache
- match: "}}"
scope: storage.type.function.mustache
pop: true
# Unescaped Variable - shortcut
- match: "{{{"
scope: entity.name.function.mustache
push:
- meta_scope: constant.language.other.mustache
- match: "}}}"
scope: entity.name.function.mustache
pop: true
# Escaped Variable
- match: "{{"
scope: storage.type.function.mustache
Expand Down

0 comments on commit 6cc6706

Please sign in to comment.