branch: elpa/lua-mode
commit 4217513e6b17a39bf45d231fcde525d21c37350a
Author: immerrr <[email protected]>
Commit: immerrr <[email protected]>
Remove highlighting of numbers for consistency with other major-modes
See http://lists.gnu.org/archive/html/emacs-devel/2011-06/msg00565.html
for a history of analogous discussion concerning python-mode.
---
lua-mode.el | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/lua-mode.el b/lua-mode.el
index 6a13330..9ce1214 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -527,21 +527,6 @@ Groups 6-9 can be used in any of argument regexps."
(,lua--builtins
(1 font-lock-builtin-face) (2 font-lock-builtin-face nil noerror))
- ;; hexadecimal numbers
- ("\\_<0x[[:xdigit:]]+\\_>" . font-lock-constant-face)
-
- ;; regular numbers
- ;;
- ;; This regexp relies on '.' being symbol constituent. Whenever this
- ;; changes, the regexp needs revisiting --immerrr
- (, (rx symbol-start
- ;; make a digit on either side of dot mandatory
- (or (seq (+ num) (? ".") (* num))
- (seq (* num) (? ".") (+ num)))
- (? (regexp "[eE][+-]?") (+ num))
- symbol-end)
- . font-lock-constant-face)
-
("^[ \t]*\\_<for\\_>"
(,(lua-make-delimited-matcher "\\_<[[:alpha:]_][[:alnum:]_]*\\_>" ","
"\\(?:\\_<in\\_>\\|=\\(?:[^=]\\|$\\)\\)")