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

Use the space atom.

This commit is contained in:
Rob Rix 2015-12-14 16:33:02 -05:00
parent 36e495f918
commit 645ae0b6de

View File

@ -21,7 +21,7 @@ rangesAndWordsFrom startIndex string =
case takeAndContinue <$> (word <|> punctuation) of case takeAndContinue <$> (word <|> punctuation) of
Just a -> a Just a -> a
Nothing -> Nothing ->
case parse Char.isSpace string of case space of
Just parsed -> skipAndContinue parsed Just parsed -> skipAndContinue parsed
Nothing -> [] Nothing -> []
where where