Skip to content

Commit

Permalink
corpus: add a test for elements containing a forward slash
Browse files Browse the repository at this point in the history
  • Loading branch information
vrischmann committed Jan 20, 2024
1 parent c3baaab commit f8325b7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions corpus/components.txt
Original file line number Diff line number Diff line change
Expand Up @@ -846,3 +846,29 @@ templ Foobar() {
name: (attribute_name)
value: (quoted_attribute_value
(attribute_value))))))))

===
Forward slash in the text between elements
===

package main

templ Foobar() {
<p>First/given name</p>
}

---

(source_file
(package_clause
(package_identifier))
(component_declaration
name: (component_identifier)
(parameter_list)
(component_block
(element
(tag_start
name: (element_identifier))
(element_text)
(tag_end
name: (element_identifier))))))

0 comments on commit f8325b7

Please sign in to comment.