1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00

color can only have if pretty

This commit is contained in:
Ayman Nadeem 2019-10-22 13:41:13 -04:00
parent f876c0b5e0
commit a9f6068a7b

View File

@ -51,10 +51,9 @@ generateAST (SemanticAST format color source) = do
ast <- parseByteString @AST.Module @(Range, Span) Python.tree_sitter_python bytestring
case format of
Show -> print ast
Pretty -> pPrint ast
case color of
True -> pPrintNoColor ast
False -> pPrint ast
Pretty -> case color of
True -> pPrintNoColor ast
False -> pPrint ast
opts :: ParserInfo SemanticAST
opts = info (parseAST <**> helper)