From f7856acd3a66154d543563951408697d8f86d48f Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Wed, 16 Jan 2013 02:32:43 +0000 Subject: [PATCH] el/dot-emacs.el: Don't recognize portions of identifiers as keywords. Organization: Straylight/Edgeware From: Mark Wooding Same problem as with Python earlier. --- el/dot-emacs.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/el/dot-emacs.el b/el/dot-emacs.el index 497318a..ffe360a 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -1420,17 +1420,17 @@ (defun mdw-fontify-javascript () (list ;; Handle the keywords defined above. - (list (concat "\\<\\(" javascript-keywords "\\)\\>") + (list (concat "\\_<\\(" javascript-keywords "\\)\\_>") '(0 font-lock-keyword-face)) ;; Handle the predefined constants defined above. - (list (concat "\\<\\(" javascript-constants "\\)\\>") + (list (concat "\\_<\\(" javascript-constants "\\)\\_>") '(0 font-lock-variable-name-face)) ;; Handle numbers too. ;; ;; The following isn't quite right, but it's close enough. - (list (concat "\\<\\(" + (list (concat "\\_<\\(" "0\\([xX][0-9a-fA-F]+\\|[0-7]+\\)\\|" "[0-9]+\\(\\.[0-9]*\\|\\)" "\\([eE]\\([-+]\\|\\)[0-9]+\\|\\)\\)" -- [mdw]