on master help sign in
Temporarily turn on unicode-lines
2376fc8Blaž Hrastnik
helix-core/Cargo.toml+1
@@ -11,6 +11,7 @@ homepage = "https://helix-editor.com"
11include = ["src/**/*", "README.md"]
11include = ["src/**/*", "README.md"]
12
12
13[features]
13[features]
14+default = ["unicode-lines"]
14unicode-lines = ["ropey/unicode_lines"]
15unicode-lines = ["ropey/unicode_lines"]
15
16
16[dependencies]
17[dependencies]
helix-core/src/chars.rs+4−1
@@ -91,7 +91,10 @@ mod test {
91
91
92 #[test]
92 #[test]
93 fn test_categorize() {
93 fn test_categorize() {
94+ #[cfg(not(feature = "unicode-lines"))]
94− const EOL_TEST_CASE: &str = "\n\r\u{000B}\u{000C}\u{0085}\u{2028}\u{2029}";
95+ const EOL_TEST_CASE: &str = "\n";
96+ #[cfg(feature = "unicode-lines")]
97+ const EOL_TEST_CASE: &str = "\n\u{000B}\u{000C}\u{0085}\u{2028}\u{2029}";
95 const WORD_TEST_CASE: &str = "_hello_world_あいうえおー12345678901234567890";
98 const WORD_TEST_CASE: &str = "_hello_world_あいうえおー12345678901234567890";
96 const PUNCTUATION_TEST_CASE: &str =
99 const PUNCTUATION_TEST_CASE: &str =
97 "!\"#$%&\'()*+,-./:;<=>?@[\\]^`{|}~!”#$%&’()*+、。:;<=>?@「」^`{|}~";
100 "!\"#$%&\'()*+,-./:;<=>?@[\\]^`{|}~!”#$%&’()*+、。:;<=>?@「」^`{|}~";
helix-term/Cargo.toml+2
@@ -16,6 +16,8 @@ build = true
16app = true
16app = true
17
17
18[features]
18[features]
19+default = ["unicode-lines"]
20+unicode-lines = ["helix-core/unicode-lines"]
19
21
20[[bin]]
22[[bin]]
21name = "hx"
23name = "hx"