Allow ? and ! in Ruby identifiers

From the spec ? and ! are only allow at the _end_ of _method_ names. The current highlighter accepts ? and ! in _all_ identifiers (since they could be e.g. method calls), too.
This commit is contained in:
Christian Nicolai 2011-08-11 22:53:32 +02:00
parent 40568ca3e3
commit d062c874bd
1 changed files with 3 additions and 1 deletions

View File

@ -397,7 +397,9 @@ done
"attr_writer" kw
"module_function" kw
done
"a-zA-Z0-9_" ident
# allowing ?! is not nearly correct but fixes more than
# it destructs
"a-zA-Z0-9_?!" ident
:kw Keyword
* rest noeat