marijnh/CodeMirror — pull request #1599 by byroot (2013-06-12 20:08:37+00:00)
Title: Improve ruby variables and symbols parsing rules

For variables:

- variables names can't include a ? nor a !

For symbols:

- can be operators (e.g :+, :/, :-, :>>)
- start with @ or $
- end with !, ? or =
- can't start by a digit

For symbols defined in reverse as hash keys (e.g {foo: 'bar'}):

- can only start with [a-zA-Z\_]
- can't end with =