(ruby-ts--font-lock-settings): Improve highlighting in patterns
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--font-lock-settings): Improve highlighting in patterns: highlight values not keys as variable in the usual case; highlight keys when no value; highlight the "as pattern" variable.
This commit is contained in:
parent
614f8c431d
commit
ee3e8d3f92
1 changed files with 6 additions and 1 deletions
|
@ -304,7 +304,12 @@ values of OVERRIDE"
|
||||||
(array_pattern
|
(array_pattern
|
||||||
(identifier) @font-lock-variable-name-face)
|
(identifier) @font-lock-variable-name-face)
|
||||||
(keyword_pattern
|
(keyword_pattern
|
||||||
key: (hash_key_symbol) @font-lock-variable-name-face)
|
value: (identifier) @font-lock-variable-name-face)
|
||||||
|
(keyword_pattern
|
||||||
|
key: (hash_key_symbol) @font-lock-variable-name-face
|
||||||
|
!value)
|
||||||
|
(as_pattern
|
||||||
|
name: (identifier) @font-lock-variable-name-face)
|
||||||
(in_clause
|
(in_clause
|
||||||
pattern: (identifier) @font-lock-variable-name-face))
|
pattern: (identifier) @font-lock-variable-name-face))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue