mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-11-30 02:13:36 +03:00
finish mapDecl parser
This commit is contained in:
parent
46e93af4fe
commit
cf3d3c4b3a
@ -168,11 +168,11 @@ configLexer = P.makeTokenParser configLanguage
|
||||
mapDecl = do
|
||||
void $ string "map"
|
||||
P.whiteSpace configLexer
|
||||
termIdent <- (char "_" >> return Nothing) <|>
|
||||
termIdent <- (char "_" >> return Nothing) <|> (Just <$> P.stringLiteral configLexer)
|
||||
bytes <- P.stringLiteral configLexer
|
||||
key <- parseKey
|
||||
modifiers <- parseModifiers
|
||||
lift $ tell $ def { inputOverrides = [(bytes, EvKey key modifiers)] }
|
||||
lift $ tell $ def { inputOverrides = [(termIdent, bytes, EvKey key modifiers)] }
|
||||
|
||||
-- TODO: Generated by a vim macro. There is a better way here. Derive parser? Use Read
|
||||
-- instance?
|
||||
|
Loading…
Reference in New Issue
Block a user