diff options
| author | Joakim Verona | 2015-01-11 18:40:21 +0100 |
|---|---|---|
| committer | Joakim Verona | 2015-01-11 18:40:21 +0100 |
| commit | cc7cb20d6abc0f862e5513b24831bba0eaecaa5f (patch) | |
| tree | afc2fc05401504aa0c28699dc3bc155c5b0d7f58 /lisp/progmodes | |
| parent | d972b504f30ff4300ba368940751e8736dddf0b4 (diff) | |
| parent | 9a57bda31569294ecaf8138a06e5edda9c0d87e3 (diff) | |
| download | emacs-cc7cb20d6abc0f862e5513b24831bba0eaecaa5f.tar.gz emacs-cc7cb20d6abc0f862e5513b24831bba0eaecaa5f.zip | |
merge master, fix conflicts
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/js.el | 5 | ||||
| -rw-r--r-- | lisp/progmodes/xref.el | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index de6a33988a4..c25e52cdc6a 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el | |||
| @@ -248,7 +248,7 @@ name as matched contains | |||
| 248 | 248 | ||
| 249 | (defconst js--function-heading-1-re | 249 | (defconst js--function-heading-1-re |
| 250 | (concat | 250 | (concat |
| 251 | "^\\s-*function\\s-+\\(" js--name-re "\\)") | 251 | "^\\s-*function\\(?:\\s-\\|\\*\\)+\\(" js--name-re "\\)") |
| 252 | "Regexp matching the start of a JavaScript function header. | 252 | "Regexp matching the start of a JavaScript function header. |
| 253 | Match group 1 is the name of the function.") | 253 | Match group 1 is the name of the function.") |
| 254 | 254 | ||
| @@ -796,6 +796,9 @@ determined. Otherwise, return nil." | |||
| 796 | (let ((name t)) | 796 | (let ((name t)) |
| 797 | (forward-word) | 797 | (forward-word) |
| 798 | (forward-comment most-positive-fixnum) | 798 | (forward-comment most-positive-fixnum) |
| 799 | (when (eq (char-after) ?*) | ||
| 800 | (forward-char) | ||
| 801 | (forward-comment most-positive-fixnum)) | ||
| 799 | (when (looking-at js--name-re) | 802 | (when (looking-at js--name-re) |
| 800 | (setq name (match-string-no-properties 0)) | 803 | (setq name (match-string-no-properties 0)) |
| 801 | (goto-char (match-end 0))) | 804 | (goto-char (match-end 0))) |
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 41b70c7eff2..b822619f783 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el | |||
| @@ -434,7 +434,8 @@ GROUP is a string for decoration purposes and XREF is an | |||
| 434 | (list 'xref-location location | 434 | (list 'xref-location location |
| 435 | 'face 'font-lock-keyword-face | 435 | 'face 'font-lock-keyword-face |
| 436 | 'mouse-face 'highlight | 436 | 'mouse-face 'highlight |
| 437 | 'keymap xref--button-map) | 437 | 'keymap xref--button-map |
| 438 | 'help-echo "mouse-2: display, RET or mouse-1: navigate") | ||
| 438 | description)) | 439 | description)) |
| 439 | (when (or more1 more2) | 440 | (when (or more1 more2) |
| 440 | (insert "\n"))))) | 441 | (insert "\n"))))) |