From 10a8569c2ddfade9a5f94800d088261666a11876 Mon Sep 17 00:00:00 2001 From: davidhcefx Date: Wed, 12 Apr 2023 15:15:33 +0800 Subject: [PATCH] [C] Add highlightings for "TODO" and g++ linter --- c.nanorc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/c.nanorc b/c.nanorc index 04ce8e7..e8be7a4 100644 --- a/c.nanorc +++ b/c.nanorc @@ -2,6 +2,9 @@ ## syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" "\.ino$" magic "^(C|C\+\+) (source|program)" + +linter g++ -fshow-column + comment "//" color brightred "\<[A-Z_][0-9A-Z_]+\>" color green "\<(float|double|bool|char|wchar_t|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>" @@ -50,3 +53,6 @@ color magenta "@author.*" ## Trailing whitespace color ,green "[[:space:]]+$" + +## Reminders +color brightwhite,yellow "\<(FIXME|TODO|XXX)\>"