--- nano/doc/syntax/c.nanorc 2015-12-30 14:06:23.252569068 -0500 +++ c-working.nanorc 2016-02-04 21:27:19.564751584 -0500 @@ -18,17 +18,14 @@ # Strings. In general you will want your strings and comments to come last, # because highlighting rules are applied in the order they are read in. -color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" -# Multiline strings. This regex is VERY resource intensive, -# and sometimes colours things that shouldn't be coloured. -###color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" +color brightyellow ""(\\"|[^"])*"" "<[^[:blank:]=]+>" # Comments. color brightblue "//.*" color brightblue start="/\*" end="\*/" # Reminders. -color ,yellow "(FIXME|TODO|XXX)" +color ,yellow "(FIXME|TODO|XXX)(!|\?|\.)*" # Trailing whitespace. color ,green "[[:space:]]+$"