Skip to content

Commit

Permalink
[HTML5] Change scopes to make debugging easier.
Browse files Browse the repository at this point in the history
  • Loading branch information
borela committed Oct 8, 2016
1 parent 48faf05 commit 7824678
Show file tree
Hide file tree
Showing 21 changed files with 114 additions and 114 deletions.
2 changes: 1 addition & 1 deletion completition/html5/instruction.sublime-completions
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// License for the specific language governing permissions and limitations under
// the License.

"scope": "text.html.5 - comment",
"scope": "text.html.html5 - comment",
"completions": [
{
"trigger": "cdata",
Expand Down
2 changes: 1 addition & 1 deletion snippets/html5/basic.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
| the License.
-->
<snippet>
<scope>text.html.5</scope>
<scope>text.html.html5</scope>
<tabTrigger>html5</tabTrigger>
<description>HTML 5 basic page.</description>
<content><![CDATA[
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/html5/attribute/normal.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ contexts:
- match: |
(?xi)
{{commonIdentifier}}
scope: entity.name.attribute.html.5
scope: entity.name.attribute.html.html5
set: value
value:
Expand Down
8 changes: 4 additions & 4 deletions syntaxes/html5/attribute/support/global.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ contexts:
)
)
scope: >-
support.attribute.html.5
entity.name.attribute.html.5
support.attribute.html.html5
entity.name.attribute.html.html5
set: value
boolean:
- match: hidden
scope: >-
support.attribute.html.5
entity.name.attribute.html.5
support.attribute.html.html5
entity.name.attribute.html.html5
pop: true

value:
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/html5/attribute/value.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ scope: ...
contexts:
main:
- match: \=
scope: operator.assignment.html.5
scope: operator.assignment.html.html5
set: value
- match: (?=\S)
pop: true
Expand Down
12 changes: 6 additions & 6 deletions syntaxes/html5/element/cdata.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ contexts:
main:
- match: (<!\[)(CDATA)(\[)
captures:
0: tag.cdata.html.5
1: punctuation.delimiter.tag.begin.html.5
2: entity.name.tag.cdata.html.5
3: punctuation.delimiter.tag.begin.html.5
0: tag.cdata.html.html5
1: punctuation.delimiter.tag.begin.html.html5
2: entity.name.tag.cdata.html.html5
3: punctuation.delimiter.tag.begin.html.html5
set: content

content:
- match: \]\]\>
scope: >-
tag.cdata.html.5
punctuation.delimiter.tag.end.html.5
tag.cdata.html.html5
punctuation.delimiter.tag.end.html.html5
pop: true
6 changes: 3 additions & 3 deletions syntaxes/html5/element/comment.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ contexts:
- match: |
(?xi)
<!--
scope: punctuation.comment.block.begin.html.5
scope: punctuation.comment.block.begin.html.html5
set: comment
comment:
- meta_scope: comment.block.html.5
- meta_scope: comment.block.html.html5
- match: -->
scope: punctuation.comment.block.end.html.5
scope: punctuation.comment.block.end.html.html5
pop: true
8 changes: 4 additions & 4 deletions syntaxes/html5/element/doctype.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ contexts:
main:
- match: (?i)(<!)(DOCTYPE) html(>)
captures:
0: tag.doctype.html.5
1: punctuation.delimiter.tag.begin.html.5
2: entity.name.tag.doctype.html.5
3: punctuation.delimiter.tag.end.html.5
0: tag.doctype.html.html5
1: punctuation.delimiter.tag.begin.html.html5
2: entity.name.tag.doctype.html.html5
3: punctuation.delimiter.tag.end.html.html5
pop: true
24 changes: 12 additions & 12 deletions syntaxes/html5/element/embedded.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ contexts:
)
)\b
captures:
0: tag.open.embedded.html.5
1: punctuation.delimiter.tag.begin.html.5
2: entity.name.tag.embedded.html.5
0: tag.open.embedded.html.html5
1: punctuation.delimiter.tag.begin.html.html5
2: entity.name.tag.embedded.html.html5
set: attributes
other-elements:
Expand All @@ -52,9 +52,9 @@ contexts:
)
)\b
captures:
0: tag.open.embedded.html.5
1: punctuation.delimiter.tag.begin.html.5
2: entity.name.tag.embedded.html.5
0: tag.open.embedded.html.html5
1: punctuation.delimiter.tag.begin.html.html5
2: entity.name.tag.embedded.html.html5
set: [
content,
attributes
Expand All @@ -63,8 +63,8 @@ contexts:
attributes:
- match: \>
scope: >-
tag.open.embedded.html.5
punctuation.delimiter.tag.end.html.5
tag.open.embedded.html.html5
punctuation.delimiter.tag.end.html.html5
pop: true
- include: Packages/Naomi/syntaxes/html5/attribute.no-pop.sublime-syntax

Expand All @@ -73,9 +73,9 @@ contexts:
(?x)
(</)(\2)(>)
captures:
0: tag.close.embedded.html.5
1: punctuation.delimiter.tag.begin.html.5
2: entity.name.tag.embedded.html.5
3: punctuation.delimiter.tag.end.html.5
0: tag.close.embedded.html.html5
1: punctuation.delimiter.tag.begin.html.html5
2: entity.name.tag.embedded.html.html5
3: punctuation.delimiter.tag.end.html.html5
pop: true
- include: Packages/Naomi/syntaxes/html5/element.no-pop.sublime-syntax
18 changes: 9 additions & 9 deletions syntaxes/html5/element/fjsx15-script.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ contexts:
\s*"text/babel"
)
captures:
0: tag.open.other.html.5
1: punctuation.delimiter.tag.begin.html.5
2: entity.name.tag.other.html.5
0: tag.open.other.html.html5
1: punctuation.delimiter.tag.begin.html.html5
2: entity.name.tag.other.html.html5
set: [
embedded-fjsx15,
attributes
Expand All @@ -42,10 +42,10 @@ contexts:
(?x)
(</)(\2)(>)
captures:
0: tag.close.other.html.5
1: punctuation.delimiter.tag.begin.html.5
2: entity.name.tag.other.html.5
3: punctuation.delimiter.tag.end.html.5
0: tag.close.other.html.html5
1: punctuation.delimiter.tag.begin.html.html5
2: entity.name.tag.other.html.html5
3: punctuation.delimiter.tag.end.html.html5
pop: true
- match: (?=\S)
push:
Expand All @@ -57,7 +57,7 @@ contexts:
attributes:
- match: \>
scope: >-
tag.open.other.html.5
punctuation.delimiter.tag.end.html.5
tag.open.other.html.html5
punctuation.delimiter.tag.end.html.html5
pop: true
- include: Packages/Naomi/syntaxes/html5/attribute.no-pop.sublime-syntax
24 changes: 12 additions & 12 deletions syntaxes/html5/element/form.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ contexts:
void-elements:
- match: (<)(input)\b
captures:
0: tag.open.form.html.5
1: punctuation.delimiter.tag.begin.html.5
2: entity.name.tag.form.html.5
0: tag.open.form.html.html5
1: punctuation.delimiter.tag.begin.html.html5
2: entity.name.tag.form.html.html5
set: attributes

other-elements:
Expand All @@ -47,9 +47,9 @@ contexts:
)
)\b
captures:
0: tag.open.form.html.5
1: punctuation.delimiter.tag.begin.html.5
2: entity.name.tag.form.html.5
0: tag.open.form.html.html5
1: punctuation.delimiter.tag.begin.html.html5
2: entity.name.tag.form.html.html5
set: [
content,
attributes
Expand All @@ -58,8 +58,8 @@ contexts:
attributes:
- match: \>
scope: >-
tag.open.form.html.5
punctuation.delimiter.tag.end.html.5
tag.open.form.html.html5
punctuation.delimiter.tag.end.html.html5
pop: true
- include: Packages/Naomi/syntaxes/html5/attribute.no-pop.sublime-syntax

Expand All @@ -68,9 +68,9 @@ contexts:
(?x)
(</)(\2)(>)
captures:
0: tag.close.form.html.5
1: punctuation.delimiter.tag.begin.html.5
2: entity.name.tag.form.html.5
3: punctuation.delimiter.tag.end.html.5
0: tag.close.form.html.html5
1: punctuation.delimiter.tag.begin.html.html5
2: entity.name.tag.form.html.html5
3: punctuation.delimiter.tag.end.html.html5
pop: true
- include: Packages/Naomi/syntaxes/html5/element.no-pop.sublime-syntax
18 changes: 9 additions & 9 deletions syntaxes/html5/element/head.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ contexts:
(?xi)
(<)(head)\b
captures:
0: tag.open.head.html.5
1: punctuation.delimiter.tag.begin.html.5
2: entity.name.tag.head.html.5
0: tag.open.head.html.html5
1: punctuation.delimiter.tag.begin.html.html5
2: entity.name.tag.head.html.html5
set: [
content,
attributes
Expand All @@ -34,8 +34,8 @@ contexts:
attributes:
- match: \>
scope: >-
tag.open.head.html.5
punctuation.delimiter.tag.end.html.5
tag.open.head.html.html5
punctuation.delimiter.tag.end.html.html5
pop: true
- include: Packages/Naomi/syntaxes/html5/attribute.no-pop.sublime-syntax

Expand All @@ -44,9 +44,9 @@ contexts:
(?xi)
(</)(\2)(>)
captures:
0: tag.close.head.html.5
1: punctuation.delimiter.tag.begin.html.5
2: entity.name.tag.head.html.5
3: punctuation.delimiter.tag.end.html.5
0: tag.close.head.html.html5
1: punctuation.delimiter.tag.begin.html.html5
2: entity.name.tag.head.html.html5
3: punctuation.delimiter.tag.end.html.html5
pop: true
- include: Packages/Naomi/syntaxes/html5/element.no-pop.sublime-syntax
18 changes: 9 additions & 9 deletions syntaxes/html5/element/html.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ contexts:
(?xi)
(<)(html)\b
captures:
0: tag.open.root.html.5
1: punctuation.delimiter.tag.begin.html.5
2: entity.name.tag.root.html.5
0: tag.open.root.html.html5
1: punctuation.delimiter.tag.begin.html.html5
2: entity.name.tag.root.html.html5
set: [
content,
attributes
Expand All @@ -34,8 +34,8 @@ contexts:
attributes:
- match: \>
scope: >-
tag.open.root.html.5
punctuation.delimiter.tag.end.html.5
tag.open.root.html.html5
punctuation.delimiter.tag.end.html.html5
pop: true
- include: Packages/Naomi/syntaxes/html5/attribute.no-pop.sublime-syntax

Expand All @@ -44,9 +44,9 @@ contexts:
(?xi)
(</)(\2)(>)
captures:
0: tag.close.root.html.5
1: punctuation.delimiter.tag.begin.html.5
2: entity.name.tag.root.html.5
3: punctuation.delimiter.tag.end.html.5
0: tag.close.root.html.html5
1: punctuation.delimiter.tag.begin.html.html5
2: entity.name.tag.root.html.html5
3: punctuation.delimiter.tag.end.html.html5
pop: true
- include: Packages/Naomi/syntaxes/html5/element.no-pop.sublime-syntax
20 changes: 10 additions & 10 deletions syntaxes/html5/element/other.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ contexts:
)
)\b
captures:
1: punctuation.delimiter.tag.begin.html.5
2: entity.name.tag.other.html.5
1: punctuation.delimiter.tag.begin.html.html5
2: entity.name.tag.other.html.html5
set: attributes
other-elements:
Expand Down Expand Up @@ -139,8 +139,8 @@ contexts:
)
)\b
captures:
1: punctuation.delimiter.tag.begin.html.5
2: entity.name.tag.other.html.5
1: punctuation.delimiter.tag.begin.html.html5
2: entity.name.tag.other.html.html5
set: [
content,
attributes
Expand All @@ -149,8 +149,8 @@ contexts:
attributes:
- match: \>
scope: >-
tag.open.other.html.5
punctuation.delimiter.tag.end.html.5
tag.open.other.html.html5
punctuation.delimiter.tag.end.html.html5
pop: true
- include: Packages/Naomi/syntaxes/html5/attribute.no-pop.sublime-syntax

Expand All @@ -159,9 +159,9 @@ contexts:
(?x)
(</)(\2)(>)
captures:
0: tag.close.other.html.5
1: punctuation.delimiter.tag.begin.html.5
2: entity.name.tag.other.html.5
3: punctuation.delimiter.tag.end.html.5
0: tag.close.other.html.html5
1: punctuation.delimiter.tag.begin.html.html5
2: entity.name.tag.other.html.html5
3: punctuation.delimiter.tag.end.html.html5
pop: true
- include: Packages/Naomi/syntaxes/html5/element.no-pop.sublime-syntax
Loading

0 comments on commit 7824678

Please sign in to comment.