tree-sitter-ocaml
tree-sitter-ocaml copied to clipboard
Fix some issues with building the project on macos
Fixes a couple issues I ran into when building the project on macos:
- Without the
\in theSONAME_MINORline,makefailed with:
/Library/Developer/CommandLineTools/usr/bin/make -C grammars/ocaml all
../../common/common.mak:39: *** unterminated call to function `shell': missing `)'. Stop.
make: *** [all] Error 2
with the \, the replacement still seems to work (at least on macos).
2. Depend directly on grammar.js instead of grammar.json, which is itself generated from grammar.js. This ensures that modifications to grammar.js get reflected in the parser without you needing to remember to separately call make generate.