summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Unterwaditzer <markus@unterwaditzer.net>2015-01-15 13:56:08 +0100
committerMarkus Unterwaditzer <markus@unterwaditzer.net>2015-01-15 13:56:08 +0100
commitdb0834718f1e487b37cbb795cdc135e19c1defd5 (patch)
tree98190a6ee959ea648b76adb8da005c351c27b859
parentdb3c3ed074b101da8cc012f482584b346fde2b21 (diff)
Replace list with byte-range
-rw-r--r--src/vobject/lib.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/vobject/lib.rs b/src/vobject/lib.rs
index c303372..861289a 100644
--- a/src/vobject/lib.rs
+++ b/src/vobject/lib.rs
@@ -197,12 +197,7 @@ value_char = !eol .
eol = "\r\n" / "\n" / "\r"
dquote = "\""
eols = eol+
-ctl =
- // "\x00-1F" / "\x7F"
- // FIXME: https://github.com/kevinmehall/rust-peg/issues/41
- "\x00" / "\x01" / "\x02" / "\x03" / "\x04" / "\x05" / "\x06" / "\x07" / "\x08" / "\t" / "\n" /
- "\x0b" / "\x0c" / "\r" / "\x0e" / "\x0f" / "\x10" / "\x11" / "\x12" / "\x13" / "\x14" / "\x15"
- / "\x16" / "\x17" / "\x18" / "\x19" / "\x1a" / "\x1b" / "\x1c" / "\x1d" / "\x1e" / "\x7f"
+ctl = [\u{00}-\u{1F}] / "\u{7F}"
whitespace = " " / "\t"
__ = (eol / whitespace)*