Skip to content

Commit 37a98cf

Browse files
deathaxeskyronic
authored andcommitted
Reorganize and group contexts in sections
1 parent 71644bc commit 37a98cf

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

Vue Component.sublime-syntax

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -69,20 +69,12 @@ contexts:
6969
- match: ''
7070
pop: true
7171

72+
###[ TAG ATTRIBUTES ]#########################################################
73+
7274
tag-attributes:
7375
- meta_prepend: true
7476
- include: vue-directive
7577

76-
template-tag:
77-
- match: (<)((?i:template)){{tag_name_break}}
78-
captures:
79-
0: meta.tag.template.begin.html
80-
1: punctuation.definition.tag.begin.html
81-
2: entity.name.tag.template.html
82-
push: template-mustache
83-
84-
###[ TAG ATTRIBUTES ]#########################################################
85-
8678
vue-directive:
8779
- match: (?=v-)
8880
push:
@@ -453,12 +445,13 @@ contexts:
453445

454446
###[ TEMPLATE TAG ]###########################################################
455447

456-
template-common:
457-
- include: template-lang-attribute
458-
- include: tag-attributes
459-
- match: />
460-
scope: punctuation.definition.tag.end.html
461-
pop: true
448+
template-tag:
449+
- match: (<)((?i:template)){{tag_name_break}}
450+
captures:
451+
0: meta.tag.template.begin.html
452+
1: punctuation.definition.tag.begin.html
453+
2: entity.name.tag.template.html
454+
push: template-mustache
462455

463456
template-close-tag:
464457
- match: (</)((?i:template))(>)
@@ -469,6 +462,13 @@ contexts:
469462
3: punctuation.definition.tag.end.html
470463
pop: true
471464

465+
template-common:
466+
- include: template-lang-attribute
467+
- include: tag-attributes
468+
- match: />
469+
scope: punctuation.definition.tag.end.html
470+
pop: true
471+
472472
template-mustache:
473473
- meta_content_scope: meta.tag.template.begin.html
474474
- include: template-common

Vue Component.sublime-syntax.yaml-macros

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -70,20 +70,12 @@ contexts:
7070
- match: ''
7171
pop: true
7272

73+
###[ TAG ATTRIBUTES ]#########################################################
74+
7375
tag-attributes:
7476
- meta_prepend: true
7577
- include: vue-directive
7678

77-
template-tag:
78-
- match: (<)((?i:template)){{tag_name_break}}
79-
captures:
80-
0: meta.tag.template.begin.html
81-
1: punctuation.definition.tag.begin.html
82-
2: entity.name.tag.template.html
83-
push: template-mustache
84-
85-
###[ TAG ATTRIBUTES ]#########################################################
86-
8779
vue-directive:
8880
- match: (?=v-)
8981
push:
@@ -273,12 +265,13 @@ contexts:
273265

274266
###[ TEMPLATE TAG ]###########################################################
275267

276-
template-common:
277-
- include: template-lang-attribute
278-
- include: tag-attributes
279-
- match: '/>'
280-
scope: punctuation.definition.tag.end.html
281-
pop: true
268+
template-tag:
269+
- match: (<)((?i:template)){{tag_name_break}}
270+
captures:
271+
0: meta.tag.template.begin.html
272+
1: punctuation.definition.tag.begin.html
273+
2: entity.name.tag.template.html
274+
push: template-mustache
282275

283276
template-close-tag:
284277
- match: (</)((?i:template))(>)
@@ -289,6 +282,13 @@ contexts:
289282
3: punctuation.definition.tag.end.html
290283
pop: true
291284

285+
template-common:
286+
- include: template-lang-attribute
287+
- include: tag-attributes
288+
- match: '/>'
289+
scope: punctuation.definition.tag.end.html
290+
pop: true
291+
292292
template-mustache:
293293
- meta_content_scope: meta.tag.template.begin.html
294294
- include: template-common

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