Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit 7dc672b

Browse files
committed
fix(deps): update submodules to latest commits
There are breaking changes in some of the grammars. For example, the 'line_string_literal' and 'multi_line_string_literal' nodes have been removed from the Kotlin grammar and replaced with a single 'string_literal' node. Apart from this, there are breaking changes in the Python grammar as well. Signed-off-by: Akash Yadav <[email protected]>
1 parent 23132b5 commit 7dc672b

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
url = https://github.com/tree-sitter/tree-sitter-json.git
1616
[submodule "tree-sitter-kotlin/src/main/cpp/grammar"]
1717
path = tree-sitter-kotlin/src/main/cpp/grammar
18-
url = https://github.com/fwcd/tree-sitter-kotlin.git
18+
url = https://github.com/AndroidIDEOfficial/tree-sitter-kotlin

android-tree-sitter/src/test/java/com/itsaky/androidide/treesitter/ParserTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void testParse() throws UnsupportedEncodingException {
4242
try (TSTree tree = parser.parseString("print(\"hi\")")) {
4343
assertThat(tree.getRootNode().getNodeString())
4444
.isEqualTo(
45-
"(module (expression_statement (call function: (identifier) arguments: (argument_list (string)))))");
45+
"(module (expression_statement (call function: (identifier) arguments: (argument_list (string string_content: (string_content))))))");
4646
}
4747
}
4848
}
@@ -157,7 +157,7 @@ public void testKotlinGrammar() {
157157
final var rootNode = tree.getRootNode();
158158
assertThat(rootNode).isNotNull();
159159
assertThat(rootNode.getChildCount()).isGreaterThan(0);
160-
assertThat(rootNode.getNodeString()).isEqualTo("(source_file (class_declaration (type_identifier) (class_body (function_declaration (simple_identifier) (function_body (statements (call_expression (simple_identifier) (call_suffix (value_arguments (value_argument (line_string_literal)))))))))))");
160+
assertThat(rootNode.getNodeString()).isEqualTo("(source_file (class_declaration (type_identifier) (class_body (function_declaration (simple_identifier) (function_body (statements (call_expression (simple_identifier) (call_suffix (value_arguments (value_argument (string_literal)))))))))))");
161161
}
162162
}
163163
}

0 commit comments

Comments
 (0)