mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-16 10:03:08 -07:00
Separated formatters into multiple files.
This commit is contained in:
parent
72eeafe002
commit
67cfcfd206
11 changed files with 419 additions and 234 deletions
|
@ -2223,8 +2223,8 @@ runParser sys p filename contents =
|
|||
sys)
|
||||
initialSystemState
|
||||
|
||||
parseShell sys contents = do
|
||||
(result, state) <- runParser sys (parseWithNotes readScript) "" contents
|
||||
parseShell sys name contents = do
|
||||
(result, state) <- runParser sys (parseWithNotes readScript) name contents
|
||||
case result of
|
||||
Right (script, tokenMap, notes) ->
|
||||
return ParseResult {
|
||||
|
@ -2267,7 +2267,7 @@ posToPos sp = Position {
|
|||
parseScript :: Monad m =>
|
||||
SystemInterface m -> ParseSpec -> m ParseResult
|
||||
parseScript sys spec =
|
||||
parseShell sys (psScript spec)
|
||||
parseShell sys (psFilename spec) (psScript spec)
|
||||
|
||||
|
||||
lt x = trace (show x) x
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue