Variable: toml-ts-mode--font-lock-settings
toml-ts-mode--font-lock-settings is a variable defined in
toml-ts-mode.el.gz.
Value
((((comment) @font-lock-comment-face) t comment nil nil toml)
(((boolean) @font-lock-constant-face) t constant nil nil toml)
(((["="]) @font-lock-delimiter-face) t delimiter nil nil toml)
(([(integer) (float) (local_date) (local_date_time) (local_time)]
@font-lock-number-face)
t number nil nil toml)
(((string) @font-lock-string-face) t string nil nil toml)
(((escape_sequence) @font-lock-escape-face) t escape-sequence t nil
toml)
(((bare_key) @font-lock-property-use-face (quoted_key)
@font-lock-property-use-face
(table
("[" @font-lock-bracket-face (_) @font-lock-type-face "]"
@font-lock-bracket-face))
(table_array_element
("[[" @font-lock-bracket-face (_) @font-lock-type-face "]]"
@font-lock-bracket-face))
(table (quoted_key) @font-lock-type-face)
(table (dotted_key (quoted_key)) @font-lock-type-face))
t pair t nil toml)
(((ERROR) @font-lock-warning-face) t error t nil toml))
Documentation
Font-lock settings for TOML.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/toml-ts-mode.el.gz
(defvar toml-ts-mode--font-lock-settings
(treesit-font-lock-rules
:language 'toml
:feature 'comment
'((comment) @font-lock-comment-face)
:language 'toml
:feature 'constant
'((boolean) @font-lock-constant-face)
:language 'toml
:feature 'delimiter
'((["="]) @font-lock-delimiter-face)
:language 'toml
:feature 'number
'([(integer) (float) (local_date) (local_date_time) (local_time)]
@font-lock-number-face)
:language 'toml
:feature 'string
'((string) @font-lock-string-face)
:language 'toml
:feature 'escape-sequence
:override t
'((escape_sequence) @font-lock-escape-face)
:language 'toml
:feature 'pair
:override t ; Needed for overriding string face on keys.
'((bare_key) @font-lock-property-use-face
(quoted_key) @font-lock-property-use-face
(table ("[" @font-lock-bracket-face
(_) @font-lock-type-face
"]" @font-lock-bracket-face))
(table_array_element ("[[" @font-lock-bracket-face
(_) @font-lock-type-face
"]]" @font-lock-bracket-face))
(table (quoted_key) @font-lock-type-face)
(table (dotted_key (quoted_key)) @font-lock-type-face))
:language 'toml
:feature 'error
:override t
'((ERROR) @font-lock-warning-face))
"Font-lock settings for TOML.")