Skip to content

Commit 703f43d

Browse files
author
deathaxe
committed
Merge branch 'main' into st4107
2 parents 5ecf92f + 922a753 commit 703f43d

File tree

3 files changed

+1
-117
lines changed

3 files changed

+1
-117
lines changed

.github/workflows/ci-syntax-tests.yml

-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ jobs:
2525
matrix:
2626
include:
2727
# Stable ST4 builds
28-
- build: 4107
29-
default_packages: v4107
3028
- build: 4126
3129
default_packages: binary
3230
steps:

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ e.g. `sublime.find_syntax_by_scope("source.ts")` in ST's console.
9696
Known candidates are:
9797

9898
- [JavaScriptNext - ES6 Syntax](https://packagecontrol.io/packages/JavaScriptNext%20-%20ES6%20Syntax)
99+
- [Naomi](https://github.com/borela/naomi)
99100
- [TypeScript](https://packagecontrol.io/packages/TypeScript)
100101
- [TypeScript Syntax](https://packagecontrol.io/packages/TypeScript%20Syntax)
101102

Vue Component.sublime-syntax

-115
Original file line numberDiff line numberDiff line change
@@ -12,41 +12,6 @@ file_extensions:
1212
- wpy
1313

1414
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-
)
5015

5116
# Vue specific variables
5217
# ======================
@@ -71,30 +36,11 @@ contexts:
7136

7237
tag-html:
7338
- meta_prepend: true
74-
- include: script-tag
75-
- include: style-tag
7639
- include: i18n-tag
7740
- include: template-tag
7841

7942
###[ SCRIPT TAG ]#############################################################
8043

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-
9844
script-common:
9945
- meta_prepend: true
10046
- include: script-lang-attribute
@@ -284,23 +230,6 @@ contexts:
284230

285231
###[ STYLE TAG ]##############################################################
286232

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-
304233
style-common:
305234
- meta_prepend: true
306235
- include: style-lang-attribute
@@ -360,30 +289,6 @@ contexts:
360289
- tag-lang-attribute-meta
361290
- tag-generic-attribute-value
362291

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-
387292
style-less:
388293
- meta_scope: meta.tag.style.begin.html
389294
- match: '>'
@@ -688,26 +593,6 @@ contexts:
688593
- meta_prepend: true
689594
- include: vue-directive
690595

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-
711596
tag-lang-attribute-meta:
712597
# required until ST4184 (PR #4061)
713598
- meta_include_prototype: false

0 commit comments

Comments
 (0)