Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

Commit

Permalink
Fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
UnkindPartition committed Sep 27, 2010
1 parent 666312f commit 7055c29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Parse.hs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ word terminators acceptEmpty = do
-- this parser needs to be used everywhere where newline is needed, except
-- 'lineConts'
-- todo: more efficient string concatenation
-- fixme: if here-doc delimeter is not quoted, we also need to parse here-doc
-- fixme: if here-doc delimiter is not quoted, we also need to parse here-doc
-- for expansions
newline = do
char '\n'
Expand Down Expand Up @@ -288,7 +288,7 @@ redirection = do
unquote1 (SQuoted s) = s
unquote1 (DQuoted w) = unquote w
unquote1 (Escaped c) = [c]
unquote1 x = error $ "Got unexpected thingy in here-doc delimeter: " ++ show x
unquote1 x = error $ "Got unexpected thingy in here-doc delimiter: " ++ show x
hereDocDelim = token $ many1 $
escaped <|> singleQuoted <|> doubleQuoted <|> bareWord "'\"\\\n# "
doubleQuoted :: Parser WordPart
Expand Down
4 changes: 2 additions & 2 deletions Parsec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ data RS = RS
-- When we meet here-doc, we put its delimiter into hereDocDelims list.
-- After each newline we check whether we have unread here-docs, and if so,
-- start reading them
-- After the here-doc is read, we remove its delimeter from hereDocDelims and put
-- After the here-doc is read, we remove its delimiter from hereDocDelims and put
-- the contents of heredoc into the hereDocs list.
data SS = SS
{ hereDocHandles :: [HereDocHandle]
Expand All @@ -32,7 +32,7 @@ type HereDocHandle = (String, Int, HereDocQuoted)
data HereDocQuoted = HereDocQuoted | HereDocNotQuoted
deriving (Show,Read,Eq)

-- put here-docs delimeter into the queue
-- put here-docs delimiter into the queue
-- returns unique number by which the contents of here-doc may be accessed later
enqueueHereDoc :: String -> HereDocQuoted -> Parser Int
enqueueHereDoc delim quoted = do
Expand Down

0 comments on commit 7055c29

Please sign in to comment.