Maybe this should be stricter, only allowing it at the end.
]
command' = string "command" >> ws >> CommandAnnotation <$> commandName <*> commandParameters
- commandName = char ':' *> many1 alphaNum <* optional ws
+ commandName = char ':' *> many1 (alphaNum <|> char '!') <* optional ws
commandParameters = optionMaybe $ many1 (noneOf "\n")
function' = string "function" >> ws >> FunctionAnnotation <$> word <* optional ws
, Whitespace
, Plaintext "one."
]
+ , CommandAnnotation "Ack!" (Just "{pattern} {options}")
+ , Paragraph
+ [ Plaintext "Going"
+ , Whitespace
+ , Plaintext "out"
+ , Whitespace
+ , Plaintext "with"
+ , Whitespace
+ , Plaintext "a"
+ , Whitespace
+ , Plaintext "bang."
+ ]
, Paragraph
[ Plaintext "TODO:"
, Whitespace
"
" No params on that one.
"
+" @command :Ack! {pattern} {options}
+"
+" Going out with a bang.
+"
" TODO: Infer info based on following VimL nodes.