diff --git a/crates/core/src/test.rs b/crates/core/src/test.rs index 640fbef9c..4f098225e 100644 --- a/crates/core/src/test.rs +++ b/crates/core/src/test.rs @@ -3123,6 +3123,33 @@ fn toml_table_rename() { .unwrap(); } +#[test] +fn simple_kotlin() { + run_test_expected({ + TestArgExpected { + pattern: r#" + |language kotlin + |`"Hello, World!"` => `"Hello, Marzano!"` + |"# + .trim_margin() + .unwrap(), + source: r#" + |fun main(args: Array) { + | println("Hello, World!") + |}"# + .trim_margin() + .unwrap(), + expected: r#" + |fun main(args: Array) { + | println("Hello, Marzano!") + |}"# + .trim_margin() + .unwrap(), + } + }) + .unwrap(); +} + #[test] fn multi_args_snippet() { run_test_match({ diff --git a/vendor/tree-sitter-gritql b/vendor/tree-sitter-gritql index f47103620..27d0549cb 160000 --- a/vendor/tree-sitter-gritql +++ b/vendor/tree-sitter-gritql @@ -1 +1 @@ -Subproject commit f47103620adcb5aa4f74ba4c52ef0f4e9461b950 +Subproject commit 27d0549cb603fff04176e62e79a5439fd93a3f75