Skip to content

Commit e0875a2

Browse files
committed
fix(fontlock): fontify parameters in multiline arglist
1 parent f2de3f4 commit e0875a2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

typescript-mode.el

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1859,11 +1859,12 @@ and searches for the next token to be highlighted."
18591859
,(list
18601860
(concat
18611861
"\\_<function\\_>\\(\\s-+" typescript--name-re "\\)?\\s-*\\(<.*>\\)?\\s-*(\\s-*"
1862-
typescript--name-start-re)
1863-
(list (concat "\\(" typescript--name-re "\\)\\(\\s-*).*\\)?")
1864-
'(backward-char)
1865-
'(end-of-line)
1866-
'(1 font-lock-variable-name-face)))
1862+
"\\(?:$\\|" typescript--name-start-re "\\)")
1863+
`(,(concat "\\(" typescript--name-re "\\)\\(\\s-*).*\\)?")
1864+
(prog1 (save-excursion (re-search-forward ")" nil t))
1865+
(backward-char))
1866+
nil
1867+
(1 font-lock-variable-name-face)))
18671868

18681869
;; continued formal parameter list
18691870
,(list

0 commit comments

Comments
 (0)