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:
parent
f876c0b5e0
commit
a9f6068a7b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user