diff options
author | Eli Zaretskii <eliz@gnu.org> | 2023-05-06 15:15:42 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2023-05-06 15:15:42 +0300 |
commit | 71337843036d6a6b53aedcf898febd1b591b5f41 (patch) | |
tree | 0ee600fcb908a3879984e7fa2111b41f00137972 | |
parent | 15e06260ae8f622370b935920b2618cfff4cc8e7 (diff) | |
download | emacs-71337843036d6a6b53aedcf898febd1b591b5f41.tar.gz |
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)
-rw-r--r-- | lisp/progmodes/c-ts-mode.el | 4 |
1 files 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"))) |