From 56b1d0af8737b5fcf6ce07e028042e1e0ce76f51 Mon Sep 17 00:00:00 2001 From: Dante Falzone <48266179+DanteFalzone0@users.noreply.github.com> Date: Thu, 27 Aug 2020 09:44:59 -0500 Subject: [PATCH] Added highlighting for printf format specifiers --- c.nanorc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/c.nanorc b/c.nanorc index f99bf8f..d05f482 100644 --- a/c.nanorc +++ b/c.nanorc @@ -36,6 +36,9 @@ color cyan "<[^= ]*>" ""(\\.|[^"])*"" ## This string is VERY resource intensive! #color cyan start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" +## printf-family format specifiers +color yellow "%(\#|(0-+))?(hh|h|l|ll|q|L|j|z|Z|t)?[A-Za-z]" "%%" + ## Comment highlighting color brightblue "//.*" color brightblue start="/\*" end="\*/"