mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Fix highlighting of variable-declarations in typescript-ts-mode
(bug#60546) - Highlight variable declarations in catch-clauses. - Remove highlighting of variables where not declarations (improve consistency with other *-ts-modes). * lisp/progmodes/typescript-ts-mode.el: (typescript-ts-mode--font-lock-settings): See above.
This commit is contained in:
parent
73168793c0
commit
2cdd75a18f
1 changed files with 5 additions and 14 deletions
|
|
@ -194,7 +194,10 @@ Argument LANGUAGE is either `typescript' or `tsx'."
|
||||||
name: (array_pattern
|
name: (array_pattern
|
||||||
(identifier)
|
(identifier)
|
||||||
(identifier) @font-lock-function-name-face)
|
(identifier) @font-lock-function-name-face)
|
||||||
value: (array (number) (function))))
|
value: (array (number) (function)))
|
||||||
|
|
||||||
|
(catch_clause
|
||||||
|
parameter: (identifier) @font-lock-variable-name-face))
|
||||||
|
|
||||||
:language language
|
:language language
|
||||||
:override t
|
:override t
|
||||||
|
|
@ -223,17 +226,7 @@ Argument LANGUAGE is either `typescript' or `tsx'."
|
||||||
parameters:
|
parameters:
|
||||||
[(_ (identifier) @font-lock-variable-name-face)
|
[(_ (identifier) @font-lock-variable-name-face)
|
||||||
(_ (_ (identifier) @font-lock-variable-name-face))
|
(_ (_ (identifier) @font-lock-variable-name-face))
|
||||||
(_ (_ (_ (identifier) @font-lock-variable-name-face)))])
|
(_ (_ (_ (identifier) @font-lock-variable-name-face)))]))
|
||||||
|
|
||||||
(return_statement (identifier) @font-lock-variable-name-face)
|
|
||||||
|
|
||||||
(binary_expression left: (identifier) @font-lock-variable-name-face)
|
|
||||||
(binary_expression right: (identifier) @font-lock-variable-name-face)
|
|
||||||
|
|
||||||
(arguments (identifier) @font-lock-variable-name-face)
|
|
||||||
|
|
||||||
(parenthesized_expression (identifier) @font-lock-variable-name-face)
|
|
||||||
(parenthesized_expression (_ (identifier) @font-lock-variable-name-face)))
|
|
||||||
|
|
||||||
:language language
|
:language language
|
||||||
:override t
|
:override t
|
||||||
|
|
@ -245,8 +238,6 @@ Argument LANGUAGE is either `typescript' or `tsx'."
|
||||||
|
|
||||||
(pair key: (property_identifier) @font-lock-variable-name-face)
|
(pair key: (property_identifier) @font-lock-variable-name-face)
|
||||||
|
|
||||||
(pair value: (identifier) @font-lock-variable-name-face)
|
|
||||||
|
|
||||||
((shorthand_property_identifier) @font-lock-property-face)
|
((shorthand_property_identifier) @font-lock-property-face)
|
||||||
|
|
||||||
((shorthand_property_identifier_pattern)
|
((shorthand_property_identifier_pattern)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue