Skip to content

Commit

Permalink
Remove '--git' assumption
Browse files Browse the repository at this point in the history
Assume that any string is fine. If it's a different diff format then the
parser will fail anyways.
  • Loading branch information
the-mikedavis committed Apr 15, 2024
1 parent c165725 commit 886bb51
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ module.exports = grammar({
)
),

// FIXME: remove git assumption
command: ($) => iseq("diff", "--git", $.filename),
command: ($) => iseq("diff", /[-\w]+/, $.filename),

file_change: ($) =>
iseq(
Expand Down

0 comments on commit 886bb51

Please sign in to comment.