]> git.sur5r.net Git - i3/i3/blobdiff - src/cfgparse.y
Add "instance" to matching criteria
[i3/i3] / src / cfgparse.y
index 38f306e9ef24e09be921a61ad8790688b0e54148..59b22c6c9ef15a9188e8e9f35fb4b97ece1772e8 100644 (file)
@@ -547,6 +547,7 @@ void parse_file(const char *f) {
 
 %token              TOK_MARK            "mark"
 %token              TOK_CLASS           "class"
+%token              TOK_INSTANCE        "instance"
 %token              TOK_ID              "id"
 %token              TOK_CON_ID          "con_id"
 %token              TOK_TITLE           "title"
@@ -694,6 +695,11 @@ criterion:
         printf("criteria: class = %s\n", $3);
         current_match.class = $3;
     }
+    | TOK_INSTANCE '=' STR
+    {
+        printf("criteria: instance = %s\n", $3);
+        current_match.instance = $3;
+    }
     | TOK_CON_ID '=' STR
     {
         printf("criteria: id = %s\n", $3);