diff options
author | V. Guruprasad <prasad@inspiredresearch.com> | 2020-08-24 18:34:58 -0400 |
---|---|---|
committer | V. Guruprasad <prasad@inspiredresearch.com> | 2020-08-24 18:41:42 -0400 |
commit | ac859e8df2239bf25f934b76baf9923649f5ff8f (patch) | |
tree | a405ac1e176d9a719e8b674d1e615a8b2f9e2787 /src/gram.y | |
parent | cd566d5d5539bb92456498d4fd4e1308e944229e (diff) |
make filename display configurable
Diffstat (limited to 'src/gram.y')
-rwxr-xr-x | src/gram.y | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -234,6 +234,7 @@ token S_YANKCOL %token K_NONUMERIC_DECIMAL %token K_NUMERIC_ZERO %token K_NONUMERIC_ZERO +%token K_FILENAME_IN_STATUS %token K_OVERLAP %token K_NOOVERLAP %token K_TRUNCATE @@ -1045,10 +1046,15 @@ setlist : /* things that you can 'set' */ setitem : - K_OVERLAP '=' NUMBER { if ($3 == 0) parse_str(user_conf_d, "overlap=0", TRUE); + K_FILENAME_IN_STATUS '=' NUMBER { if ($3 == 0) parse_str(user_conf_d, "filename_in_status=0", TRUE); + else parse_str(user_conf_d, "filename_in_status=1", TRUE); } + | K_FILENAME_IN_STATUS { parse_str(user_conf_d, "filename_in_status=1", TRUE); } + + | K_OVERLAP '=' NUMBER { if ($3 == 0) parse_str(user_conf_d, "overlap=0", TRUE); else parse_str(user_conf_d, "overlap=1", TRUE); } | K_OVERLAP { parse_str(user_conf_d, "overlap=1", TRUE); } | K_NOOVERLAP { parse_str(user_conf_d, "overlap=0", TRUE); } + | K_TRUNCATE '=' NUMBER { if ($3 == 0) parse_str(user_conf_d, "truncate=0", TRUE); else parse_str(user_conf_d, "truncate=1", TRUE); } | K_TRUNCATE { parse_str(user_conf_d, "truncate=1", TRUE); } |