Stricter lexing rules for XPath wildcards.
This commit is contained in:
parent
2dd148539d
commit
e03cd42735
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue