diff options
author | Blaž Hrastnik | 2020-09-10 04:55:18 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2020-09-10 09:19:59 +0000 |
commit | b647c7a773fb3323ccc884f4d0d4ce25c3e8aea8 (patch) | |
tree | 3ad4ef86e92c2482b3dcf14aaca4bfb74038678e /helix-term/src/keymap.rs | |
parent | 25b3f98e3d200ae7f0f08b10be50552359502494 (diff) |
tree-sitter based syntax highlighting draft
Diffstat (limited to 'helix-term/src/keymap.rs')
-rw-r--r-- | helix-term/src/keymap.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs index 4b176b61..148611e3 100644 --- a/helix-term/src/keymap.rs +++ b/helix-term/src/keymap.rs @@ -79,23 +79,6 @@ use std::collections::HashMap; // } // } -macro_rules! hashmap { - (@single $($x:tt)*) => (()); - (@count $($rest:expr),*) => (<[()]>::len(&[$(hashmap!(@single $rest)),*])); - - ($($key:expr => $value:expr,)+) => { hashmap!($($key => $value),+) }; - ($($key:expr => $value:expr),*) => { - { - let _cap = hashmap!(@count $($key),*); - let mut _map = ::std::collections::HashMap::with_capacity(_cap); - $( - let _ = _map.insert($key, $value); - )* - _map - } - }; -} - type Keymap = HashMap<Key, Command>; pub fn default() -> Keymap { |