aboutsummaryrefslogtreecommitdiff
path: root/parser/parser.go
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-04-18 10:46:14 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-04-18 10:50:46 +0200
commite3740eb9075594d8a2e6e026c542b27f01fe8e9b (patch)
tree4a2dce9e21992d144cd6e3036c6de1d2b221b411 /parser/parser.go
parentbdcef09b529024e616e9400b110ee5b712db29ed (diff)
Add support for commentsv3.1.0
Diffstat (limited to 'parser/parser.go')
-rw-r--r--parser/parser.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/parser/parser.go b/parser/parser.go
index 7d69e30..01ca6c3 100644
--- a/parser/parser.go
+++ b/parser/parser.go
@@ -363,9 +363,9 @@ func (reader *reader) parseString() (string, error) {
}
// validNameStartChar returns whether or not the rune ‘r’ is a legal rune in the
-// first position an XML tag name.
+// first position an XML tag name, or a slash.
func validNameStartChar(r rune) bool {
- return r == ':' || r == '_' ||
+ return r == '/' || r == ':' || r == '_' ||
(r >= 'A' && r <= 'Z') ||
(r >= 'a' && r <= 'z') ||
(r >= 0x000C0 && r <= 0x000D6) ||