From: Stefan Monnier Date: Tue, 23 Dec 2014 15:50:36 +0000 (-0500) Subject: * lisp/progmodes/js.el (js-syntax-propertize): "return" can't be divided. X-Git-Tag: emacs-24.4.90~115 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=14c3739;p=emacs.git * lisp/progmodes/js.el (js-syntax-propertize): "return" can't be divided. Fixes: debbugs:19397 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9cae9b97c2e..789f59e1b42 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-12-23 Stefan Monnier + + * progmodes/js.el (js-syntax-propertize): "return" can't be divided + (bug#19397). + 2014-12-23 Michael Albinus * net/tramp.el (tramp-read-passwd): Ignore errors from `auth-source-*'. diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 56569e1f972..0d81a0a22ae 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el @@ -1656,7 +1656,7 @@ This performs fontification according to `js--class-styles'." ;; We can probably just add +, -, !, <, >, %, ^, ~, |, &, ?, : at which ;; point I think only * and / would be missing which could also be added, ;; but need care to avoid affecting the // and */ comment markers. - ("\\(?:^\\|[=([{,:;]\\)\\(?:[ \t]\\)*\\(/\\)[^/*]" + ("\\(?:^\\|[=([{,:;]\\|\\_\\)\\(?:[ \t]\\)*\\(/\\)[^/*]" (1 (ignore (forward-char -1) (when (or (not (memq (char-after (match-beginning 0)) '(?\s ?\t)))