-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: positions wrong with multiple quasis in tag name
- Loading branch information
1 parent
02208cd
commit a3122dd
Showing
20 changed files
with
61 additions
and
53 deletions.
There are no files selected for viewing
12 changes: 6 additions & 6 deletions
12
src/__tests__/fixtures/argument-and-params/__snapshots__/argument-and-params.expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
...ures/placeholder-tag-name-concise/__snapshots__/placeholder-tag-name-concise.expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
1╭─ ${test} foo=123 | ||
│ │ │ ││ ├─ closeTag(${test}) | ||
│ │ │ ││ ╰─ openTagEnd | ||
│ │ │ │╰─ attrValue.value "123" | ||
│ │ │ ╰─ attrValue "=123" | ||
│ │ ├─ attrName "foo" | ||
│ │ ╰─ tagName.quasis[1] | ||
│ │ ││ ││ ├─ closeTag(${test}) | ||
│ │ ││ ││ ╰─ openTagEnd | ||
│ │ ││ │╰─ attrValue.value "123" | ||
│ │ ││ ╰─ attrValue "=123" | ||
│ │ │╰─ attrName "foo" | ||
│ │ ╰─ tagName.quasis[1] | ||
│ ├─ tagName.expressions[0] "${test}" | ||
│ ├─ tagName.quasis[0] | ||
╰─ ╰─ tagName "${test}" |
10 changes: 5 additions & 5 deletions
10
..._/fixtures/placeholder-tag-name-html/__snapshots__/placeholder-tag-name-html.expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
1╭─ <${test} foo=123/> | ||
│ │ │ ││ ╰─ openTagEnd:selfClosed "/>" | ||
│ │ │ │╰─ attrValue.value "123" | ||
│ │ │ ╰─ attrValue "=123" | ||
│ │ ├─ attrName "foo" | ||
│ │ ╰─ tagName.quasis[1] | ||
│ │ ││ ││ ╰─ openTagEnd:selfClosed "/>" | ||
│ │ ││ │╰─ attrValue.value "123" | ||
│ │ ││ ╰─ attrValue "=123" | ||
│ │ │╰─ attrName "foo" | ||
│ │ ╰─ tagName.quasis[1] | ||
│ ├─ tagName.expressions[0] "${test}" | ||
│ ├─ tagName.quasis[0] | ||
╰─ ╰─ tagName "${test}" |
4 changes: 2 additions & 2 deletions
4
...-dynamic-literal-prefix/__snapshots__/shorthand-class-dynamic-literal-prefix.expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...-dynamic-literal-suffix/__snapshots__/shorthand-class-dynamic-literal-suffix.expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...sts__/fixtures/shorthand-class-dynamic/__snapshots__/shorthand-class-dynamic.expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...-id-dynamic-literal-prefix/__snapshots__/shorthand-id-dynamic-literal-prefix.expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...-id-dynamic-literal-suffix/__snapshots__/shorthand-id-dynamic-literal-suffix.expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/__tests__/fixtures/shorthand-id-dynamic/__snapshots__/shorthand-id-dynamic.expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...-literal-prefix-attrs/__snapshots__/tag-name-expression-literal-prefix-attrs.expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...iteral-prefix-suffix/__snapshots__/tag-name-expression-literal-prefix-suffix.expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...e-expression-literal-prefix/__snapshots__/tag-name-expression-literal-prefix.expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
1╭─ <foo-${bar}> | ||
│ │ │ ╰─ openTagEnd | ||
│ │ │ ├─ openTagEnd | ||
│ │ │ ╰─ tagName.quasis[1] | ||
│ │ ╰─ tagName.expressions[0] "${bar}" | ||
│ ├─ tagName.quasis[0] "foo-" | ||
╰─ ╰─ tagName "foo-${bar}" | ||
2╭─ </> | ||
│ │ ╰─ closeTag(foo-${bar}).value | ||
│ ├─ text "\n" | ||
│ ├─ tagName.quasis[1] | ||
╰─ ╰─ closeTag(foo-${bar}) "</>" |
4 changes: 2 additions & 2 deletions
4
...e-expression-literal-suffix/__snapshots__/tag-name-expression-literal-suffix.expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...sion-simple-empty-close/__snapshots__/tag-name-expression-simple-empty-close.expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
1╭─ <${foo}> | ||
│ │ ╰─ openTagEnd | ||
│ │ ├─ openTagEnd | ||
│ │ ╰─ tagName.quasis[1] | ||
│ ├─ tagName.expressions[0] "${foo}" | ||
│ ├─ tagName.quasis[0] | ||
╰─ ╰─ tagName "${foo}" | ||
2╭─ </> | ||
│ │ ╰─ closeTag(${foo}).value | ||
│ ├─ text "\n" | ||
│ ├─ tagName.quasis[1] | ||
╰─ ╰─ closeTag(${foo}) "</>" |
4 changes: 2 additions & 2 deletions
4
...fixtures/tag-name-expression-simple/__snapshots__/tag-name-expression-simple.expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
1╭─ <${foo}> | ||
│ │ ╰─ openTagEnd | ||
│ │ ├─ openTagEnd | ||
│ │ ╰─ tagName.quasis[1] | ||
│ ├─ tagName.expressions[0] "${foo}" | ||
│ ├─ tagName.quasis[0] | ||
╰─ ╰─ tagName "${foo}" | ||
2╭─ </${foo}> | ||
│ │ ╰─ closeTag(${foo}).value "${foo}" | ||
│ ├─ text "\n" | ||
│ ├─ tagName.quasis[1] | ||
╰─ ╰─ closeTag(${foo}) "</${foo}>" |
6 changes: 3 additions & 3 deletions
6
src/__tests__/fixtures/tag-var-declaration/__snapshots__/tag-var-declaration.expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/__tests__/fixtures/testing/__snapshots__/testing.expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
1╭─ <div.hello-${world}-again/> | ||
│ │ ││ │ │ ╰─ openTagEnd:selfClosed "/>" | ||
│ │ ││ │ ╰─ tagShorthandClass.quasis[1] "-again" | ||
│ │ ││ ╰─ tagShorthandClass.expressions[0] "${world}" | ||
│ │ │╰─ tagShorthandClass.quasis[0] "hello-" | ||
│ │ ╰─ tagShorthandClass ".hello-${world}-again" | ||
╰─ ╰─ tagName "div" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div.hello-${world}-again/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters