diff options
Diffstat (limited to 'src/gram.y')
-rwxr-xr-x | src/gram.y | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -236,6 +236,8 @@ token S_YANKCOL %token K_NONUMERIC_ZERO %token K_OVERLAP %token K_NOOVERLAP +%token K_TRUNCATE +%token K_NOTRUNCATE %token K_QUIT_AFTERLOAD %token K_NOQUIT_AFTERLOAD %token K_XLSX_READFORMULAS @@ -1047,6 +1049,10 @@ setitem : 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); } + | K_NOTRUNCATE { parse_str(user_conf_d, "truncate=0", TRUE); } | K_AUTOBACKUP '=' NUMBER { char cmd[MAXCMD]; sprintf(cmd, "autobackup=%d", $3); |