@@ -12,41 +12,6 @@ file_extensions:
12
12
- wpy
13
13
14
14
variables :
15
- # CSS specific variables
16
- # ======================
17
-
18
- # Embedded script and style syntaxes may be wrapped into html comments for
19
- # historical reasons. The following patterns match them, while maintaining
20
- # correct boundaries of embedded source scopes. That's required to enable
21
- # embedded syntax's comment toggling in the first and last line.
22
- #
23
- # see:
24
- # - https://github.com/sublimehq/Packages/issues/2322
25
- # - https://github.com/sublimehq/sublime_text/issues/4701
26
- script_content_begin : |-
27
- (?x:
28
- # whitespace followed by opening html comment begin punctuation
29
- \s*(<!--)
30
- # or any other non-whitespace character ahead
31
- | (?=\s*(?!<!--)\S)
32
- # or beginning of a line
33
- | ^
34
- )
35
- script_content_end : |-
36
- (?x:
37
- # optional html comment end punctuation followed by </script> tag
38
- (?: (\s*) (-->) \s* )? (?=</(?i:script){{tag_name_break_char}})
39
- # or standalone html comment end punctuation in a line
40
- | ^ (\s*) (-->) \s* $
41
- )
42
- style_content_begin : ' {{script_content_begin}}'
43
- style_content_end : |-
44
- (?x:
45
- # optional html comment end punctuation followed by </style> tag
46
- (?: (\s*) (-->) \s* )? (?=</(?i:style){{tag_name_break_char}})
47
- # or standalone html comment end punctuation in a line
48
- | ^ (\s*) (-->) \s* $
49
- )
50
15
51
16
# Vue specific variables
52
17
# ======================
@@ -71,30 +36,11 @@ contexts:
71
36
72
37
tag-html :
73
38
- meta_prepend : true
74
- - include : script-tag
75
- - include : style-tag
76
39
- include : i18n-tag
77
40
- include : template-tag
78
41
79
42
# ##[ SCRIPT TAG ]#############################################################
80
43
81
- script-tag :
82
- # required until ST4113
83
- - match : (<)((?i:script)){{tag_name_break}}
84
- captures :
85
- 1 : punctuation.definition.tag.begin.html
86
- 2 : entity.name.tag.script.html
87
- push : script-javascript
88
- - match : (</)((?i:script){{tag_name_break}})
89
- captures :
90
- 1 : punctuation.definition.tag.begin.html
91
- 2 : entity.name.tag.script.html
92
- push : script-close-tag-content
93
-
94
- script-close-tag-content :
95
- - meta_scope : meta.tag.script.end.html
96
- - include : tag-end
97
-
98
44
script-common :
99
45
- meta_prepend : true
100
46
- include : script-lang-attribute
@@ -284,23 +230,6 @@ contexts:
284
230
285
231
# ##[ STYLE TAG ]##############################################################
286
232
287
- style-tag :
288
- # required until ST4113
289
- - match : (<)((?i:style)){{tag_name_break}}
290
- captures :
291
- 1 : punctuation.definition.tag.begin.html
292
- 2 : entity.name.tag.style.html
293
- push : style-css
294
- - match : (</)((?i:style){{tag_name_break}})
295
- captures :
296
- 1 : punctuation.definition.tag.begin.html
297
- 2 : entity.name.tag.style.html
298
- push : style-close-tag-content
299
-
300
- style-close-tag-content :
301
- - meta_scope : meta.tag.style.end.html
302
- - include : tag-end
303
-
304
233
style-common :
305
234
- meta_prepend : true
306
235
- include : style-lang-attribute
@@ -360,30 +289,6 @@ contexts:
360
289
- tag-lang-attribute-meta
361
290
- tag-generic-attribute-value
362
291
363
- style-css :
364
- # required until ST4113
365
- - meta_scope : meta.tag.style.begin.html
366
- - match : ' >'
367
- scope : punctuation.definition.tag.end.html
368
- set : style-css-content
369
- - include : style-common
370
-
371
- style-css-content :
372
- # required until ST4113
373
- - meta_include_prototype : false
374
- - match : ' {{style_content_begin}}'
375
- captures :
376
- 1 : comment.block.html punctuation.definition.comment.begin.html
377
- pop : 1 # make sure to match only once
378
- embed : scope:source.css
379
- embed_scope : source.css.embedded.html
380
- escape : ' {{style_content_end}}'
381
- escape_captures :
382
- 1 : source.css.embedded.html
383
- 2 : comment.block.html punctuation.definition.comment.end.html
384
- 3 : source.css.embedded.html
385
- 4 : comment.block.html punctuation.definition.comment.end.html
386
-
387
292
style-less :
388
293
- meta_scope : meta.tag.style.begin.html
389
294
- match : ' >'
@@ -688,26 +593,6 @@ contexts:
688
593
- meta_prepend : true
689
594
- include : vue-directive
690
595
691
- tag-class-attribute-value :
692
- # required until ST4113
693
- - meta_prepend : true
694
- - meta_include_prototype : false
695
-
696
- tag-generic-attribute-value :
697
- # required until ST4113
698
- - meta_prepend : true
699
- - meta_include_prototype : false
700
-
701
- tag-href-attribute-value :
702
- # required until ST4113
703
- - meta_prepend : true
704
- - meta_include_prototype : false
705
-
706
- tag-id-attribute-value :
707
- # required until ST4113
708
- - meta_prepend : true
709
- - meta_include_prototype : false
710
-
711
596
tag-lang-attribute-meta :
712
597
# required until ST4184 (PR #4061)
713
598
- meta_include_prototype : false
0 commit comments