diff options
| author | Dmitry Gutov | 2023-06-03 15:00:41 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2023-06-03 15:00:41 +0300 |
| commit | 583ba1db7ee31349eeef94f9dcb6e43f860a32eb (patch) | |
| tree | f6b73ba9e89a21b7decfb5ecc187baa80666efca | |
| parent | a3459a28e4191b90688fdd0b58d1972af303bc2a (diff) | |
| download | emacs-583ba1db7ee31349eeef94f9dcb6e43f860a32eb.tar.gz emacs-583ba1db7ee31349eeef94f9dcb6e43f860a32eb.zip | |
typescript-ts-mode: Add a rule for function_signature
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--font-lock-settings):
Add a rule for function_signature (bug#63867)
| -rw-r--r-- | lisp/progmodes/typescript-ts-mode.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/typescript-ts-mode.el b/lisp/progmodes/typescript-ts-mode.el index e30eb880266..09e04f0cd0e 100644 --- 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'." | |||
| 173 | :feature 'declaration | 173 | :feature 'declaration |
| 174 | `((function | 174 | `((function |
| 175 | name: (identifier) @font-lock-function-name-face) | 175 | name: (identifier) @font-lock-function-name-face) |
| 176 | |||
| 177 | (function_declaration | 176 | (function_declaration |
| 178 | name: (identifier) @font-lock-function-name-face) | 177 | name: (identifier) @font-lock-function-name-face) |
| 178 | (function_signature | ||
| 179 | name: (identifier) @font-lock-function-name-face) | ||
| 179 | 180 | ||
| 180 | (method_definition | 181 | (method_definition |
| 181 | name: (property_identifier) @font-lock-function-name-face) | 182 | name: (property_identifier) @font-lock-function-name-face) |