Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #29 from atom/wl-add-master-pattern
Browse files Browse the repository at this point in the history
Add master pattern
  • Loading branch information
Wliu authored Sep 22, 2017
2 parents bffabcf + 71caf22 commit c160010
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
23 changes: 17 additions & 6 deletions grammars/mustache.cson
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,23 @@
]
'injections':
'L:text.html.mustache - (meta.tag.template.mustache | comment.block.mustache)':
'patterns': [
{
# This should be the only pattern here!
# Add everything else into #mustache below
'include': '#mustache'
}
]
'patterns': [
{
'include': 'text.html.basic'
}
]
'repository':
# The master pattern. All new patterns should be added here instead of in
# 'injections' to make including this language easier.
# See https://github.com/atom/language-mustache/issues/26
'mustache':
'patterns': [
{
'include': '#comment'
Expand All @@ -30,12 +47,6 @@
'include': '#template'
}
]
'patterns': [
{
'include': 'text.html.basic'
}
]
'repository':
'comment':
'begin': '{{!'
'beginCaptures':
Expand Down
2 changes: 1 addition & 1 deletion grammars/sql with mustaches.cson
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
]
'patterns': [
{
'include': 'text.html.mustache'
'include': 'text.html.mustache#mustache'
}
{
'include': 'source.sql'
Expand Down

0 comments on commit c160010

Please sign in to comment.