aboutsummaryrefslogtreecommitdiffstats
path: root/src/parser.rs
diff options
context:
space:
mode:
authorTeddy Wing2018-10-28 00:36:49 +0200
committerTeddy Wing2018-10-28 00:36:49 +0200
commitcc36984a6ba537398ac588f8f37482c4979c7d70 (patch)
tree88a8910e51d49c1278a516aa93348e5b19729704 /src/parser.rs
parent030b5a346f71b6d8d3b107a3fbf55a7699ec00b7 (diff)
downloaddome-key-map-cc36984a6ba537398ac588f8f37482c4979c7d70.tar.bz2
MapGroup::parse_action(): Accept `MapKind::Command` variant handler
I had written that TODO when I thought we were going to be parsing `Action::Command`s. I ended up completely getting rid of `Action::Command`, and putting commands in `Action::String`s instead.
Diffstat (limited to 'src/parser.rs')
-rw-r--r--src/parser.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/parser.rs b/src/parser.rs
index 2be8c60..2644e0a 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -193,8 +193,9 @@ impl MapGroup {
map_action.action = action;
}
},
- // TODO: Write when we have a command action parser
- MapKind::Command => {},
+
+ // Commands don't get parsed. They remain `Action::String`s.
+ MapKind::Command => (),
}
}
}