Skip to content

Commit

Permalink
Merge pull request #37 from jpokrzyk/master
Browse files Browse the repository at this point in the history
Properly highlight tags with dashes in their name
  • Loading branch information
yyx990803 committed Mar 6, 2016
2 parents f20c9ba + 29f2598 commit fbcccae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions vue.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ uuid: 5512c10d-4cc5-434c-b8fc-53b912f55ab3

patterns:
- name: meta.tag.any.html
begin: (<)([a-zA-Z0-9:]++)(?=[^>]*></\2>)
begin: (<)([a-zA-Z0-9:-]++)(?=[^>]*></\2>)
beginCaptures:
'1': {name: punctuation.definition.tag.begin.html}
'2': {name: entity.name.tag.html}
Expand Down Expand Up @@ -220,7 +220,7 @@ patterns:
- include: '#tag-stuff'

- name: meta.tag.other.html
begin: (</?)([a-zA-Z0-9:]+)
begin: (</?)([a-zA-Z0-9:-]+)
beginCaptures:
'1': {name: punctuation.definition.tag.begin.html}
'2': {name: entity.name.tag.other.html}
Expand Down
4 changes: 2 additions & 2 deletions vue.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<array>
<dict>
<key>begin</key>
<string>(&lt;)([a-zA-Z0-9:]++)(?=[^&gt;]*&gt;&lt;/\2&gt;)</string>
<string>(&lt;)([a-zA-Z0-9:-]++)(?=[^&gt;]*&gt;&lt;/\2&gt;)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
Expand Down Expand Up @@ -741,7 +741,7 @@
</dict>
<dict>
<key>begin</key>
<string>(&lt;/?)([a-zA-Z0-9:]+)</string>
<string>(&lt;/?)([a-zA-Z0-9:-]+)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
Expand Down

0 comments on commit fbcccae

Please sign in to comment.