XPath idents can't start with a star.

That is, names such as "*foo" are not valid. This was most likely a typo in the
first place.
This commit is contained in:
Yorick Peterse 2014-11-05 00:38:17 +01:00
parent 61801fe562
commit 1c20ef52ae
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ module Oga
# Identifiers are used for element names, namespaces, attribute names,
# etc. Identifiers have to start with a letter.
identifier = '*' | [a-zA-Z*_]+ [a-zA-Z\-_0-9]*;
identifier = '*' | [a-zA-Z_]+ [a-zA-Z\-_0-9]*;
action emit_identifier {
emit(:T_IDENT, ts, te)