diff options
| -rw-r--r-- | lisp/progmodes/js.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index f024d397ffb..6d995a095e6 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el | |||
| @@ -1757,6 +1757,10 @@ This performs fontification according to `js--class-styles'." | |||
| 1757 | (and (js--re-search-backward "[?:{]\\|\\_<case\\_>" nil t) | 1757 | (and (js--re-search-backward "[?:{]\\|\\_<case\\_>" nil t) |
| 1758 | (eq (char-after) ??)))) | 1758 | (eq (char-after) ??)))) |
| 1759 | (not (and | 1759 | (not (and |
| 1760 | (eq (char-after) ?/) | ||
| 1761 | (save-excursion | ||
| 1762 | (eq (nth 3 (syntax-ppss)) ?/)))) | ||
| 1763 | (not (and | ||
| 1760 | (eq (char-after) ?*) | 1764 | (eq (char-after) ?*) |
| 1761 | ;; Generator method (possibly using computed property). | 1765 | ;; Generator method (possibly using computed property). |
| 1762 | (looking-at (concat "\\* *\\(?:\\[\\|" js--name-re " *(\\)")) | 1766 | (looking-at (concat "\\* *\\(?:\\[\\|" js--name-re " *(\\)")) |