Add Diff language (#19129)
This commit is contained in:
parent
973143fa35
commit
c00f2d8842
8 changed files with 56 additions and 0 deletions
4
crates/languages/src/diff/config.toml
Normal file
4
crates/languages/src/diff/config.toml
Normal file
|
@ -0,0 +1,4 @@
|
|||
name = "Diff"
|
||||
grammar = "diff"
|
||||
path_suffixes = ["diff", "patch"]
|
||||
brackets = []
|
15
crates/languages/src/diff/highlights.scm
Normal file
15
crates/languages/src/diff/highlights.scm
Normal file
|
@ -0,0 +1,15 @@
|
|||
[
|
||||
(addition)
|
||||
(new_file)
|
||||
] @diff.plus
|
||||
|
||||
[
|
||||
(deletion)
|
||||
(old_file)
|
||||
] @diff.minus
|
||||
|
||||
(commit) @constant
|
||||
|
||||
(location) @attribute
|
||||
|
||||
(command) @function
|
Loading…
Add table
Add a link
Reference in a new issue