Skip to content

Commit fbcccae

Browse files
committed
Merge pull request vuejs#37 from jpokrzyk/master
Properly highlight tags with dashes in their name
2 parents f20c9ba + 29f2598 commit fbcccae

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

vue.YAML-tmLanguage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ uuid: 5512c10d-4cc5-434c-b8fc-53b912f55ab3
77

88
patterns:
99
- name: meta.tag.any.html
10-
begin: (<)([a-zA-Z0-9:]++)(?=[^>]*></\2>)
10+
begin: (<)([a-zA-Z0-9:-]++)(?=[^>]*></\2>)
1111
beginCaptures:
1212
'1': {name: punctuation.definition.tag.begin.html}
1313
'2': {name: entity.name.tag.html}
@@ -220,7 +220,7 @@ patterns:
220220
- include: '#tag-stuff'
221221

222222
- name: meta.tag.other.html
223-
begin: (</?)([a-zA-Z0-9:]+)
223+
begin: (</?)([a-zA-Z0-9:-]+)
224224
beginCaptures:
225225
'1': {name: punctuation.definition.tag.begin.html}
226226
'2': {name: entity.name.tag.other.html}

vue.tmLanguage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<array>
3535
<dict>
3636
<key>begin</key>
37-
<string>(&lt;)([a-zA-Z0-9:]++)(?=[^&gt;]*&gt;&lt;/\2&gt;)</string>
37+
<string>(&lt;)([a-zA-Z0-9:-]++)(?=[^&gt;]*&gt;&lt;/\2&gt;)</string>
3838
<key>beginCaptures</key>
3939
<dict>
4040
<key>1</key>
@@ -741,7 +741,7 @@
741741
</dict>
742742
<dict>
743743
<key>begin</key>
744-
<string>(&lt;/?)([a-zA-Z0-9:]+)</string>
744+
<string>(&lt;/?)([a-zA-Z0-9:-]+)</string>
745745
<key>beginCaptures</key>
746746
<dict>
747747
<key>1</key>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy