Skip to content

Commit

Permalink
corpus/script: add a test for a self-closing script tag
Browse files Browse the repository at this point in the history
  • Loading branch information
vrischmann committed Jan 7, 2024
1 parent 78b6cc4 commit 63632a9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions corpus/script.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,28 @@ templ Foobar() {
name: (attribute_name)
value: (quoted_attribute_value
(attribute_value)))))))

===
Self closing script tag
===

package main

templ Foobar() {
<script src="/app.js" />
}

---

(source_file
(package_clause
(package_identifier))
(component_declaration
name: (component_identifier)
(parameter_list)
(component_block
(self_closing_tag
(attribute
name: (attribute_name)
value: (quoted_attribute_value
(attribute_value)))))))

0 comments on commit 63632a9

Please sign in to comment.