We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2de3f4 commit e0875a2Copy full SHA for e0875a2
typescript-mode.el
@@ -1859,11 +1859,12 @@ and searches for the next token to be highlighted."
1859
,(list
1860
(concat
1861
"\\_<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)))
+ "\\(?:$\\|" typescript--name-start-re "\\)")
+ `(,(concat "\\(" typescript--name-re "\\)\\(\\s-*).*\\)?")
+ (prog1 (save-excursion (re-search-forward ")" nil t))
+ (backward-char))
+ nil
1867
+ (1 font-lock-variable-name-face)))
1868
1869
;; continued formal parameter list
1870
0 commit comments