projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3459a2
)
typescript-ts-mode: Add a rule for function_signature
author
Dmitry Gutov
<dmitry@gutov.dev>
Sat, 3 Jun 2023 12:00:41 +0000
(15:00 +0300)
committer
Dmitry Gutov
<dmitry@gutov.dev>
Sat, 3 Jun 2023 12:00:41 +0000
(15:00 +0300)
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--font-lock-settings):
Add a rule for function_signature (bug#63867)
lisp/progmodes/typescript-ts-mode.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/typescript-ts-mode.el
b/lisp/progmodes/typescript-ts-mode.el
index e30eb88026696eb12510a26a75db54ce6c4f4728..09e04f0cd0e0326cf2497a804faacaa4f3017c67 100644
(file)
--- a/
lisp/progmodes/typescript-ts-mode.el
+++ b/
lisp/progmodes/typescript-ts-mode.el
@@
-173,9
+173,10
@@
Argument LANGUAGE is either `typescript' or `tsx'."
:feature 'declaration
`((function
name: (identifier) @font-lock-function-name-face)
-
(function_declaration
name: (identifier) @font-lock-function-name-face)
+ (function_signature
+ name: (identifier) @font-lock-function-name-face)
(method_definition
name: (property_identifier) @font-lock-function-name-face)