From 65daf50d1153154297d02b5fa0cb32fbcb22ecf3 Mon Sep 17 00:00:00 2001 From: Matt Mundell Date: Thu, 6 Jun 2024 23:18:16 +0200 Subject: [PATCH 1/6] Remove dist --- dist/index.cjs | 32 -------------------------------- dist/index.d.cts | 4 ---- dist/index.d.ts | 4 ---- dist/index.js | 27 --------------------------- 4 files changed, 67 deletions(-) delete mode 100644 dist/index.cjs delete mode 100644 dist/index.d.cts delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js diff --git a/dist/index.cjs b/dist/index.cjs deleted file mode 100644 index b1806a4..0000000 --- a/dist/index.cjs +++ /dev/null @@ -1,32 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var lr = require('@lezer/lr'); -var language = require('@codemirror/language'); - -// This file was generated by lezer-generator. You probably shouldn't edit it. -const parser = lr.LRParser.deserialize({ - version: 14, - states: "8SQQOPOOO!OOPO'#C^O!TOPO'#C`O!YOPO'#CcO!_OPO'#CeO!dOPO'#CgO!iOPO'#ChOOOO'#Cd'#CdO!nOPO'#CnO#POPO'#CoOOOO'#Ct'#CtO#bOPO'#CtO#gOPO'#CmO#uOPO'#CkO#zOPO'#CpOOOO'#Cw'#CwOOOO'#Cq'#CqQ$POPO'#CqQQOPOOO$UOQO,58xO$ZOQO,58zO$`OSO,58}O$eOSO,59PO$mOWO,59RO$rOWO,59SO$wOPO,59YO%YOPO,59YO%eOPO,59YO%sOPO,59ZO&UOPO,59ZO&aOPO,59ZOOOO,59`,59`O&oOPO,59XOOOO-E6r-E6rO&zOSO,59VO'SOQO,59[OOOO,59],59]OOOO-E6o-E6oO'XOPO1G.dO'^OQO'#CaO'cOQO1G.fO'hOPO1G.iO'mOPO1G.kO'rOPO1G.lO'wOPO1G.mO'|OPO1G.nO(ROPO1G.oO(ZOPO1G.tO(fOPO1G.tO(tOPO1G.pO(|OPO1G.uO)XOPO1G.uO)gOSO'#ClO)lOPO1G.qO)qOPO1G.vO)vOPO7+$OO*UOQO,58{O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qPOY#oZ]#o^p#oq#a#o#a#b!)O#b;'S#o;'S;=`$W<%lO#o~!)TWqPOY#oZ]#o^p#oq#]#o#]#^!)m#^;'S#o;'S;=`$W<%lO#o~!)rWqPOY#oZ]#o^p#oq#`#o#`#a!*[#a;'S#o;'S;=`$W<%lO#o~!*aWqPOY#oZ]#o^p#oq#T#o#T#U!*y#U;'S#o;'S;=`$W<%lO#o~!+OWqPOY#oZ]#o^p#oq#f#o#f#g!+h#g;'S#o;'S;=`$W<%lO#o~!+mWqPOY#oZ]#o^p#oq#]#o#]#^!,V#^;'S#o;'S;=`$W<%lO#o~!,[WqPOY#oZ]#o^p#oq#h#o#h#i!,t#i;'S#o;'S;=`$W<%lO#o~!,yWqPOY#oZ]#o^p#oq#m#o#m#n!-c#n;'S#o;'S;=`$W<%lO#o~!-jU!]~qPOY#oZ]#o^p#oq;'S#o;'S;=`$W<%lO#oT!.RWqPOY#oZ]#o^p#oq#c#o#c#d!.k#d;'S#o;'S;=`$W<%lO#oT!.rU!PSqPOY#oZ]#o^p#oq;'S#o;'S;=`$W<%lO#o", - tokenizers: [0, 1, 2, 3], - topRules: {"Source":[0,1]}, - tokenPrec: 991 -}); - -const diffLanguage = language.LRLanguage.define({ - parser: parser.configure({}), -}); -function diff() { - return new language.LanguageSupport(diffLanguage); -} - -exports.diff = diff; -exports.diffLanguage = diffLanguage; diff --git a/dist/index.d.cts b/dist/index.d.cts deleted file mode 100644 index 4e8e52c..0000000 --- a/dist/index.d.cts +++ /dev/null @@ -1,4 +0,0 @@ -import { LRLanguage, LanguageSupport } from "@codemirror/language"; -declare const diffLanguage: LRLanguage; -declare function diff(): LanguageSupport; -export { diffLanguage, diff }; diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 4e8e52c..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { LRLanguage, LanguageSupport } from "@codemirror/language"; -declare const diffLanguage: LRLanguage; -declare function diff(): LanguageSupport; -export { diffLanguage, diff }; diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 458d8ce..0000000 --- a/dist/index.js +++ /dev/null @@ -1,27 +0,0 @@ -import { LRParser } from '@lezer/lr'; -import { LRLanguage, LanguageSupport } from '@codemirror/language'; - -// This file was generated by lezer-generator. You probably shouldn't edit it. -const parser = LRParser.deserialize({ - version: 14, - states: "8SQQOPOOO!OOPO'#C^O!TOPO'#C`O!YOPO'#CcO!_OPO'#CeO!dOPO'#CgO!iOPO'#ChOOOO'#Cd'#CdO!nOPO'#CnO#POPO'#CoOOOO'#Ct'#CtO#bOPO'#CtO#gOPO'#CmO#uOPO'#CkO#zOPO'#CpOOOO'#Cw'#CwOOOO'#Cq'#CqQ$POPO'#CqQQOPOOO$UOQO,58xO$ZOQO,58zO$`OSO,58}O$eOSO,59PO$mOWO,59RO$rOWO,59SO$wOPO,59YO%YOPO,59YO%eOPO,59YO%sOPO,59ZO&UOPO,59ZO&aOPO,59ZOOOO,59`,59`O&oOPO,59XOOOO-E6r-E6rO&zOSO,59VO'SOQO,59[OOOO,59],59]OOOO-E6o-E6oO'XOPO1G.dO'^OQO'#CaO'cOQO1G.fO'hOPO1G.iO'mOPO1G.kO'rOPO1G.lO'wOPO1G.mO'|OPO1G.nO(ROPO1G.oO(ZOPO1G.tO(fOPO1G.tO(tOPO1G.pO(|OPO1G.uO)XOPO1G.uO)gOSO'#ClO)lOPO1G.qO)qOPO1G.vO)vOPO7+$OO*UOQO,58{O$ZOQO7+$QO)vOPO7+$TO)vOPO7+$VO)vOPO7+$WO*ZOQO7+$XO*`OQO7+$YO)vOPO7+$ZO*eOPO7+$`O*jOPO7+$`O)vOPO7+$[O*uOPO7+$aO*zOPO7+$aOOOO'#Cs'#CsO+VOSO,59WO&zOSO7+$]O+bOSO7+$bO+gOQO'#C|OOOO'#C_'#C_O+uOPO<>L_O5oOQO$D!AyO5tOQO$I47eO5yOQO$NF-PO6OOQO%&*!kO6TOQO%+;FVO6YOQO%0M;qO6_OQO%611]O6d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]#o^p#oq#]#o#]#^!,V#^;'S#o;'S;=`$W<%lO#o~!,[WqPOY#oZ]#o^p#oq#h#o#h#i!,t#i;'S#o;'S;=`$W<%lO#o~!,yWqPOY#oZ]#o^p#oq#m#o#m#n!-c#n;'S#o;'S;=`$W<%lO#o~!-jU!]~qPOY#oZ]#o^p#oq;'S#o;'S;=`$W<%lO#oT!.RWqPOY#oZ]#o^p#oq#c#o#c#d!.k#d;'S#o;'S;=`$W<%lO#oT!.rU!PSqPOY#oZ]#o^p#oq;'S#o;'S;=`$W<%lO#o", - tokenizers: [0, 1, 2, 3], - topRules: {"Source":[0,1]}, - tokenPrec: 991 -}); - -const diffLanguage = LRLanguage.define({ - parser: parser.configure({}), -}); -function diff() { - return new LanguageSupport(diffLanguage); -} - -export { diff, diffLanguage }; From 63ba7e7c1ffc0683fcfb8b86d1c29ca001efffdb Mon Sep 17 00:00:00 2001 From: Matt Mundell Date: Thu, 6 Jun 2024 23:23:47 +0200 Subject: [PATCH 2/6] Add type info --- src/syntax.grammar.d.ts | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 src/syntax.grammar.d.ts diff --git a/src/syntax.grammar.d.ts b/src/syntax.grammar.d.ts new file mode 100644 index 0000000..38f49b4 --- /dev/null +++ b/src/syntax.grammar.d.ts @@ -0,0 +1,3 @@ +import {LRParser} from "@lezer/lr" + +export declare const parser: LRParser From 9d80d4af3dd13b37e8402652e74fcef47c29e9c0 Mon Sep 17 00:00:00 2001 From: Matt Mundell Date: Thu, 6 Jun 2024 23:40:25 +0200 Subject: [PATCH 3/6] Correct import --- test/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index 6f78c5b..6f20719 100644 --- a/test/test.js +++ b/test/test.js @@ -1,4 +1,4 @@ -import { DiffLanguage } from "../dist/index.js"; +import { diffLanguage } from "../dist/index.js"; import { fileTests } from "@lezer/generator/dist/test"; import * as fs from "fs"; @@ -15,6 +15,6 @@ for (let file of fs.readdirSync(caseDir)) { fs.readFileSync(path.join(caseDir, file), "utf8"), file )) - it(name, () => run(DiffLanguage.parser)); + it(name, () => run(diffLanguage.parser)); }); } From b09771133b109de18c3ad55f90361802ea29c3e0 Mon Sep 17 00:00:00 2001 From: Matt Mundell Date: Thu, 6 Jun 2024 23:45:12 +0200 Subject: [PATCH 4/6] Improve the location token test --- test/text.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/text.txt b/test/text.txt index 1f286e8..6b0035d 100644 --- a/test/text.txt +++ b/test/text.txt @@ -122,14 +122,14 @@ index 76fd2af..308ff34 100644 --- a/runtime/queries/elixir/highlights.scm +++ b/runtime/queries/elixir/highlights.scm @@ -125,7 +125,8 @@ - (sigil + (sigil @@ -125,7 +125,8 @@ (sigil_name) @__name__ quoted_start: _ @string.special - quoted_end: _ @string.special) @string.special + quoted_end: _ @string.special + (#not-eq? @__name__ "H")) @string.special - ; Calls + ; Calls @@ -125,7 +125,8 @@ diff --git a/runtime/queries/elixir/injections.scm b/runtime/queries/elixir/injections.scm index 321c90a..b4a5cba 100644 From 4de8e032b383084c47db603e027116520e9a4947 Mon Sep 17 00:00:00 2001 From: Matt Mundell Date: Thu, 6 Jun 2024 23:50:30 +0200 Subject: [PATCH 5/6] Add tests that show a few issues --- test/binary.txt | 14 ++++++++ test/text.txt | 86 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) diff --git a/test/binary.txt b/test/binary.txt index 18ce527..c7c3049 100644 --- a/test/binary.txt +++ b/test/binary.txt @@ -12,6 +12,20 @@ Source( BinaryChange(Filename,Filename) ) +# Single-file small change with spaces in file names + +diff --git a/tree-sitter-gitdiff.wasm b/tree-sitter-gitdiff.wasm +index 0e9e828..3e32290 100755 +Binary files a/tree sitter gitdiff.wasm and b/tree sitter gitdiff.wasm differ + +==> + +Source( + Command, + Index(Commit,Commit,Mode), + BinaryChange +) + # Deleted binary file diff --git a/docs/playground.png b/docs/playground.png diff --git a/test/text.txt b/test/text.txt index 6b0035d..47dd0cb 100644 --- a/test/text.txt +++ b/test/text.txt @@ -1,3 +1,89 @@ +# Context + +diff --git x y + this is context + +==> + +Source( + Command(Filename,Filename), + Context, +) + +# Context contains the word diff + +diff --git x y + this is diff context + +==> + +Source( + Command(Filename,Filename), + Context, +) + +# Addition + +diff --git x y ++cramped ++ space + +==> + +Source( + Command(Filename,Filename), + Addition, + Addition, +) + +# Addition with diff and + + +diff --git x y ++cramped with diff ++ space + the end + +==> + +Source( + Command(Filename,Filename), + Addition, + Addition, +) + +# Space in file name + +diff --git a/space b b/space b + +==> + +Source( + Command(Filename,Filename), +) + +# New file + +diff --git a/x b/y ++++ file name with spaces/dir with spaces + +==> + +Source( + Command(Filename,Filename), + NewFile(Filename), +) + +# Location + +diff --git a/x b/y +@@ -1,4 +1,4 @@ + +==> + +Source( + Command(Filename,Filename), + Location(Linerange, Linerange), +) + # Single-file small change diff --git a/grammar.js b/grammar.js From fa341aeac8d7fbd6eb5094ca193dd9deb384ba7e Mon Sep 17 00:00:00 2001 From: Matt Mundell Date: Thu, 6 Jun 2024 23:58:38 +0200 Subject: [PATCH 6/6] Use a simpler grammar to address issues --- src/syntax.grammar | 83 ++++++++++------------------------------------ test/binary.txt | 22 +++++++++--- test/text.txt | 28 ++++++++-------- 3 files changed, 50 insertions(+), 83 deletions(-) diff --git a/src/syntax.grammar b/src/syntax.grammar index e8d82a3..26c5e3d 100644 --- a/src/syntax.grammar +++ b/src/syntax.grammar @@ -18,39 +18,29 @@ line { } Similarity { - similarity " " "index" " " digit digit? digit? "%" + "similarity index " digit digit? digit? "%" } -Addition { - (plus (anything? " ")* anything?) | - (plus plus (anything? " ")* anything?) | - (plus plus plus) - (plus plus plus plus (anything? " ")* anything?) -} +Addition { "+" anything? } -Deletion { - (minus (anything? " ")* anything?) | - (minus minus (anything? " ")* anything?) | - (minus minus minus) - (minus minus minus minus (anything? " ")* anything*) -} +Deletion { "-" anything? } -Location { location " " Linerange " " Linerange " " "@@" (" " Context)? } +Location { "@@ " Linerange " " Linerange " @@" anything? } -Context { (anything? " ")+ anything? } +Context { " " anything? } Linerange { ("-" | "+") digit+ ("," digit+)? } -NewFile { plus plus plus " " Filename } +NewFile { "+++ " Filename } -OldFile { minus minus minus " " Filename } +OldFile { "--- " Filename } Command { - diff " " "--git" " " Filename " " Filename + "diff --git " anything } Index { - index " " Commit ".." Commit (" " Mode)? + "index " Commit ".." Commit (" " Mode)? } Commit { @@ -59,7 +49,7 @@ Commit { } BinaryChange { - binary " " "files" " " Filename " " "and" " " Filename " " "differ" + "Binary files " anything } FileChange { @@ -68,57 +58,20 @@ FileChange { FileNew | FileDeleted } -FileRenamedFrom { rename " " "from" " " Filename } -FileRenamedTo { rename " " "to" " " Filename } -FileDeleted { deleted " " "file" " " "mode" " " Mode } -FileNew { new " " "file" " " "mode" " " Mode } +FileRenamedFrom { "rename from " Filename } +FileRenamedTo { "rename to " Filename } +FileDeleted { "deleted file mode " Mode } +FileNew { "new file mode " Mode } Mode { digit digit digit digit digit digit } -Filename { - fileA | fileB | devNull | relativeFilename -} -relativeFilename { anything ("/" anything )* } -fileA { a relativeFilename } -fileB { b relativeFilename } +Filename { anything } -@tokens { - diff { "diff" } - index { "index" } - location { "@@" } - binary { "Binary" } - deleted { "deleted" } - new { "new" } - rename {"rename"} - plus { "+" } - minus { "-" } - similarity { "similarity" } - a { "a/" } - b { "b/" } - devNull { "/dev/null" } - noNewLineAtTheEndOfNewFile { "\\ No newline at end of file" } +noNewLineAtTheEndOfNewFile { "\\ No newline at end of file" } +@tokens { hex { $[a-f0-9] } newline { "\r"? "\n" } - anything { ![ \r\n]+ } + anything { ![\r\n]+ } digit { @digit } - - @precedence { - diff, - index, - location, - binary, - deleted, - new, - rename, - plus, - minus, - similarity, - a, - b, - devNull, - noNewLineAtTheEndOfNewFile, - anything - } } - diff --git a/test/binary.txt b/test/binary.txt index c7c3049..ff96e0e 100644 --- a/test/binary.txt +++ b/test/binary.txt @@ -7,9 +7,23 @@ Binary files a/tree-sitter-gitdiff.wasm and b/tree-sitter-gitdiff.wasm differ ==> Source( - Command(Filename,Filename), + Command, + Index(Commit,Commit,Mode), + BinaryChange +) + +# Single-file small change with spaces in file names + +diff --git a/tree-sitter-gitdiff.wasm b/tree-sitter-gitdiff.wasm +index 0e9e828..3e32290 100755 +Binary files a/tree sitter gitdiff.wasm and b/tree sitter gitdiff.wasm differ + +==> + +Source( + Command, Index(Commit,Commit,Mode), - BinaryChange(Filename,Filename) + BinaryChange ) # Single-file small change with spaces in file names @@ -36,8 +50,8 @@ Binary files a/docs/playground.png and /dev/null differ ==> Source( - Command(Filename,Filename), + Command, FileChange(FileDeleted(Mode)), Index(Commit,Commit), - BinaryChange(Filename,Filename) + BinaryChange ) diff --git a/test/text.txt b/test/text.txt index 47dd0cb..b63d25d 100644 --- a/test/text.txt +++ b/test/text.txt @@ -6,7 +6,7 @@ diff --git x y ==> Source( - Command(Filename,Filename), + Command, Context, ) @@ -18,7 +18,7 @@ diff --git x y ==> Source( - Command(Filename,Filename), + Command, Context, ) @@ -31,7 +31,7 @@ diff --git x y ==> Source( - Command(Filename,Filename), + Command, Addition, Addition, ) @@ -45,7 +45,7 @@ diff --git x y ==> Source( - Command(Filename,Filename), + Command, Addition, Addition, ) @@ -57,7 +57,7 @@ diff --git a/space b b/space b ==> Source( - Command(Filename,Filename), + Command, ) # New file @@ -68,7 +68,7 @@ diff --git a/x b/y ==> Source( - Command(Filename,Filename), + Command, NewFile(Filename), ) @@ -80,7 +80,7 @@ diff --git a/x b/y ==> Source( - Command(Filename,Filename), + Command, Location(Linerange, Linerange), ) @@ -104,11 +104,11 @@ index dc36969..f37fde0 100644 ==> Source( - Command(Filename,Filename), + Command, Index(Commit,Commit,Mode), OldFile(Filename), NewFile(Filename), - Location(Linerange,Linerange,Context), + Location(Linerange,Linerange), Context, Context, Context, @@ -129,7 +129,7 @@ index 0000000..e69de29 ==> Source( - Command(Filename,Filename), + Command, FileChange(FileNew(Mode)), Index(Commit,Commit) ) @@ -143,7 +143,7 @@ index e69de29..0000000 ==> Source( - Command(Filename,Filename), + Command, FileChange(FileDeleted(Mode)), Index(Commit,Commit) ) @@ -158,7 +158,7 @@ rename to tmp.md ==> Source( - Command(Filename,Filename), + Command, Similarity, FileChange(FileRenamedFrom(Filename)), FileChange(FileRenamedTo(Filename)), @@ -234,7 +234,7 @@ index 321c90a..b4a5cba 100644 ==> Source( - Command(Filename,Filename), + Command, Index(Commit,Commit,Mode), OldFile(Filename), NewFile(Filename), @@ -248,7 +248,7 @@ Source( Context, Context, Context, - Command(Filename,Filename), + Command, Index(Commit,Commit,Mode), OldFile(Filename), NewFile(Filename),