diff options
author | Blaž Hrastnik | 2022-03-17 01:52:14 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-03-17 01:53:50 +0000 |
commit | 2376fc875e659dfce952c0b885e369b4295ba441 (patch) | |
tree | a8cf97a4bc098015d24e4b3416594c420b18a907 /helix-core/src | |
parent | 16e2b2e36b8e9d8516178ec7e8a3da8962ea5b35 (diff) |
Temporarily turn on unicode-lines
Ropey's non-unicode lines impl has some bugs still
Diffstat (limited to 'helix-core/src')
-rw-r--r-- | helix-core/src/chars.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/helix-core/src/chars.rs b/helix-core/src/chars.rs index 54991574..817bbb86 100644 --- a/helix-core/src/chars.rs +++ b/helix-core/src/chars.rs @@ -91,7 +91,10 @@ mod test { #[test] fn test_categorize() { - const EOL_TEST_CASE: &str = "\n\r\u{000B}\u{000C}\u{0085}\u{2028}\u{2029}"; + #[cfg(not(feature = "unicode-lines"))] + const EOL_TEST_CASE: &str = "\n"; + #[cfg(feature = "unicode-lines")] + const EOL_TEST_CASE: &str = "\n\u{000B}\u{000C}\u{0085}\u{2028}\u{2029}"; const WORD_TEST_CASE: &str = "_hello_world_あいうえおー12345678901234567890"; const PUNCTUATION_TEST_CASE: &str = "!\"#$%&\'()*+,-./:;<=>?@[\\]^`{|}~!”#$%&’()*+、。:;<=>?@「」^`{|}~"; |