Extract c-ts-mode--feature-list out
* lisp/progmodes/c-ts-mode.el (c-ts-mode--feature-list): New variable.
This commit is contained in:
parent
98f98c66e0
commit
a1b38cf72a
1 changed files with 8 additions and 4 deletions
|
@ -496,6 +496,13 @@ NODE should be a labeled_statement. PARENT is its parent."
|
|||
|
||||
;;; Font-lock
|
||||
|
||||
(defvar c-ts-mode--feature-list
|
||||
'(( comment definition)
|
||||
( keyword preprocessor string type)
|
||||
( assignment constant escape-sequence label literal)
|
||||
( bracket delimiter error function operator property variable))
|
||||
"`treesit-font-lock-feature-list' for `c-ts-mode'.")
|
||||
|
||||
(defvar c-ts-mode--preproc-keywords
|
||||
'("#define" "#if" "#ifdef" "#ifndef"
|
||||
"#else" "#elif" "#endif" "#include")
|
||||
|
@ -1214,10 +1221,7 @@ BEG and END are described in `treesit-range-rules'."
|
|||
c-ts-mode--defun-for-class-in-imenu-p nil))))
|
||||
|
||||
(setq-local treesit-font-lock-feature-list
|
||||
'(( comment definition)
|
||||
( keyword preprocessor string type)
|
||||
( assignment constant escape-sequence label literal)
|
||||
( bracket delimiter error function operator property variable))))
|
||||
c-ts-mode-feature-list))
|
||||
|
||||
(defvar treesit-load-name-override-list)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue