Temporarily turn on unicode-lines

Ropey's non-unicode lines impl has some bugs still
pull/1826/head
Blaž Hrastnik 2 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"] include = ["src/**/*", "README.md"]
[features] [features]
default = ["unicode-lines"]
unicode-lines = ["ropey/unicode_lines"] unicode-lines = ["ropey/unicode_lines"]
[dependencies] [dependencies]

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

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

Loading…
Cancel
Save