Skip to content

Commit 364df7f

Browse files
committed
fix: use HTML Living Standard comment syntax
1 parent 2a3e89e commit 364df7f

File tree

2 files changed

+6
-18
lines changed

2 files changed

+6
-18
lines changed

vue.YAML-tmLanguage

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,9 @@ patterns:
3636

3737
- name: comment.block.html
3838
begin: <!--
39-
end: --\s*>
39+
end: -->
4040
captures:
4141
'0': {name: punctuation.definition.comment.html}
42-
patterns:
43-
- name: invalid.illegal.bad-comments-or-CDATA.html
44-
match: --
4542

4643
- name: meta.tag.sgml.html
4744
begin: <!
@@ -465,7 +462,7 @@ repository:
465462
foldingStartMarker: |-
466463
(?x)
467464
(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|li|form|dl)\b.*?>
468-
|<!--(?!.*--\s*>)
465+
|<!--(?!.*-->)
469466
|^<!--\ \#tminclude\ (?>.*?-->)$
470467
|<\?(?:php)?.*\b(if|for(each)?|while)\b.+:
471468
|\{\{?(if|foreach|capture|literal|foreach|php|section|strip)
@@ -475,7 +472,7 @@ foldingStartMarker: |-
475472
foldingStopMarker: |-
476473
(?x)
477474
(</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|li|form|dl)>
478-
|^(?!.*?<!--).*?--\s*>
475+
|^(?!.*?<!--).*?-->
479476
|^<!--\ end\ tminclude\ -->$
480477
|<\?(?:php)?.*\bend(if|for(each)?|while)\b
481478
|\{\{?/(if|foreach|capture|literal|foreach|php|section|strip)

vue.tmLanguage

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<key>foldingStartMarker</key>
1010
<string>(?x)
1111
(&lt;(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|li|form|dl)\b.*?&gt;
12-
|&lt;!--(?!.*--\s*&gt;)
12+
|&lt;!--(?!.*--&gt;)
1313
|^&lt;!--\ \#tminclude\ (?&gt;.*?--&gt;)$
1414
|&lt;\?(?:php)?.*\b(if|for(each)?|while)\b.+:
1515
|\{\{?(if|foreach|capture|literal|foreach|php|section|strip)
@@ -18,7 +18,7 @@
1818
<key>foldingStopMarker</key>
1919
<string>(?x)
2020
(&lt;/(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|li|form|dl)&gt;
21-
|^(?!.*?&lt;!--).*?--\s*&gt;
21+
|^(?!.*?&lt;!--).*?--&gt;
2222
|^&lt;!--\ end\ tminclude\ --&gt;$
2323
|&lt;\?(?:php)?.*\bend(if|for(each)?|while)\b
2424
|\{\{?/(if|foreach|capture|literal|foreach|php|section|strip)
@@ -138,18 +138,9 @@
138138
</dict>
139139
</dict>
140140
<key>end</key>
141-
<string>--\s*&gt;</string>
141+
<string>--&gt;</string>
142142
<key>name</key>
143143
<string>comment.block.html</string>
144-
<key>patterns</key>
145-
<array>
146-
<dict>
147-
<key>match</key>
148-
<string>--</string>
149-
<key>name</key>
150-
<string>invalid.illegal.bad-comments-or-CDATA.html</string>
151-
</dict>
152-
</array>
153144
</dict>
154145
<dict>
155146
<key>begin</key>

0 commit comments

Comments
 (0)