Skip to content

Commit

Permalink
reverted Ocaml file mappings, this change is in another PR
Browse files Browse the repository at this point in the history
  • Loading branch information
asalvi0 committed Aug 25, 2024
1 parent 64d0717 commit 7ed0b5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _automation/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,15 +362,15 @@ func (s *UpdateService) downloadPhp(ctx context.Context, g *Grammar) {
// ocaml is special since its folder structure is different from the other ones
func (s *UpdateService) downloadOcaml(ctx context.Context, g *Grammar) {
fileMapping := map[string]string{
"parser.c": "grammars/ocaml/src/parser.c",
"scanner.c": "grammars/ocaml/src/scanner.c",
"scanner.h": "include/scanner.h",
"parser.c": "ocaml/src/parser.c",
"scanner.cc": "ocaml/src/scanner.cc",
"scanner.h": "common/scanner.h",
}

url := g.ContentURL()
s.downloadFile(
ctx,
fmt.Sprintf("%s/%s/include/tree_sitter/parser.h", url, g.Revision),
fmt.Sprintf("%s/%s/ocaml/src/tree_sitter/parser.h", url, g.Revision),
fmt.Sprintf("%s/parser.h", g.Language),
nil,
)
Expand Down

0 comments on commit 7ed0b5f

Please sign in to comment.