aboutsummaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2020-10-01 11:47:46 +0200
committerOmar Polo <op@omarpolo.com>2020-10-01 11:52:58 +0200
commit7d3286caede96d7b813eff7dc3691d683d0f9bf9 (patch)
tree617ed265767606edba64468a5b08b10a8093a827 /parse.y
parente0041ee5139dcd4173fe8f47ff691c0d41951341 (diff)
downloadstar-platinum-7d3286caede96d7b813eff7dc3691d683d0f9bf9.tar.gz
star-platinum-7d3286caede96d7b813eff7dc3691d683d0f9bf9.tar.bz2
reworked the tokenizer -- breaking change
The parser was pratically rewritten. Strings now are required to be quoted with single quotes, while keys (still) requires double quotes. In addition, the * is no longer a valid match argument: to match on everything you need to use the special keyword `all'. match all # before was `match *' on "C-a" do "<Home>" # unchanged match class 'Firefox' # before was `match class Firefox' # ...
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index 32657d4..68bb6d1 100644
--- a/parse.y
+++ b/parse.y
@@ -41,7 +41,7 @@
struct group *group;
}
-%token TMATCH TCLASS
+%token TMATCH TCLASS TALL
%token TON TDO
%token TTOGGLE TACTIVATE TDEACTIVATE TIGNORE TEXEC
%token TERR
@@ -69,7 +69,7 @@ matches : /* empty */ { $$ = NULL; }
| matches match '\n' { $2->next = $1; $$ = $2; }
;
-match : TMATCH '*' { $$ = new_match(MANY, NULL); }
+match : TMATCH TALL { $$ = new_match(MANY, NULL); }
| TMATCH TCLASS TSTRING { $$ = new_match(MCLASS, $3); }
;