Skip to content

Commit

Permalink
Do not spill colour from the -o' option in gcc'
Browse files Browse the repository at this point in the history
The `-o' rule for gcc was a bit too greedy, matching everything
until the *last* word boundary.

Simply match non-space chars instead.
  • Loading branch information
em- committed Mar 17, 2013
1 parent 02079fc commit fe35017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conf.gcc
Expand Up @@ -20,7 +20,7 @@ regexp=\-O\d
colours=green
.........
# -o
regexp=\-o\s.+\b
regexp=\-o\s[^\s]+
colours=yellow
.........
# warning and error won't work, unless you redirect also
Expand Down

0 comments on commit fe35017

Please sign in to comment.