]> git.wincent.com - docvim.git/commitdiff
Use worktree as issue tracker
authorGreg Hurrell <greg@hurrell.net>
Mon, 6 Jun 2016 15:48:07 +0000 (08:48 -0700)
committerGreg Hurrell <greg@hurrell.net>
Mon, 6 Jun 2016 15:48:07 +0000 (08:48 -0700)
Taking standards to new lows.

lib/Docvim/Parse.hs
lib/Docvim/Printer/Markdown.hs

index 814c01ea580e7d8e046b0f07d9c3f9c5fd3d16e6..10592d3f4707bbba04394eb77df384d25ba70095 100644 (file)
@@ -474,6 +474,7 @@ annotation = char '@' *> annotationName
     option            = string "option" >> ws >> OptionAnnotation <$> optionName <*> optionType <*> optionDefault
     optionName        = many1 (alphaNum <|> char ':') <* ws <?> "option name"
     optionType        = many1 alphaNum <* ws <?> "option type"
+    -- BUG: this is not optional, it would seem (see tests/fixtures/vim/options.vim)
     optionDefault     = optionMaybe word <?> "option default value"
 
     plugin            = string "plugin" >> ws >> PluginAnnotation <$> pluginName <*> plugInDescription
index a6b3a06bfc8724b0bf60e9a194a4ec3dc7ce29f0..6e2aa97fa6b21e35bff034e220b23ae30a66a19b 100644 (file)
@@ -41,6 +41,7 @@ node n = case n of
   List ls                 -> nodes ls >>= nl
   ListItem l              -> fmap ("- " ++) (nodes l) >>= nl
   MappingsAnnotation      -> return "## Mappings\n\n"
+  -- TODO: handle OptionAnnotation
   OptionsAnnotation       -> return "## Options\n\n"
   Paragraph p             -> nodes p >>= nl >>= nl
   Plaintext p             -> return p