From 3f0e42c13ba13d87ebf27d8f77c369978b11c153 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 15 Aug 2017 11:00:31 +0200 Subject: [PATCH] syntax: c: give labels some color too --- syntax/c.nanorc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/syntax/c.nanorc b/syntax/c.nanorc index 01053bf9..fa97dc70 100644 --- a/syntax/c.nanorc +++ b/syntax/c.nanorc @@ -4,7 +4,11 @@ syntax "c" "\.(c(c|pp|xx|\+\+)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" magic "(ASCII|UTF-8 Unicode) C(\+\+)? program text" comment "//" +# Constants. color brightred "\<[A-Z_][0-9A-Z_]+\>" +# Labels. +color brightmagenta "^[[:space:]]*[A-Z_a-z]+:[[:space:]]*$" + color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|auto|static|const|struct|union|typedef|extern|(un)?signed|inline)\>" color green "\<((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\>" color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|override|using|mutable|volatile|register|explicit)\>"