don't highlight numbers inside variable names
@@ -13,7 +13,8 @@ _builtinlist = [str(name) for name in dir(builtins)
# TODO: move builtin handling to global-local
BUILTIN = r"([^.'\"\\#]\b|^)" + matches_any("BUILTIN", _builtinlist) + r"\b"
-NUMBER = matches_any("NUMBER", [r"[+-]?(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?"])
+NUMBER = matches_any("NUMBER", [r"\W[+-]?(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?"])
+# TODO: would it make regex too slow? VARIABLE = matches_any("VARIABLE", [...])
COMMENT = matches_any("COMMENT", [r"#[^\n]*"])
MAGIC_COMMAND = matches_any("MAGIC_COMMAND", [r"^%[^\n]*"]) # used only in shell
