summaryrefslogtreecommitdiffstats
path: root/src/gram.y
diff options
context:
space:
mode:
authorV. Guruprasad <prasad@inspiredresearch.com>2020-08-24 18:34:58 -0400
committerV. Guruprasad <prasad@inspiredresearch.com>2020-08-24 18:41:42 -0400
commitac859e8df2239bf25f934b76baf9923649f5ff8f (patch)
treea405ac1e176d9a719e8b674d1e615a8b2f9e2787 /src/gram.y
parentcd566d5d5539bb92456498d4fd4e1308e944229e (diff)
make filename display configurable
Diffstat (limited to 'src/gram.y')
-rwxr-xr-xsrc/gram.y8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gram.y b/src/gram.y
index e6b0a66..0806441 100755
--- a/src/gram.y
+++ b/src/gram.y
@@ -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); }