mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 17:36:19 +04:00
Temporarily turn on unicode-lines
Ropey's non-unicode lines impl has some bugs still
This commit is contained in:
parent
16e2b2e36b
commit
2376fc875e
@ -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_あいうえおー12345678901234567890";
|
const WORD_TEST_CASE: &str = "_hello_world_あいうえおー12345678901234567890";
|
||||||
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…
Reference in New Issue
Block a user