Skip to content

Commit

Permalink
Use spaces instead of endOfLine
Browse files Browse the repository at this point in the history
Thanks @cmaeder for the suggestion. Using `spaces` has two benefits.
It gets rid of a dependency issue resulting in a compilation error and
it allows me to be consistent and only eat up whitespace at the end of
lines.
  • Loading branch information
gnn committed Aug 19, 2016
1 parent f1db36e commit 868229b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Common/AnnoParser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ module Common.AnnoParser
, newlineOrEof
) where

import Text.Parsec.Char (endOfLine)
import Text.ParserCombinators.Parsec
import Text.ParserCombinators.Parsec.Error
import Text.ParserCombinators.Parsec.Pos as Pos
Expand Down Expand Up @@ -238,8 +237,7 @@ floatingAnno ps = literal2idsAnno ps Float_anno

prefixAnno :: Range -> GenParser Char st Annotation
prefixAnno ps = do
prefixes <- many $ skipMany (commentLine >> endOfLine) >> do
spaces
prefixes <- many $ skipMany (commentLine >> spaces) >> do
p <- (string colonS >> return "") <|>
(IRI.ncname << string colonS)
spaces
Expand Down

0 comments on commit 868229b

Please sign in to comment.