Skip to content

Commit

Permalink
support inline request queries
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 15, 2016
1 parent a2336dd commit f20c9ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions vue.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ patterns:
match: (\s*)(?!--|>)\S(\s*)

- name: text.jade.embedded.html
begin: (?:^\s+)?(<)((?i:template))\b(?=[^>]*lang="jade")
begin: (?:^\s+)?(<)((?i:template))\b(?=[^>]*lang="jade(?:\?[^"]*)?")
end: (</)((?i:template))(>)(?:\s*\n)?
captures:
'1': {name: punctuation.definition.tag.begin.html}
Expand All @@ -78,7 +78,7 @@ patterns:
- include: text.jade

- name: source.vue-stylus.embedded.html
begin: (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang="stylus")
begin: (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang="stylus(?:\?[^"]*)?")
end: (</)((?i:style))(>)(?:\s*\n)?
captures:
'1': {name: punctuation.definition.tag.begin.html}
Expand All @@ -94,7 +94,7 @@ patterns:
- include: source.stylus

- name: source.sass.embedded.html
begin: (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang="(?:s(a|c)ss)")
begin: (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang="(?:s(a|c)ss)(?:\?[^"]*)?")
end: (</)((?i:style))(>)(?:\s*\n)?
captures:
'1': {name: punctuation.definition.tag.begin.html}
Expand All @@ -110,7 +110,7 @@ patterns:
- include: source.sass

- name: source.less.embedded.html
begin: (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang="less")
begin: (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang="less(?:\?[^"]*)?")
end: (</)((?i:style))(>)(?:\s*\n)?
captures:
'1': {name: punctuation.definition.tag.begin.html}
Expand Down Expand Up @@ -142,7 +142,7 @@ patterns:
- include: source.css

- name: source.coffee.embedded.html
begin: (?:^\s+)?(<)((?i:script))\b(?=[^>]*lang="coffee")
begin: (?:^\s+)?(<)((?i:script))\b(?=[^>]*lang="coffee(?:\?[^"]*)?")
beginCaptures:
'1': {name: punctuation.definition.tag.begin.html}
'2': {name: entity.name.tag.script.html}
Expand Down
10 changes: 5 additions & 5 deletions vue.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
</dict>
<dict>
<key>begin</key>
<string>(?:^\s+)?(&lt;)((?i:template))\b(?=[^&gt;]*lang="jade")</string>
<string>(?:^\s+)?(&lt;)((?i:template))\b(?=[^&gt;]*lang="jade(?:\?[^"]*)?")</string>
<key>captures</key>
<dict>
<key>1</key>
Expand Down Expand Up @@ -263,7 +263,7 @@
</dict>
<dict>
<key>begin</key>
<string>(?:^\s+)?(&lt;)((?i:style))\b(?=[^&gt;]*lang="stylus")</string>
<string>(?:^\s+)?(&lt;)((?i:style))\b(?=[^&gt;]*lang="stylus(?:\?[^"]*)?")</string>
<key>captures</key>
<dict>
<key>1</key>
Expand Down Expand Up @@ -317,7 +317,7 @@
</dict>
<dict>
<key>begin</key>
<string>(?:^\s+)?(&lt;)((?i:style))\b(?=[^&gt;]*lang="(?:s(a|c)ss)")</string>
<string>(?:^\s+)?(&lt;)((?i:style))\b(?=[^&gt;]*lang="(?:s(a|c)ss)(?:\?[^"]*)?")</string>
<key>captures</key>
<dict>
<key>1</key>
Expand Down Expand Up @@ -371,7 +371,7 @@
</dict>
<dict>
<key>begin</key>
<string>(?:^\s+)?(&lt;)((?i:style))\b(?=[^&gt;]*lang="less")</string>
<string>(?:^\s+)?(&lt;)((?i:style))\b(?=[^&gt;]*lang="less(?:\?[^"]*)?")</string>
<key>captures</key>
<dict>
<key>1</key>
Expand Down Expand Up @@ -479,7 +479,7 @@
</dict>
<dict>
<key>begin</key>
<string>(?:^\s+)?(&lt;)((?i:script))\b(?=[^&gt;]*lang="coffee")</string>
<string>(?:^\s+)?(&lt;)((?i:script))\b(?=[^&gt;]*lang="coffee(?:\?[^"]*)?")</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
Expand Down

0 comments on commit f20c9ba

Please sign in to comment.