Commit
Author: Michael Davis [mcarsondavis@gmail.com]
Hash: 886bb5122a8e9a3b759efe24fa208856f75eceaa
Timestamp: Mon, 15 Apr 2024 15:51:10 +0000 (8 months ago)

+1 -2 +/-1 browse
Remove '--git' assumption
Remove '--git' assumption

Assume that any string is fine. If it's a different diff format then the
parser will fail anyways.
1diff --git a/grammar.js b/grammar.js
2index 278ccee..588ac40 100644
3--- a/grammar.js
4+++ b/grammar.js
5 @@ -64,8 +64,7 @@ module.exports = grammar({
6 )
7 ),
8
9- // FIXME: remove git assumption
10- command: ($) => iseq("diff", "--git", $.filename),
11+ command: ($) => iseq("diff", /[-\w]+/, $.filename),
12
13 file_change: ($) =>
14 iseq(