From 9e01666d7d8682e42f08e1bca589ede63cc39009 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Mon, 14 Dec 2015 15:56:57 -0500 Subject: [PATCH] :fire: rangesAndWordsAfterWhitespace. --- src/Range.hs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Range.hs b/src/Range.hs index 84eeb0ed5..5c1dcd60a 100644 --- a/src/Range.hs +++ b/src/Range.hs @@ -20,7 +20,6 @@ rangesAndWordsFrom startIndex string = case break (not . isWord) string of ([], rest) | (whitespace, rest) <- break isWord rest -> rangesAndWordsFrom (startIndex + length whitespace) rest (word, rest) -> (Range startIndex $ startIndex + length word, word) : case break isWord rest of (whitespace, rest) -> rangesAndWordsFrom (startIndex + length word + length whitespace) rest where - rangesAndWordsAfterWhitespace startIndex string | (whitespace, rest) <- break isWord string = rangesAndWordsFrom (startIndex + length whitespace) rest -- | Is this a word character? -- | Word characters are defined as in [Ruby’s `\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_