diff --git a/src/syntect.rs b/src/syntect.rs index 13ab8f3..b52e3a0 100644 --- a/src/syntect.rs +++ b/src/syntect.rs @@ -156,6 +156,8 @@ struct Canvas<'file, W: Write> { region_fg_color: Option, region_bg_color: Option, wrap: bool, + current_fg_color: Option, + current_bg_color: Option, } impl<'file, W: Write> Deref for Canvas<'file, W> { @@ -189,6 +191,8 @@ impl<'file, W: Write> Canvas<'file, W> { fn draw_newline(&mut self) -> Result<()> { writeln!(self.out, "\x1b[0m")?; // Reset on newline to ensure to reset color + self.current_fg_color = None; + self.current_bg_color = None; Ok(()) } @@ -213,11 +217,19 @@ impl<'file, W: Write> Canvas<'file, W> { } fn set_bg(&mut self, c: Color) -> Result<()> { - self.set_color(40, c) + if self.current_bg_color != Some(c) { + self.set_color(40, c)?; + self.current_bg_color = Some(c); + } + Ok(()) } fn set_fg(&mut self, c: Color) -> Result<()> { - self.set_color(30, c) + if self.current_fg_color != Some(c) { + self.set_color(30, c)?; + self.current_fg_color = Some(c); + } + Ok(()) } fn set_default_bg(&mut self) -> Result<()> { @@ -584,6 +596,8 @@ impl<'file, W: Write> Drawer<'file, W> { wrap: opts.text_wrap == TextWrapMode::Char, region_fg_color, region_bg_color, + current_fg_color: None, + current_bg_color: None, match_color: theme.settings.line_highlight.or(theme.settings.background), out, }; diff --git a/testdata/syntect/ansi16_colors.out b/testdata/syntect/ansi16_colors.out index cb5459f..f6a63cf 100644 --- a/testdata/syntect/ansi16_colors.out +++ b/testdata/syntect/ansi16_colors.out @@ -2,6 +2,6 @@  ./testdata/syntect/ansi16_colors.rs ───┬──────────────────────────────────────────────────────────────────────────── 1 │ fn main() { - 2 │ println!("*match to this line*");  + 2 │ println!("*match to this line*");  3 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/ansi256_colors.out b/testdata/syntect/ansi256_colors.out index 89fdfe6..3940e9e 100644 --- a/testdata/syntect/ansi256_colors.out +++ b/testdata/syntect/ansi256_colors.out @@ -1,7 +1,7 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/ansi256_colors.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  println!("*match to this line*");  - 3 │ } + 1 │ fn main() { + 2 │  println!("*match to this line*");  + 3 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/background.out b/testdata/syntect/background.out index f8ff7f3..b1e9a12 100644 --- a/testdata/syntect/background.out +++ b/testdata/syntect/background.out @@ -1,7 +1,7 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/background.rs  ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() {  - 2 │  println!("*match to this line*");  - 3 │ }  + 1 │ fn main() {  + 2 │  println!("*match to this line*");  + 3 │ }  ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/default.out b/testdata/syntect/default.out index b700277..e85c11d 100644 --- a/testdata/syntect/default.out +++ b/testdata/syntect/default.out @@ -1,7 +1,7 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/default.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  println!("*match to this line*");  - 3 │ } + 1 │ fn main() { + 2 │  println!("*match to this line*");  + 3 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/emoji.out b/testdata/syntect/emoji.out index 743a19d..c6196be 100644 --- a/testdata/syntect/emoji.out +++ b/testdata/syntect/emoji.out @@ -1,7 +1,7 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/emoji.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  println!("*match to this line* 🐶🐱 👨‍👩‍👧‍👦");  - 3 │ } + 1 │ fn main() { + 2 │  println!("*match to this line* 🐶🐱 👨‍👩‍👧‍👦");  + 3 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/emoji_bg.out b/testdata/syntect/emoji_bg.out index e6f7a7c..82dc89e 100644 --- a/testdata/syntect/emoji_bg.out +++ b/testdata/syntect/emoji_bg.out @@ -1,8 +1,8 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/emoji_bg.rs  ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() {  - 2 │  // 🐶🐱 👨‍👩‍👧‍👦  - 3 │  println!("*match to this line* 🐶🐱 👨‍👩‍👧‍👦");  - 4 │ }  + 1 │ fn main() {  + 2 │  // 🐶🐱 👨‍👩‍👧‍👦  + 3 │  println!("*match to this line* 🐶🐱 👨‍👩‍👧‍👦");  + 4 │ }  ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/empty_lines.out b/testdata/syntect/empty_lines.out index 788e9b5..f08f3f0 100644 --- a/testdata/syntect/empty_lines.out +++ b/testdata/syntect/empty_lines.out @@ -2,11 +2,11 @@  ./testdata/syntect/empty_lines.rs ───┬────────────────────────────────────────────────────────────────────────────  1 │  - 2 │ fn main() { + 2 │ fn main() {  3 │  - 4 │  println!("*match to this line*");  + 4 │  println!("*match to this line*");   5 │  - 6 │ } + 6 │ }  7 │   8 │  ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/empty_lines_bg.out b/testdata/syntect/empty_lines_bg.out index 778be03..8adb990 100644 --- a/testdata/syntect/empty_lines_bg.out +++ b/testdata/syntect/empty_lines_bg.out @@ -1,12 +1,12 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/empty_lines_bg.rs  ───┬──────────────────────────────────────────────────────────────────────────── - 1 │   - 2 │ fn main() {  - 3 │   - 4 │  println!("*match to this line*");  - 5 │   - 6 │ }  - 7 │   - 8 │   + 1 │   + 2 │ fn main() {  + 3 │   + 4 │  println!("*match to this line*");  + 5 │   + 6 │ }  + 7 │   + 8 │   ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/first_only.out b/testdata/syntect/first_only.out index ef11876..8615219 100644 --- a/testdata/syntect/first_only.out +++ b/testdata/syntect/first_only.out @@ -1,16 +1,16 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/first_only.rs ─────┬────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  fn foo() { - 3 │  println!("*match to this line*");  - 4 │  } - 5 │  fn bar() { - 6 │  println!("*match to this line*");  - 7 │  } + 1 │ fn main() { + 2 │  fn foo() { + 3 │  println!("*match to this line*");  + 4 │  } + 5 │  fn bar() { + 6 │  println!("*match to this line*");  + 7 │  }  8 │  - 9 │  foo(); - 10 │  bar(); + 9 │  foo(); + 10 │  bar();  11 │   12 │  ─────┴────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/hard_tab.out b/testdata/syntect/hard_tab.out index 183d293..331b34e 100644 --- a/testdata/syntect/hard_tab.out +++ b/testdata/syntect/hard_tab.out @@ -1,11 +1,11 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/hard_tab.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  println!("we love hard tab"); - 3 │  println!("*match to this line*");  - 4 │  { - 5 │  println!("nested"); - 6 │  } - 7 │ } + 1 │ fn main() { + 2 │  println!("we love hard tab"); + 3 │  println!("*match to this line*");  + 4 │  { + 5 │  println!("nested"); + 6 │  } + 7 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/japanese_background.out b/testdata/syntect/japanese_background.out index 70e5677..f2bc03d 100644 --- a/testdata/syntect/japanese_background.out +++ b/testdata/syntect/japanese_background.out @@ -1,8 +1,8 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/japanese_background.rs  ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() {  - 2 │  // ここはマッチ範囲外です  - 3 │  println!("*match to this line* こんにちは世界");  - 4 │ }  + 1 │ fn main() {  + 2 │  // ここはマッチ範囲外です  + 3 │  println!("*match to this line* こんにちは世界");  + 4 │ }  ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/japanese_default.out b/testdata/syntect/japanese_default.out index 6f549ef..2ed5caa 100644 --- a/testdata/syntect/japanese_default.out +++ b/testdata/syntect/japanese_default.out @@ -1,8 +1,8 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/japanese_default.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  // ここはマッチ範囲外です - 3 │  println!("*match to this line* こんにちは世界");  - 4 │ } + 1 │ fn main() { + 2 │  // ここはマッチ範囲外です + 3 │  println!("*match to this line* こんにちは世界");  + 4 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/long_line.out b/testdata/syntect/long_line.out index 88a3fdb..2c8db57 100644 --- a/testdata/syntect/long_line.out +++ b/testdata/syntect/long_line.out @@ -1,14 +1,14 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/long_line.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ // this line is soooooooooooooooooooooooooooooooooooooooooooooooooooooooooo + 1 │ // this line is soooooooooooooooooooooooooooooooooooooooooooooooooooooooooo  │ oooooooooooo loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooon  │ g!!! - 2 │ fn main() { - 3 │  println!("*match to this line* this line is soooooooooooooooooooooooooo + 2 │ fn main() { + 3 │  println!("*match to this line* this line is soooooooooooooooooooooooooo  │ oooooooooooooooooooooooo looooooooooooooooooooooooooooooooooooooooooooooooo - │ ong!!!");  - 4 │ } - 5 │ // this line is also sooooooooooooooooooooooooooooooooooooooooooooooooooooo + │ ong!!!");  + 4 │ } + 5 │ // this line is also sooooooooooooooooooooooooooooooooooooooooooooooooooooo  │ ooooooo loooooooooooooooooooooooooooooooooooooooooooooooooonoooooooooog!!! ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/long_line_bg.out b/testdata/syntect/long_line_bg.out index c294ef7..d51023a 100644 --- a/testdata/syntect/long_line_bg.out +++ b/testdata/syntect/long_line_bg.out @@ -1,14 +1,14 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/long_line_bg.rs  ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ // this line is soooooooooooooooooooooooooooooooooooooooooooooooooooooooooo - │ oooooooooooo loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooon - │ g!!!  - 2 │ fn main() {  - 3 │  println!("*match to this line* this line is soooooooooooooooooooooooooo + 1 │ // this line is soooooooooooooooooooooooooooooooooooooooooooooooooooooooooo + │ oooooooooooo loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooon + │ g!!!  + 2 │ fn main() {  + 3 │  println!("*match to this line* this line is soooooooooooooooooooooooooo  │ oooooooooooooooooooooooo looooooooooooooooooooooooooooooooooooooooooooooooo - │ ong!!!");  - 4 │ }  - 5 │ // this line is also sooooooooooooooooooooooooooooooooooooooooooooooooooooo - │ ooooooo loooooooooooooooooooooooooooooooooooooooooooooooooonoooooooooog!!!  + │ ong!!!");  + 4 │ }  + 5 │ // this line is also sooooooooooooooooooooooooooooooooooooooooooooooooooooo + │ ooooooo loooooooooooooooooooooooooooooooooooooooooooooooooonoooooooooog!!!  ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/multi_chunks_bg.out b/testdata/syntect/multi_chunks_bg.out index 161a0bd..a924350 100644 --- a/testdata/syntect/multi_chunks_bg.out +++ b/testdata/syntect/multi_chunks_bg.out @@ -1,27 +1,27 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/multi_chunks_bg.rs  ─────┬────────────────────────────────────────────────────────────────────────── - 1 │ fn main() {  - 2 │  fn foo() {  - 3 │  println!("*match to this line*");  - 4 │  }  - 5 │  fn bar() {  - 6 │  println!("*match to this line*");  - 7 │  }  - 8 │   - 9 │  foo();  - 10 │  bar();  - 11 │   - 12 │   - ... ├╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶ - 14 │   - 15 │   - 16 │   - 17 │   - 18 │  foo();  - 19 │  bar();  - 20 │  println!("*match to this line*");  - 21 │  foo();  - 22 │  bar();  - 23 │ }  + 1 │ fn main() {  + 2 │  fn foo() {  + 3 │  println!("*match to this line*");  + 4 │  }  + 5 │  fn bar() {  + 6 │  println!("*match to this line*");  + 7 │  }  + 8 │   + 9 │  foo();  + 10 │  bar();  + 11 │   + 12 │   + ... ├╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶ + 14 │   + 15 │   + 16 │   + 17 │   + 18 │  foo();  + 19 │  bar();  + 20 │  println!("*match to this line*");  + 21 │  foo();  + 22 │  bar();  + 23 │ }  ─────┴────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/multi_chunks_default.out b/testdata/syntect/multi_chunks_default.out index a46a60f..9317619 100644 --- a/testdata/syntect/multi_chunks_default.out +++ b/testdata/syntect/multi_chunks_default.out @@ -1,16 +1,16 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/multi_chunks_default.rs ─────┬────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  fn foo() { - 3 │  println!("*match to this line*");  - 4 │  } - 5 │  fn bar() { - 6 │  println!("*match to this line*");  - 7 │  } + 1 │ fn main() { + 2 │  fn foo() { + 3 │  println!("*match to this line*");  + 4 │  } + 5 │  fn bar() { + 6 │  println!("*match to this line*");  + 7 │  }  8 │  - 9 │  foo(); - 10 │  bar(); + 9 │  foo(); + 10 │  bar();  11 │   12 │   ... ├╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶ @@ -18,10 +18,10 @@  15 │   16 │   17 │  - 18 │  foo(); - 19 │  bar(); - 20 │  println!("*match to this line*");  - 21 │  foo(); - 22 │  bar(); - 23 │ } + 18 │  foo(); + 19 │  bar(); + 20 │  println!("*match to this line*");  + 21 │  foo(); + 22 │  bar(); + 23 │ } ─────┴────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/multi_chunks_no_grid.out b/testdata/syntect/multi_chunks_no_grid.out index 0212799..a6ec77f 100644 --- a/testdata/syntect/multi_chunks_no_grid.out +++ b/testdata/syntect/multi_chunks_no_grid.out @@ -1,15 +1,15 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/multi_chunks_no_grid.rs - 1 fn main() { - 2  fn foo() { - 3  println!("*match to this line*");  - 4  } - 5  fn bar() { - 6  println!("*match to this line*");  - 7  } + 1 fn main() { + 2  fn foo() { + 3  println!("*match to this line*");  + 4  } + 5  fn bar() { + 6  println!("*match to this line*");  + 7  }  8  - 9  foo(); - 10  bar(); + 9  foo(); + 10  bar();  11   12   ...╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶ @@ -17,9 +17,9 @@  15   16   17  - 18  foo(); - 19  bar(); - 20  println!("*match to this line*");  - 21  foo(); - 22  bar(); - 23 } + 18  foo(); + 19  bar(); + 20  println!("*match to this line*");  + 21  foo(); + 22  bar(); + 23 } diff --git a/testdata/syntect/multi_line_numbers.out b/testdata/syntect/multi_line_numbers.out index b1e3d53..fd26793 100644 --- a/testdata/syntect/multi_line_numbers.out +++ b/testdata/syntect/multi_line_numbers.out @@ -1,15 +1,15 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/multi_line_numbers.rs ────┬─────────────────────────────────────────────────────────────────────────── - 1 │ // *match to this line*  - 2 │ fn main() { - 3 │  // *match to this line*  - 4 │  println!("hello"); - 5 │  // *match to this line*  - 6 │  println!("*match to this line*");  - 7 │  // *match to this line*  - 8 │  println!("bye"); - 9 │  // *match to this line*  - 10 │ } - 11 │ // *match to this line*  + 1 │ // *match to this line*  + 2 │ fn main() { + 3 │  // *match to this line*  + 4 │  println!("hello"); + 5 │  // *match to this line*  + 6 │  println!("*match to this line*");  + 7 │  // *match to this line*  + 8 │  println!("bye"); + 9 │  // *match to this line*  + 10 │ } + 11 │ // *match to this line*  ────┴─────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/no_grid.out b/testdata/syntect/no_grid.out index 18a8d7a..db51f22 100644 --- a/testdata/syntect/no_grid.out +++ b/testdata/syntect/no_grid.out @@ -1,5 +1,5 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/no_grid.rs - 1 fn main() { - 2  println!("*match to this line*");  - 3 } + 1 fn main() { + 2  println!("*match to this line*");  + 3 } diff --git a/testdata/syntect/no_grid_background.out b/testdata/syntect/no_grid_background.out index d1d0b08..eb310e2 100644 --- a/testdata/syntect/no_grid_background.out +++ b/testdata/syntect/no_grid_background.out @@ -1,5 +1,5 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/no_grid_background.rs  - 1 fn main() {  - 2  println!("*match to this line*");  - 3 }  + 1 fn main() {  + 2  println!("*match to this line*");  + 3 }  diff --git a/testdata/syntect/no_wrap_background.out b/testdata/syntect/no_wrap_background.out index 1719ec0..7196059 100644 --- a/testdata/syntect/no_wrap_background.out +++ b/testdata/syntect/no_wrap_background.out @@ -1,8 +1,8 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/no_wrap_background.rs  ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() {  - 2 │  // (width considering line number) 80 cols -> | - 3 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "bbbbbbbbbbb"]); - 4 │ }  + 1 │ fn main() {  + 2 │  // (width considering line number) 80 cols -> | + 3 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "bbbbbbbbbbb"]); + 4 │ }  ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/no_wrap_default.out b/testdata/syntect/no_wrap_default.out index d00410e..66dbd85 100644 --- a/testdata/syntect/no_wrap_default.out +++ b/testdata/syntect/no_wrap_default.out @@ -1,8 +1,8 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/no_wrap_default.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  // (width considering line number) 80 cols -> | - 3 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "bbbbbbbbbbb"]); - 4 │ } + 1 │ fn main() { + 2 │  // (width considering line number) 80 cols -> | + 3 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "bbbbbbbbbbb"]); + 4 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/no_wrap_no_grid.out b/testdata/syntect/no_wrap_no_grid.out index fdf66ce..ef4e54d 100644 --- a/testdata/syntect/no_wrap_no_grid.out +++ b/testdata/syntect/no_wrap_no_grid.out @@ -1,6 +1,6 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/no_wrap_no_grid.rs - 1 fn main() { - 2  // (width considering line number) 80 cols -> | - 3  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "bbbbbbbbbbb"]); - 4 } + 1 fn main() { + 2  // (width considering line number) 80 cols -> | + 3  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "bbbbbbbbbbb"]); + 4 } diff --git a/testdata/syntect/region_at_end_of_line.out b/testdata/syntect/region_at_end_of_line.out index 028e9b1..5ee96a6 100644 --- a/testdata/syntect/region_at_end_of_line.out +++ b/testdata/syntect/region_at_end_of_line.out @@ -1,8 +1,8 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/region_at_end_of_line.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  // (width considering line number) 80 cols -> | - 3 │  println!("hi!"); // *match to this line* - 4 │ } + 1 │ fn main() { + 2 │  // (width considering line number) 80 cols -> | + 3 │  println!("hi!"); // *match to this line* + 4 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/region_at_end_of_line_bg.out b/testdata/syntect/region_at_end_of_line_bg.out index bd00165..1d53011 100644 --- a/testdata/syntect/region_at_end_of_line_bg.out +++ b/testdata/syntect/region_at_end_of_line_bg.out @@ -1,8 +1,8 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/region_at_end_of_line_bg.rs  ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() {  - 2 │  // (width considering line number) 80 cols -> | - 3 │  println!("hi!"); // *match to this line* - 4 │ }  + 1 │ fn main() {  + 2 │  // (width considering line number) 80 cols -> | + 3 │  println!("hi!"); // *match to this line* + 4 │ }  ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/region_at_line_start.out b/testdata/syntect/region_at_line_start.out index f1787c6..5559f75 100644 --- a/testdata/syntect/region_at_line_start.out +++ b/testdata/syntect/region_at_line_start.out @@ -1,9 +1,9 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/region_at_line_start.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  println!(" - 3 │ *match to this line* region is at first of line!  - 4 │ "); - 5 │ } + 1 │ fn main() { + 2 │  println!(" + 3 │ *match to this line* region is at first of line!  + 4 │ "); + 5 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/tab_width_2.out b/testdata/syntect/tab_width_2.out index ae7d1e8..4d0e9fd 100644 --- a/testdata/syntect/tab_width_2.out +++ b/testdata/syntect/tab_width_2.out @@ -1,11 +1,11 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/tab_width_2.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  println!("we love hard tab"); - 3 │  println!("*match to this line*");  - 4 │  { - 5 │  println!("nested"); - 6 │  } - 7 │ } + 1 │ fn main() { + 2 │  println!("we love hard tab"); + 3 │  println!("*match to this line*");  + 4 │  { + 5 │  println!("nested"); + 6 │  } + 7 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/theme.out b/testdata/syntect/theme.out index 1c30677..ffb9b1e 100644 --- a/testdata/syntect/theme.out +++ b/testdata/syntect/theme.out @@ -1,7 +1,7 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/theme.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  println!("*match to this line*");  - 3 │ } + 1 │ fn main() { + 2 │  println!("*match to this line*");  + 3 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/whole_line.out b/testdata/syntect/whole_line.out index 3e0ecb9..4295018 100644 --- a/testdata/syntect/whole_line.out +++ b/testdata/syntect/whole_line.out @@ -1,7 +1,7 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/whole_line.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { + 1 │ fn main() {  2 │ *match to this line*  - 3 │ } + 3 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wide_char_region.out b/testdata/syntect/wide_char_region.out index 52d4f27..9c7144f 100644 --- a/testdata/syntect/wide_char_region.out +++ b/testdata/syntect/wide_char_region.out @@ -1,7 +1,7 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wide_char_region.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  println!("*match to こんにちは line*");  - 3 │ } + 1 │ fn main() { + 2 │  println!("*match to こんにちは line*");  + 3 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wide_char_region_bg.out b/testdata/syntect/wide_char_region_bg.out index 9d2e9f5..fa99cba 100644 --- a/testdata/syntect/wide_char_region_bg.out +++ b/testdata/syntect/wide_char_region_bg.out @@ -1,7 +1,7 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wide_char_region_bg.rs  ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() {  - 2 │  println!("*match to こんにちは line*");  - 3 │ }  + 1 │ fn main() {  + 2 │  println!("*match to こんにちは line*");  + 3 │ }  ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wrap_3_lines_emoji.out b/testdata/syntect/wrap_3_lines_emoji.out index 32d1248..3470052 100644 --- a/testdata/syntect/wrap_3_lines_emoji.out +++ b/testdata/syntect/wrap_3_lines_emoji.out @@ -1,11 +1,11 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_3_lines_emoji.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  // (width considering line number) 80 cols -> | - 3 │  println!("*match to this line* 🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶 + 1 │ fn main() { + 2 │  // (width considering line number) 80 cols -> | + 3 │  println!("*match to this line* 🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶  │ 🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶  - │ 🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶" - │ );  - 4 │ } + │ 🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶🐶" + │ );  + 4 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wrap_ansi256.out b/testdata/syntect/wrap_ansi256.out index 843060b..ffea70b 100644 --- a/testdata/syntect/wrap_ansi256.out +++ b/testdata/syntect/wrap_ansi256.out @@ -1,9 +1,9 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_ansi256.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  // (width considering line number) 80 cols -> | - 3 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaa", "bbbbb - │ bbbbbb"]);  - 4 │ } + 1 │ fn main() { + 2 │  // (width considering line number) 80 cols -> | + 3 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaa", "bbbbb + │ bbbbbb"]);  + 4 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wrap_between_bg.out b/testdata/syntect/wrap_between_bg.out index 69ee13a..f5caea4 100644 --- a/testdata/syntect/wrap_between_bg.out +++ b/testdata/syntect/wrap_between_bg.out @@ -1,9 +1,9 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_between_bg.rs  ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() {  - 2 │  // (width considering line number) 80 cols -> | - 3 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaaaaaaaa",  - │ "bbbbbbbbbbb"]);  - 4 │ }  + 1 │ fn main() {  + 2 │  // (width considering line number) 80 cols -> | + 3 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaaaaaaaa",  + │ "bbbbbbbbbbb"]);  + 4 │ }  ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wrap_between_text.out b/testdata/syntect/wrap_between_text.out index e12d40e..ee78ba0 100644 --- a/testdata/syntect/wrap_between_text.out +++ b/testdata/syntect/wrap_between_text.out @@ -1,9 +1,9 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_between_text.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  // (width considering line number) 80 cols -> | - 3 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaaaaaaaa",  - │ "bbbbbbbbbbb"]);  - 4 │ } + 1 │ fn main() { + 2 │  // (width considering line number) 80 cols -> | + 3 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaaaaaaaa",  + │ "bbbbbbbbbbb"]);  + 4 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wrap_break_wide_char.out b/testdata/syntect/wrap_break_wide_char.out index 5c21f24..97df96f 100644 --- a/testdata/syntect/wrap_break_wide_char.out +++ b/testdata/syntect/wrap_break_wide_char.out @@ -1,10 +1,10 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_break_wide_char.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  let こんにちは = "hello"; - 3 │  // (width considering line number) 80 cols -> | - 4 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaaaaaaa",  - │ こんにちは]);  - 5 │ } + 1 │ fn main() { + 2 │  let こんにちは = "hello"; + 3 │  // (width considering line number) 80 cols -> | + 4 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaaaaaaa",  + │ こんにちは]);  + 5 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wrap_break_wide_char_bg.out b/testdata/syntect/wrap_break_wide_char_bg.out index 4334dad..2b3894c 100644 --- a/testdata/syntect/wrap_break_wide_char_bg.out +++ b/testdata/syntect/wrap_break_wide_char_bg.out @@ -1,10 +1,10 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_break_wide_char_bg.rs  ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() {  - 2 │  let こんにちは = "hello";  - 3 │  // (width considering line number) 80 cols -> | - 4 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaaaaaaa",  - │ こんにちは]);  - 5 │ }  + 1 │ fn main() {  + 2 │  let こんにちは = "hello";  + 3 │  // (width considering line number) 80 cols -> | + 4 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaaaaaaa",  + │ こんにちは]);  + 5 │ }  ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wrap_emoji.out b/testdata/syntect/wrap_emoji.out index 7545a92..7fe5eda 100644 --- a/testdata/syntect/wrap_emoji.out +++ b/testdata/syntect/wrap_emoji.out @@ -1,9 +1,9 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_emoji.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  // (width considering line number) 80 cols -> | - 3 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaaaa", "🐶  - │ 🐱"]);  - 4 │ } + 1 │ fn main() { + 2 │  // (width considering line number) 80 cols -> | + 3 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaaaa", "🐶  + │ 🐱"]);  + 4 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wrap_emoji_zwj.out b/testdata/syntect/wrap_emoji_zwj.out index 4afefba..de8bc06 100644 --- a/testdata/syntect/wrap_emoji_zwj.out +++ b/testdata/syntect/wrap_emoji_zwj.out @@ -1,9 +1,9 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_emoji_zwj.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  // (width considering line number) 80 cols -> | - 3 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaa", "👨‍👩‍👧‍👦"]) - │ ;  - 4 │ } + 1 │ fn main() { + 2 │  // (width considering line number) 80 cols -> | + 3 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaa", "👨‍👩‍👧‍👦"]) + │ ;  + 4 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wrap_japanese_after.out b/testdata/syntect/wrap_japanese_after.out index 37673a9..d2b7f1b 100644 --- a/testdata/syntect/wrap_japanese_after.out +++ b/testdata/syntect/wrap_japanese_after.out @@ -1,11 +1,11 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_japanese_after.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  let こんにちは = "hello"; - 3 │  let 世界 = "world"; - 4 │  // (width considering line number) 80 cols -> | - 5 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaa", 世界,  - │ こんにちは]);  - 6 │ } + 1 │ fn main() { + 2 │  let こんにちは = "hello"; + 3 │  let 世界 = "world"; + 4 │  // (width considering line number) 80 cols -> | + 5 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaa", 世界,  + │ こんにちは]);  + 6 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wrap_japanese_before.out b/testdata/syntect/wrap_japanese_before.out index b453894..04e5bf2 100644 --- a/testdata/syntect/wrap_japanese_before.out +++ b/testdata/syntect/wrap_japanese_before.out @@ -1,11 +1,11 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_japanese_before.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  let こんにちは = "hello"; - 3 │  let 世界 = "world"; - 4 │  // (width considering line number) 80 cols -> | - 5 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaaaa", 世界 - │ , こんにちは]);  - 6 │ } + 1 │ fn main() { + 2 │  let こんにちは = "hello"; + 3 │  let 世界 = "world"; + 4 │  // (width considering line number) 80 cols -> | + 5 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaaaa", 世界 + │ , こんにちは]);  + 6 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wrap_japanese_louise.out b/testdata/syntect/wrap_japanese_louise.out index 34fac38..460a25c 100644 --- a/testdata/syntect/wrap_japanese_louise.out +++ b/testdata/syntect/wrap_japanese_louise.out @@ -1,8 +1,8 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_japanese_louise.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  println!("*match to this line* ルイズ!ルイズ!ルイズ!ルイズぅぅううう + 1 │ fn main() { + 2 │  println!("*match to this line* ルイズ!ルイズ!ルイズ!ルイズぅぅううう  │ わぁああああああああああああああああああああああん!!!あぁああああああ...  │ あっあっー!あぁああああああ!!!ルイズルイズルイズぅううぁわぁああああ!   │ !!あぁクンカクンカ!クンカクンカ!スーハースーハー!スーハースーハー!い  @@ -26,6 +26,6 @@  │ イズちゃああああああああああああああん!!いやぁあああああああああああああ   │ ああ!!!!あっあんああっああんあアン様ぁあ!!シ、シエスター!!アンリエ   │ ッタぁああああああ!!!タバサァぁあああ!!ううっうぅうう!!俺の想いよルイ - │ ズへ届け!!ハルゲニアのルイズへ届け!");  - 3 │ } + │ ズへ届け!!ハルゲニアのルイズへ届け!");  + 3 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wrap_jp_louise_bg.out b/testdata/syntect/wrap_jp_louise_bg.out index b2cc558..feb8e9d 100644 --- a/testdata/syntect/wrap_jp_louise_bg.out +++ b/testdata/syntect/wrap_jp_louise_bg.out @@ -1,8 +1,8 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_jp_louise_bg.rs  ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() {  - 2 │  println!("*match to this line* ルイズ!ルイズ!ルイズ!ルイズぅぅううう + 1 │ fn main() {  + 2 │  println!("*match to this line* ルイズ!ルイズ!ルイズ!ルイズぅぅううう  │ わぁああああああああああああああああああああああん!!!あぁああああああ...  │ あっあっー!あぁああああああ!!!ルイズルイズルイズぅううぁわぁああああ!   │ !!あぁクンカクンカ!クンカクンカ!スーハースーハー!スーハースーハー!い  @@ -26,6 +26,6 @@  │ イズちゃああああああああああああああん!!いやぁあああああああああああああ   │ ああ!!!!あっあんああっああんあアン様ぁあ!!シ、シエスター!!アンリエ   │ ッタぁああああああ!!!タバサァぁあああ!!ううっうぅうう!!俺の想いよルイ - │ ズへ届け!!ハルゲニアのルイズへ届け!");  - 3 │ }  + │ ズへ届け!!ハルゲニアのルイズへ届け!");  + 3 │ }  ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wrap_jp_louise_no_grid.out b/testdata/syntect/wrap_jp_louise_no_grid.out index 1de46cc..93eb68b 100644 --- a/testdata/syntect/wrap_jp_louise_no_grid.out +++ b/testdata/syntect/wrap_jp_louise_no_grid.out @@ -1,7 +1,7 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_jp_louise_no_grid.rs - 1 fn main() { - 2  println!("*match to this line* ルイズ!ルイズ!ルイズ!ルイズぅぅうううわ + 1 fn main() { + 2  println!("*match to this line* ルイズ!ルイズ!ルイズ!ルイズぅぅうううわ  ぁああああああああああああああああああああああん!!!あぁああああああ...あっ  あっー!あぁああああああ!!!ルイズルイズルイズぅううぁわぁああああ!!!あ   ぁクンカクンカ!クンカクンカ!スーハースーハー!スーハースーハー!いい匂いだ  @@ -24,5 +24,5 @@  りでできるもん!!!あ、コミックのルイズちゃああああああああああああああん!   !いやぁあああああああああああああああ!!!!あっあんああっああんあアン様ぁ   あ!!シ、シエスター!!アンリエッタぁああああああ!!!タバサァぁあああ!!う - うっうぅうう!!俺の想いよルイズへ届け!!ハルゲニアのルイズへ届け!");  - 3 } + うっうぅうう!!俺の想いよルイズへ届け!!ハルゲニアのルイズへ届け!");  + 3 } diff --git a/testdata/syntect/wrap_match_at_second_line.out b/testdata/syntect/wrap_match_at_second_line.out index 7a81cbc..6a6a307 100644 --- a/testdata/syntect/wrap_match_at_second_line.out +++ b/testdata/syntect/wrap_match_at_second_line.out @@ -1,9 +1,9 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_match_at_second_line.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  // (width considering line number) 80 cols -> | - 3 │  println!("{}", &["aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "bbbbbbbbbbb", "ccccc - │ cccccc", "*match to this line*"]);  - 4 │ } + 1 │ fn main() { + 2 │  // (width considering line number) 80 cols -> | + 3 │  println!("{}", &["aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "bbbbbbbbbbb", "ccccc + │ cccccc", "*match to this line*"]);  + 4 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wrap_match_at_second_line_bg.out b/testdata/syntect/wrap_match_at_second_line_bg.out index 6d2000b..e054bb1 100644 --- a/testdata/syntect/wrap_match_at_second_line_bg.out +++ b/testdata/syntect/wrap_match_at_second_line_bg.out @@ -1,9 +1,9 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_match_at_second_line_bg.rs  ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() {  - 2 │  // (width considering line number) 80 cols -> | - 3 │  println!("{}", &["aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "bbbbbbbbbbb", "ccccc - │ cccccc", "*match to this line*"]);  - 4 │ }  + 1 │ fn main() {  + 2 │  // (width considering line number) 80 cols -> | + 3 │  println!("{}", &["aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "bbbbbbbbbbb", "ccccc + │ cccccc", "*match to this line*"]);  + 4 │ }  ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wrap_middle_of_spaces.out b/testdata/syntect/wrap_middle_of_spaces.out index 828af46..7611b85 100644 --- a/testdata/syntect/wrap_middle_of_spaces.out +++ b/testdata/syntect/wrap_middle_of_spaces.out @@ -1,9 +1,9 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_middle_of_spaces.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  // (width considering line number) 80 cols -> | - 3 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaaaaa",  - │  "bbbbbbbbbbb"]);  - 4 │ } + 1 │ fn main() { + 2 │  // (width considering line number) 80 cols -> | + 3 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaaaaa",  + │  "bbbbbbbbbbb"]);  + 4 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wrap_middle_of_tab.out b/testdata/syntect/wrap_middle_of_tab.out index 676378d..adbb2f2 100644 --- a/testdata/syntect/wrap_middle_of_tab.out +++ b/testdata/syntect/wrap_middle_of_tab.out @@ -1,9 +1,9 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_middle_of_tab.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  // (width considering line number) 80 cols -> | - 3 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaaaaaaa",  - │ "bbbbbbbbbbb"]);  - 4 │ } + 1 │ fn main() { + 2 │  // (width considering line number) 80 cols -> | + 3 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaaaaaaa",  + │ "bbbbbbbbbbb"]);  + 4 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wrap_middle_of_text.out b/testdata/syntect/wrap_middle_of_text.out index 5662c17..ba2aa7b 100644 --- a/testdata/syntect/wrap_middle_of_text.out +++ b/testdata/syntect/wrap_middle_of_text.out @@ -1,9 +1,9 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_middle_of_text.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  // (width considering line number) 80 cols -> | - 3 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaa", "bbbbb - │ bbbbbb"]);  - 4 │ } + 1 │ fn main() { + 2 │  // (width considering line number) 80 cols -> | + 3 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaa", "bbbbb + │ bbbbbb"]);  + 4 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wrap_middle_text_bg.out b/testdata/syntect/wrap_middle_text_bg.out index b309e74..4e85139 100644 --- a/testdata/syntect/wrap_middle_text_bg.out +++ b/testdata/syntect/wrap_middle_text_bg.out @@ -1,9 +1,9 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_middle_text_bg.rs  ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() {  - 2 │  // (width considering line number) 80 cols -> | - 3 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaa", "bbbbb - │ bbbbbb"]);  - 4 │ }  + 1 │ fn main() {  + 2 │  // (width considering line number) 80 cols -> | + 3 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaa", "bbbbb + │ bbbbbb"]);  + 4 │ }  ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wrap_no_grid.out b/testdata/syntect/wrap_no_grid.out index 5d30056..421c882 100644 --- a/testdata/syntect/wrap_no_grid.out +++ b/testdata/syntect/wrap_no_grid.out @@ -1,7 +1,7 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_no_grid.rs - 1 fn main() { - 2  // (width considering line number) 80 cols -> | - 3  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaa", "bbbbbbb - bbbbbb"]);  - 4 } + 1 fn main() { + 2  // (width considering line number) 80 cols -> | + 3  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaa", "bbbbbbb + bbbbbb"]);  + 4 } diff --git a/testdata/syntect/wrap_region_accross_line.out b/testdata/syntect/wrap_region_accross_line.out index 2562ed7..baf6b8c 100644 --- a/testdata/syntect/wrap_region_accross_line.out +++ b/testdata/syntect/wrap_region_accross_line.out @@ -1,9 +1,9 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_region_accross_line.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  // (width considering line number) 80 cols -> | - 3 │  println!("{}", &["aaaaaaaaaaaaaaaaaaaaaaa", "bbbbbbbbbbb", "*match to t - │ his line*", "ccccccccccc"]);  - 4 │ } + 1 │ fn main() { + 2 │  // (width considering line number) 80 cols -> | + 3 │  println!("{}", &["aaaaaaaaaaaaaaaaaaaaaaa", "bbbbbbbbbbb", "*match to t + │ his line*", "ccccccccccc"]);  + 4 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wrap_region_jp_accross_line.out b/testdata/syntect/wrap_region_jp_accross_line.out index d97c1bd..8b1af9d 100644 --- a/testdata/syntect/wrap_region_jp_accross_line.out +++ b/testdata/syntect/wrap_region_jp_accross_line.out @@ -1,9 +1,9 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_region_jp_accross_line.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  // (width considering line number) 80 cols -> | - 3 │  println!("{}", &["aaaaaaaaaaaaaaaaaaaaa", "bbbbbbbbbbb", "*match to ワ  - │ オン line*", "ccccccccccc"]);  - 4 │ } + 1 │ fn main() { + 2 │  // (width considering line number) 80 cols -> | + 3 │  println!("{}", &["aaaaaaaaaaaaaaaaaaaaa", "bbbbbbbbbbb", "*match to ワ  + │ オン line*", "ccccccccccc"]);  + 4 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wrap_region_line_end.out b/testdata/syntect/wrap_region_line_end.out index bcdf694..0e4f892 100644 --- a/testdata/syntect/wrap_region_line_end.out +++ b/testdata/syntect/wrap_region_line_end.out @@ -1,9 +1,9 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_region_line_end.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  // (width considering line number) 80 cols -> | - 3 │  println!("hi!"); // *match to this line* - │  this line will continue to next line  - 4 │ } + 1 │ fn main() { + 2 │  // (width considering line number) 80 cols -> | + 3 │  println!("hi!"); // *match to this line* + │  this line will continue to next line  + 4 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wrap_region_line_start.out b/testdata/syntect/wrap_region_line_start.out index a240160..d957c06 100644 --- a/testdata/syntect/wrap_region_line_start.out +++ b/testdata/syntect/wrap_region_line_start.out @@ -1,9 +1,9 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_region_line_start.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  // (width considering line number) 80 cols -> | - 3 │  println!("hi!"); //  + 1 │ fn main() { + 2 │  // (width considering line number) 80 cols -> | + 3 │  println!("hi!"); //   │ *match to this line*  - 4 │ } + 4 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wrap_theme.out b/testdata/syntect/wrap_theme.out index 8ea8c24..9158b65 100644 --- a/testdata/syntect/wrap_theme.out +++ b/testdata/syntect/wrap_theme.out @@ -1,9 +1,9 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_theme.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  // (width considering line number) 80 cols -> | - 3 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaa", "bbbbb - │ bbbbbb"]);  - 4 │ } + 1 │ fn main() { + 2 │  // (width considering line number) 80 cols -> | + 3 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaa", "bbbbb + │ bbbbbb"]);  + 4 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wrap_twice.out b/testdata/syntect/wrap_twice.out index 4738f68..4f79c96 100644 --- a/testdata/syntect/wrap_twice.out +++ b/testdata/syntect/wrap_twice.out @@ -1,12 +1,12 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_twice.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  // (width considering line number) 80 cols -> | - 3 │  //  + 1 │ fn main() { + 2 │  // (width considering line number) 80 cols -> | + 3 │  //   │  (width considering line number) 160 cols -> | - 4 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaaaaa", "bb - │ bbbbbbbbbbbbbbbbbbbbbbbbbbbb", "cccccccccccccccccccccccccccccc", "ddddddddd - │ dddddd"]);  - 5 │ } + 4 │  println!("*match to this line* {}", &["aaaaaaaaaaaaaaaaaaaaaaaaaa", "bb + │ bbbbbbbbbbbbbbbbbbbbbbbbbbbb", "cccccccccccccccccccccccccccccc", "ddddddddd + │ dddddd"]);  + 5 │ } ───┴──────────────────────────────────────────────────────────────────────────── diff --git a/testdata/syntect/wrap_whole_3_lines.out b/testdata/syntect/wrap_whole_3_lines.out index 0765dbe..1432b6f 100644 --- a/testdata/syntect/wrap_whole_3_lines.out +++ b/testdata/syntect/wrap_whole_3_lines.out @@ -1,10 +1,10 @@ ────────────────────────────────────────────────────────────────────────────────  ./testdata/syntect/wrap_whole_3_lines.rs ───┬──────────────────────────────────────────────────────────────────────────── - 1 │ fn main() { - 2 │  // (width considering line number) 80 cols -> | + 1 │ fn main() { + 2 │  // (width considering line number) 80 cols -> |  3 │ *match to fooooooooooooooooooo fo foooooooooooooooooooo fofoooooooooooooooo  │ oooooooooooooo fooooooooooooooooooofofo foooooooooooooooooooo fooofoo line  │ *  - 4 │ } + 4 │ } ───┴────────────────────────────────────────────────────────────────────────────