marijnh/CodeMirror — pull request #1309 by JosephPecoraro (2013-03-03 02:01:24+00:00)
Title: [javascript mode] Recognize bitwise operators '~' and '^'

This was causing `1^2` to tokenize as: `(number, "1")`, `(variable, "^2)`. By
tokenizing these bitwise operators as operators CodeMirror can correctly
syntax highlight the 2 as a number. Likewise the number in `~0`.