1
0
mirror of https://github.com/cmur2/joe-syntax.git synced 2024-12-22 02:54:23 +01:00

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

View File

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