Temporarily turn on unicode-lines

Ropey's non-unicode lines impl has some bugs still
pull/1826/head
Blaž Hrastnik 3 years ago
parent 16e2b2e36b
commit 2376fc875e
No known key found for this signature in database
GPG Key ID: 1238B9C4AD889640

@ -11,6 +11,7 @@ homepage = "https://helix-editor.com"
include = ["src/**/*", "README.md"]
[features]
default = ["unicode-lines"]
unicode-lines = ["ropey/unicode_lines"]
[dependencies]

@ -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_あいうえおー1234567890";
const PUNCTUATION_TEST_CASE: &str =
"!\"#$%&\'()*+,-./:;<=>?@[\\]^`{|}~!”#$%&’()*+、。:;<=>?@「」^`{|}~";

@ -16,6 +16,8 @@ build = true
app = true
[features]
default = ["unicode-lines"]
unicode-lines = ["helix-core/unicode-lines"]
[[bin]]
name = "hx"

Loading…
Cancel
Save