Skip to content

Commit

Permalink
chore: add test for tag var after shorthand class/id
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Apr 3, 2022
1 parent 5c286df commit fdd70bf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,21 @@
│ │ ╰─ tagVar "/ref"
╰─ ╰─ tagName "div"
18╭─ <div/ref />
│ ││ ││ │ ╰─ closeTag(div)
│ ││ ││ ╰─ openTagEnd(div) "/>"
│ ││ │╰─ tagVar.value "ref"
│ ││ ╰─ tagVar "/ref"
│ │╰─ tagName "div"
╰─ ╰─ closeTag(div)
19╭─
╰─ ╰─ closeTag(div)
20╭─ <div#ab.cd/ref/>
│ │ ││ ││ ││ ╰─ openTagEnd(div) "/>"
│ │ ││ ││ │╰─ tagVar.value "ref"
│ │ ││ ││ ╰─ tagVar "/ref"
│ │ ││ │╰─ tagShorthandClass.quasis[0] "cd"
│ │ ││ ╰─ tagShorthandClass ".cd"
│ │ │╰─ tagShorthandId.quasis[0] "ab"
│ │ ╰─ tagShorthandId "#ab"
╰─ ╰─ tagName "div"
21╭─
╰─ ╰─ closeTag(div)
4 changes: 3 additions & 1 deletion src/__tests__/fixtures/tag-var-declaration/input.marko
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@
</>

<div/ref/>
<div/ref />
<div/ref />

<div#ab.cd/ref/>

0 comments on commit fdd70bf

Please sign in to comment.