Stricter lexing rules for XPath wildcards.

This commit is contained in:
Yorick Peterse 2014-10-05 09:57:25 +02:00
parent 2dd148539d
commit e03cd42735
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)