-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add --first-only to show only first snippet per file
- Loading branch information
Showing
8 changed files
with
75 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[38;2;128;128;128m────────────────────────────────────────────────────────────────────────────────[0m | ||
[1m ./testdata/syntect/first_only.rs[0m | ||
[38;2;128;128;128m─────┬──────────────────────────────────────────────────────────────────────────[0m | ||
[38;2;128;128;128m 1 │ [38;2;102;217;239mfn[38;2;248;248;242m [38;2;166;226;46mmain[38;2;248;248;242m([38;2;248;248;242m)[38;2;248;248;242m [38;2;248;248;242m{[38;2;248;248;242m[0m | ||
[38;2;128;128;128m 2 │ [38;2;248;248;242m [38;2;102;217;239mfn[38;2;248;248;242m [38;2;166;226;46mfoo[38;2;248;248;242m([38;2;248;248;242m)[38;2;248;248;242m [38;2;248;248;242m{[38;2;248;248;242m[0m | ||
[38;2;248;248;242m 3[38;2;128;128;128m │ [48;2;51;51;51m[38;2;248;248;242m [38;2;248;248;242mprintln![38;2;248;248;242m([38;2;230;219;116m"[38;2;0;0;0m[48;2;255;231;146m*match to this line*[38;2;230;219;116m[48;2;51;51;51m"[38;2;248;248;242m)[38;2;248;248;242m;[38;2;248;248;242m[48;2;51;51;51m [0m | ||
[38;2;128;128;128m 4 │ [38;2;248;248;242m [38;2;248;248;242m}[38;2;248;248;242m[0m | ||
[38;2;128;128;128m 5 │ [38;2;248;248;242m [38;2;102;217;239mfn[38;2;248;248;242m [38;2;166;226;46mbar[38;2;248;248;242m([38;2;248;248;242m)[38;2;248;248;242m [38;2;248;248;242m{[38;2;248;248;242m[0m | ||
[38;2;248;248;242m 6[38;2;128;128;128m │ [48;2;51;51;51m[38;2;248;248;242m [38;2;248;248;242mprintln![38;2;248;248;242m([38;2;230;219;116m"[38;2;0;0;0m[48;2;255;231;146m*match to this line*[38;2;230;219;116m[48;2;51;51;51m"[38;2;248;248;242m)[38;2;248;248;242m;[38;2;248;248;242m[48;2;51;51;51m [0m | ||
[38;2;128;128;128m 7 │ [38;2;248;248;242m [38;2;248;248;242m}[38;2;248;248;242m[0m | ||
[38;2;128;128;128m 8 │ [38;2;248;248;242m[0m | ||
[38;2;128;128;128m 9 │ [38;2;248;248;242m [38;2;102;217;239mfoo[38;2;248;248;242m([38;2;248;248;242m)[38;2;248;248;242m;[38;2;248;248;242m[0m | ||
[38;2;128;128;128m 10 │ [38;2;248;248;242m [38;2;102;217;239mbar[38;2;248;248;242m([38;2;248;248;242m)[38;2;248;248;242m;[38;2;248;248;242m[0m | ||
[38;2;128;128;128m 11 │ [38;2;248;248;242m[0m | ||
[38;2;128;128;128m 12 │ [38;2;248;248;242m[0m | ||
[38;2;128;128;128m─────┴──────────────────────────────────────────────────────────────────────────[0m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
fn main() { | ||
fn foo() { | ||
println!("*match to this line*"); | ||
} | ||
fn bar() { | ||
println!("*match to this line*"); | ||
} | ||
|
||
foo(); | ||
bar(); | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
foo(); | ||
bar(); | ||
println!("*match to this line*"); | ||
foo(); | ||
bar(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters