From 71337843036d6a6b53aedcf898febd1b591b5f41 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 6 May 2023 15:15:42 +0300 Subject: [PATCH] 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"))) -- 2.39.2