From: Eli Zaretskii Date: Sat, 6 May 2023 12:15:42 +0000 (+0300) Subject: Teach c-ts-mode about the 'restrict' keyword X-Git-Tag: emacs-29.0.91~38 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=71337843036d6a6b53aedcf898febd1b591b5f41;p=emacs.git 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) --- 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")))