-
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.
fix: to work with 3.12 and add examples tests (#10)
* test: recalculate exapmes tests * style: apply black and add some comments * ci: fast test on 3.12 * test: add AST and data to examples * fix: add debug print in syntax match * test: fix test output with new version of tree-sitter * test: debug fail first test * ci: tmp true fast tests * refactor: bleu file to work with 3.12 * style: fix ruff
- Loading branch information
Showing
8 changed files
with
98 additions
and
334 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
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
# Copyright (c) Microsoft Corporation. | ||
# Copyright (c) 2023 Konstantin Chernyshev. | ||
# Licensed under the MIT license. | ||
|
||
from tree_sitter import Language | ||
|
||
Language.build_library( | ||
"my-languages.so", | ||
[ | ||
"tree-sitter/go", | ||
"tree-sitter/javascript", | ||
"tree-sitter/python", | ||
"tree-sitter/php", | ||
"tree-sitter/java", | ||
"tree-sitter/ruby", | ||
"tree-sitter/c-sharp", | ||
"tree-sitter/c", | ||
"tree-sitter/cpp", | ||
], | ||
) | ||
if __name__ == "__main__": | ||
Language.build_library( | ||
"my-languages.so", | ||
[ | ||
"tree-sitter/go", | ||
"tree-sitter/javascript", | ||
"tree-sitter/python", | ||
"tree-sitter/php", | ||
"tree-sitter/java", | ||
"tree-sitter/ruby", | ||
"tree-sitter/c-sharp", | ||
"tree-sitter/c", | ||
"tree-sitter/cpp", | ||
], | ||
) |
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.