1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00

isSpace, not isSeparator.

This commit is contained in:
Rob Rix 2015-12-14 16:25:51 -05:00
parent 1d559b2b9a
commit c1c50915d3

View File

@ -21,7 +21,7 @@ rangesAndWordsFrom startIndex string =
case parse isWord string <|> parse (not . isWordOrSeparator) string of
Just parsed -> takeAndContinue parsed
Nothing ->
case parse Char.isSeparator string of
case parse Char.isSpace string of
Just (space, rest) -> rangesAndWordsFrom (startIndex + length space) rest
Nothing -> []
where