diff --git a/lib/oga/xpath/lexer.rl b/lib/oga/xpath/lexer.rl index b2a1019..bddf229 100644 --- a/lib/oga/xpath/lexer.rl +++ b/lib/oga/xpath/lexer.rl @@ -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)