* bug#59729: [PATCH] Add support for C99 inline to c-ts-mode
[not found] <m1h6ygqn9h.fsf.ref@yahoo.es>
@ 2022-11-30 19:02 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-01 1:37 ` Yuan Fu
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-11-30 19:02 UTC (permalink / raw)
To: 59729
[-- Attachment #1: Type: text/plain, Size: 95 bytes --]
Tags: patch
The attached patch adds syntax highlighting support for the C99 inline
keyword.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Add-inline-to-c-ts-mode-keywords.patch --]
[-- Type: text/patch, Size: 1006 bytes --]
From f9e1c6533ba754aed0fa644f29e6b4fba7491e51 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Mart=C3=ADn?= <mardani29@yahoo.es>
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#59729: [PATCH] Add support for C99 inline to c-ts-mode
2022-11-30 19:02 ` bug#59729: [PATCH] Add support for C99 inline to c-ts-mode Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-12-01 1:37 ` Yuan Fu
0 siblings, 0 replies; 2+ messages in thread
From: Yuan Fu @ 2022-12-01 1:37 UTC (permalink / raw)
To: Daniel Martín; +Cc: 59729
Daniel Martín <mardani29@yahoo.es> writes:
> Tags: patch
>
>
> The attached patch adds syntax highlighting support for the C99 inline
> keyword.
Thanks! Merged.
Yuan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-12-01 1:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <m1h6ygqn9h.fsf.ref@yahoo.es>
2022-11-30 19:02 ` bug#59729: [PATCH] Add support for C99 inline to c-ts-mode Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-01 1:37 ` Yuan Fu
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.