-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the ocaml-tree-sitter runtime library (#510)
* Use new OCaml code generator and runtime with support for extras * Add lists of languages that need this or that version of tree-sitter. * Fix gitignore * Update core submodule * Add missing languages to lists of languages * Add missing language * Restore version of tree-sitter-julia supported by semgrep * Update core, requires regenerating all languages * Add lists of languages for the 'release' command * Add readme * Undo PR #488 because the corresponding changes weren't made in semgrep * Revert 2 recent semgrep-go commits by Brandon and Yosef because the accompanying changes in semgrep are not ready. We're reverting the contents of semgrep-go to commit 9b59bf4 * Update core * Promote html parser from tree-sitter 0.20.6 to 0.22.6 * Use a patched version of tree-sitter-vue that avoids HTML parsing errors in programs where both semgrep-vue and semgrep-html are used. * Add safeguard against running into the same tree-sitter-vue issue again * Update core
- Loading branch information
Showing
18 changed files
with
145 additions
and
336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule core
updated
from c085bc to e063ec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apex | ||
bash | ||
c-sharp | ||
dart | ||
elixir | ||
fsharp | ||
hack | ||
hcl | ||
java | ||
javascript | ||
lua | ||
php | ||
python | ||
r | ||
ruby | ||
rust | ||
sml | ||
solidity | ||
tsx | ||
typescript | ||
vue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
c | ||
cairo | ||
circom | ||
clojure | ||
cpp | ||
dockerfile | ||
go | ||
haskell | ||
html | ||
jsonnet | ||
julia | ||
kotlin | ||
make | ||
move-on-aptos | ||
move-on-sui | ||
ocaml | ||
promql | ||
proto | ||
ql | ||
sqlite | ||
swift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
bash | ||
c-sharp | ||
dart | ||
elixir | ||
fsharp | ||
hack | ||
hcl | ||
java | ||
javascript | ||
lua | ||
php | ||
python | ||
r | ||
ruby | ||
rust | ||
sfapex | ||
sml | ||
solidity | ||
typescript | ||
vue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
The files languages-0.20.6, languages-0.22.6, language-variants-0.20.6, | ||
and language-variants-0.22.6 contain lists of languages that are useful | ||
when regenerating the code for all the languages when necessary. | ||
|
||
We're in a situation where some languages are stuck with tree-sitter 0.20.6. | ||
The language names in languages-* are suitable for the `test-lang` script. | ||
The dialect names in language-variants-* are suitable for the `release` | ||
script. | ||
|
||
Sample Bash commands iterating over languages: | ||
|
||
$ for x in $(cat languages-0.22.6,); do ./test-lang $x || break; done | ||
|
||
$ for x in $(cat language-variants-0.22.6,); do ./release $x || break; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
c | ||
cairo | ||
circom | ||
clojure | ||
cpp | ||
dockerfile | ||
go | ||
haskell | ||
html | ||
jsonnet | ||
julia | ||
kotlin | ||
make | ||
move-on-aptos | ||
move-on-sui | ||
ocaml | ||
promql | ||
proto | ||
ql | ||
sqlite | ||
swift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
/semgrep-*/**/index.js | ||
/semgrep-*/**/src | ||
/semgrep-*/**/inherited | ||
/semgrep-*/test.log | ||
/semgrep-*/**/test.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.