Skip to content

Commit 632a00a

Browse files
committed
enh(C): Add linter to check for warnings
1 parent 1dfbb9d commit 632a00a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

c.nanorc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
##
33
syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" "\.ino$"
44
magic "^(C|C\+\+) (source|program)"
5+
linter "g++ -fshow-column -Wall"
56
comment "//"
7+
68
color brightred "\<[A-Z_][0-9A-Z_]+\>"
79
color green "\<(float|double|bool|char|wchar_t|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>"
810
color green "\<((s?size)|(char(16|32))|((u_?)?int(_fast|_least)?(8|16|32|64))|u?int(max|ptr))_t\>"

0 commit comments

Comments
 (0)