X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=grep.h;h=a67005de62d1442e7ba6a8dc27320225a0d55819;hb=70af4e9bef988a98061237c78cbd0a71d8de48bb;hp=5102ce335d29811dd448e173f2e90e8d03b5f011;hpb=ba743d1b0ce0b44c797c0de06c9db2781e4d1fdd;p=git.git diff --git a/grep.h b/grep.h index 5102ce335..a67005de6 100644 --- a/grep.h +++ b/grep.h @@ -1,5 +1,6 @@ #ifndef GREP_H #define GREP_H +#include "color.h" enum grep_pat_token { GREP_PATTERN, @@ -31,6 +32,7 @@ struct grep_pat { enum grep_header_field field; regex_t regexp; unsigned fixed:1; + unsigned word_regexp:1; }; enum grep_expr_node { @@ -76,6 +78,9 @@ struct grep_opt { unsigned relative:1; unsigned pathname:1; unsigned null_following_name:1; + int color; + char color_match[COLOR_MAXLEN]; + const char *color_external; int regflags; unsigned pre_context; unsigned post_context;