From 14c3739040a60bfe6ed0a3ce0aa90a4758155e28 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 23 Dec 2014 10:50:36 -0500 Subject: [PATCH] * lisp/progmodes/js.el (js-syntax-propertize): "return" can't be divided. Fixes: debbugs:19397 --- lisp/ChangeLog | 5 +++++ lisp/progmodes/js.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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))) -- 2.39.2