Skip to content

Commit e6c3a85

Browse files
committed
fix: improve record faces
1 parent 9a273d9 commit e6c3a85

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

erlang-ts.el

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,10 @@ FUNC with ARGS will be called if `erlang-ts-mode' is not active."
158158
(:pred erlang-ts-in-type-context-p @font-lock-type-face))
159159
(type_name name: (atom) @font-lock-type-face)
160160
(export_type_attribute types: (fa fun: (atom) @font-lock-type-face))
161-
(record_decl name: (atom) @font-lock-type-face
162-
(record_field name: (atom) @font-lock-property-name-face))
163-
;; for records without fields e.g
164-
;; `-record(name, {}).`
165161
(record_decl name: (atom) @font-lock-type-face)
166-
(record_name name: (atom) @font-lock-type-face))
162+
(record_name name: (atom) @font-lock-type-face)
163+
(record_field name: (atom) @font-lock-constant-face)
164+
(record_field_name name: (atom) @font-lock-constant-face))
167165

168166
:language 'erlang
169167
:feature 'definition

0 commit comments

Comments
 (0)