@@ -71,8 +71,7 @@ import Data.Aeson.Encode.Pretty (encodePretty', Config(..), keyOrder,
7171 defConfig, Indent(..), NumberFormat(..))
7272import Skylighting (Style, Syntax (..), defaultSyntaxMap, parseTheme,
7373 pygments)
74−import Skylighting.Parser (addSyntaxDefinition, missingIncludes,
75− parseSyntaxDefinition)
74+import Skylighting.Parser (addSyntaxDefinition, parseSyntaxDefinition)
7675import System.Console.GetOpt
7776import System.Directory (Permissions (..), doesFileExist, findExecutable,
7877 getAppUserDataDirectory, getPermissions)
@@ -268,15 +267,6 @@ convertWithOpts opts = do
268267 syntaxMap <- foldM addSyntaxMap defaultSyntaxMap
269268 (optSyntaxDefinitions opts)
270269
271− unless (null (optSyntaxDefinitions opts)) $
272− case missingIncludes (M.elems syntaxMap) of
273− [] -> return ()
274− xs -> E.throwIO $ PandocSyntaxMapError $
275− "Missing syntax definitions:\n" ++
276− unlines (map
277− (\(syn,dep) -> (T.unpack syn ++ " requires " ++
278− T.unpack dep ++ " through IncludeRules.")) xs)
279−
280270 -- We don't want to send output to the terminal if the user
281271 -- does 'pandoc -t docx input.txt'; though we allow them to
282272 -- force this with '-o -'. On posix systems, we detect