Skip to content

Commit

Permalink
Added highlighting for printf format specifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
willow385 committed Aug 27, 2020
1 parent b20013a commit 56b1d0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions c.nanorc
Original file line number Diff line number Diff line change
Expand Up @@ -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="\*/"
Expand Down

0 comments on commit 56b1d0a

Please sign in to comment.