From 0a04c666fcfacd111442d6cb87167c4c3510fb2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Can=20Kad=C4=B1o=C4=9Flu?= Date: Wed, 11 Sep 2024 14:14:46 +0300 Subject: [PATCH] Added syntax higlighting for pragma, true, and false in c and c++. --- c.nanorc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/c.nanorc b/c.nanorc index d05f482..08b4246 100644 --- a/c.nanorc +++ b/c.nanorc @@ -13,8 +13,9 @@ color green "\<((const|dynamic|reinterpret|static)_cast)\>" color green "\<(alignas|alignof|asm|auto|compl|concept|constexpr|decltype|export|noexcept|nullptr|requires|static_assert|thread_local|typeid|override|final)\>" color green "\<(and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\>" color brightmagenta "\<(goto|continue|break|return)\>" -color brightcyan "^[[:space:]]*#[[:space:]]*(define|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)" +color brightcyan "^[[:space:]]*#[[:space:]]*(pragma|define|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)" color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'" +color orange "\<(true|false)\>" ## ## GCC builtins