[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 71337843036: Teach c-ts-mode about the 'restrict' keyword
From: |
Eli Zaretskii |
Subject: |
emacs-29 71337843036: Teach c-ts-mode about the 'restrict' keyword |
Date: |
Sat, 6 May 2023 08:16:19 -0400 (EDT) |
branch: emacs-29
commit 71337843036d6a6b53aedcf898febd1b591b5f41
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
Teach c-ts-mode about the 'restrict' keyword
* lisp/progmodes/c-ts-mode.el (c-ts-mode--keywords): Add
"restrict" and "_Atomic" type qualifiers. (Bug#63323)
---
lisp/progmodes/c-ts-mode.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el
index 1186bd5b8df..b042782efa7 100644
--- a/lisp/progmodes/c-ts-mode.el
+++ b/lisp/progmodes/c-ts-mode.el
@@ -504,10 +504,10 @@ NODE should be a labeled_statement. PARENT is its
parent."
"C/C++ keywords for tree-sitter font-locking.
MODE is either `c' or `cpp'."
(let ((c-keywords
- '("break" "case" "const" "continue"
+ '("_Atomic" "break" "case" "const" "continue"
"default" "do" "else" "enum"
"extern" "for" "goto" "if" "inline"
- "register" "return"
+ "register" "restrict" "return"
"sizeof" "static" "struct"
"switch" "typedef" "union"
"volatile" "while")))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 71337843036: Teach c-ts-mode about the 'restrict' keyword,
Eli Zaretskii <=