[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/tree-sitter 8175497cca 5/5: ; Enable highlighting error in c-ts-
From: |
Yuan Fu |
Subject: |
feature/tree-sitter 8175497cca 5/5: ; Enable highlighting error in c-ts-mode--base-mode |
Date: |
Tue, 15 Nov 2022 05:49:26 -0500 (EST) |
branch: feature/tree-sitter
commit 8175497ccac1b3afc2208260be91423e2bca2d25
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>
; Enable highlighting error in c-ts-mode--base-mode
I expect this to be turned off by default. but turn this on for
demonstration for now.
* lisp/progmodes/c-ts-mode.el (c-ts-mode--base-mode): Enable error.
---
lisp/progmodes/c-ts-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el
index bb0db0e1e7..8d18c23da9 100644
--- a/lisp/progmodes/c-ts-mode.el
+++ b/lisp/progmodes/c-ts-mode.el
@@ -420,7 +420,7 @@ the subtrees."
(setq-local treesit-font-lock-feature-list
'((comment preprocessor operator constant string literal keyword)
(type definition expression statement)
- ())))
+ (error))))
;;;###autoload
(define-derived-mode c-ts-mode c-ts-mode--base-mode "C"