From 8703f30063a59d07aac5141a58a590135de39707 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 23 Feb 2017 00:56:40 +0000 Subject: [PATCH] Tweak some character categorization function implementations --- src/unicode.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/unicode.hh b/src/unicode.hh index 2fcba68c..98c69c30 100644 --- a/src/unicode.hh +++ b/src/unicode.hh @@ -38,12 +38,12 @@ inline bool is_word(Codepoint c) template<> inline bool is_word(Codepoint c) { - return not is_horizontal_blank(c) and not is_eol(c); + return not is_blank(c); } inline bool is_punctuation(Codepoint c) { - return not (is_word(c) or is_horizontal_blank(c) or is_eol(c)); + return not (is_word(c) or is_blank(c)); } inline bool is_basic_alpha(Codepoint c)