Subject: [PATCH] Add support for C99 inline to c-ts-mode

From: Daniel Martín <[email-masked]>
Date: Wed, 30 Nov 2022 20:02:18 +0100

Tags: patch

The attached patch adds syntax highlighting support for the C99 inline
keyword.

>From f9e1c6533ba754aed0fa644f29e6b4fba7491e51 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Mart=C3=ADn?= <[email-masked]>
Date: Wed, 30 Nov 2022 19:58:42 +0100
Subject: [PATCH] Add inline to c-ts-mode--keywords

* lisp/progmodes/c-ts-mode.el (c-ts-mode--keywords): Add "inline", a
keyword available since C99 to define inline functions in C.
---
 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 a79dabcd31..2bebc1652d 100644
--- a/lisp/progmodes/c-ts-mode.el
+++ b/lisp/progmodes/c-ts-mode.el
@@ -168,7 +168,7 @@ c-ts-mode--keywords
   (let ((c-keywords
          '("break" "case" "const" "continue"
            "default" "do" "else" "enum"
-           "extern" "for" "goto" "if"
+           "extern" "for" "goto" "if" "inline"
            "long" "register" "return" "short"
            "signed" "sizeof" "static" "struct"
            "switch" "typedef" "union" "unsigned"
-- 
2.34.1