summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-06-09 14:52:29 +0200
committerAndreas Rumpf <rumpf_a@web.de>2015-06-09 14:52:29 +0200
commit9b22a7b712d7bf63187f6e577fd7ed78ed3df9db (patch)
tree0c8b567b249b033d5c5d6d83f290294069205aa2 /lib
parentc4009c61820190c188f6bcf7469754b3c40201e5 (diff)
parent0ee1672d69272aa75cf9be15dede34773a4fa487 (diff)
downloadNim-9b22a7b712d7bf63187f6e577fd7ed78ed3df9db.tar.gz
Merge pull request #2887 from apense/patch-5
Updated whitespace ranges
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/unicode.nim10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/pure/unicode.nim b/lib/pure/unicode.nim
index 5fd3c2418..4446eaa0c 100644
--- a/lib/pure/unicode.nim
+++ b/lib/pure/unicode.nim
@@ -372,11 +372,17 @@ const
     0xfe74]  #
 
   spaceRanges = [
-    0x0009,  0x000a,  # tab and newline
+    0x0009,  0x000d,  # tab and newline
     0x0020,  0x0020,  # space
+    0x0085,  0x0085,  # next line
     0x00a0,  0x00a0,  #
-    0x2000,  0x200b,  #  -
+    0x1680,  0x1680,  # Ogham space mark
+    0x2000,  0x200b,  # en dash .. zero-width space
+    0x200e,  0x200f,  # LTR mark .. RTL mark (pattern whitespace)
     0x2028,  0x2029,  #  -     0x3000,  0x3000,  #
+    0x202f,  0x202f,  # narrow no-break space
+    0x205f,  0x205f,  # medium mathematical space
+    0x3000,  0x3000,  # ideographic space
     0xfeff,  0xfeff]  #
 
   toupperRanges = [