Skip to content

Commit

Permalink
Merge pull request scopatz#330 from DanteFalzone0/master
Browse files Browse the repository at this point in the history
Added highlighting for printf format specifiers
  • Loading branch information
scopatz authored Aug 27, 2020
2 parents b20013a + 56b1d0a commit bee93b3
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 bee93b3

Please sign in to comment.