1
1
mirror of https://github.com/github/semantic.git synced 2025-01-03 04:51:57 +03:00

Space, not separator.

This commit is contained in:
Rob Rix 2015-12-14 16:28:02 -05:00
parent 771ed5673e
commit d59d0dbe86

View File

@ -30,7 +30,7 @@ rangesAndWordsFrom startIndex string =
parse predicate string = case span predicate string of
([], _) -> Nothing
(parsed, rest) -> Just (parsed, rest)
isWordOrSeparator c = Char.isSeparator c || isWord c
isWordOrSeparator c = Char.isSpace c || isWord c
-- | Is this a word character?
-- | Word characters are defined as in [Rubys `\p{Word}` syntax](http://ruby-doc.org/core-2.1.1/Regexp.html#class-Regexp-label-Character+Properties), i.e.:
-- | > A member of one of the following Unicode general category _Letter_, _Mark_, _Number_, _Connector_Punctuation_