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:
Yuan Fu 2023-09-08 09:39:54 -07:00
parent 98f98c66e0
commit a1b38cf72a
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View file

@ -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)