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:
parent
1d559b2b9a
commit
c1c50915d3
@ -21,7 +21,7 @@ rangesAndWordsFrom startIndex string =
|
|||||||
case parse isWord string <|> parse (not . isWordOrSeparator) string of
|
case parse isWord string <|> parse (not . isWordOrSeparator) string of
|
||||||
Just parsed -> takeAndContinue parsed
|
Just parsed -> takeAndContinue parsed
|
||||||
Nothing ->
|
Nothing ->
|
||||||
case parse Char.isSeparator string of
|
case parse Char.isSpace string of
|
||||||
Just (space, rest) -> rangesAndWordsFrom (startIndex + length space) rest
|
Just (space, rest) -> rangesAndWordsFrom (startIndex + length space) rest
|
||||||
Nothing -> []
|
Nothing -> []
|
||||||
where
|
where
|
||||||
|
Loading…
Reference in New Issue
Block a user