diff --git a/test/corpus/generated/new_javascript.json b/test/corpus/generated/new_javascript.json new file mode 100644 index 000000000..e09f760c7 --- /dev/null +++ b/test/corpus/generated/new_javascript.json @@ -0,0 +1,14 @@ +[ + { + "language": "javascript", + "fileExt": ".js", + "repoUrl": "https://github.com/diff-fixtures/javascript.git", + "syntaxes": [ + { + "syntax": "object", + "insert": "{ \"key1\": \"value1\" };", + "replacement": "{ \"key1\": \"value1\", \"key2\": \"value2\", \"key3\": \"3.0\" };" + } + ] + } +] diff --git a/test/corpus/generated/new_ruby.json b/test/corpus/generated/new_ruby.json new file mode 100644 index 000000000..fc45e4358 --- /dev/null +++ b/test/corpus/generated/new_ruby.json @@ -0,0 +1,14 @@ +[ + { + "language": "ruby", + "fileExt": ".rb", + "repoUrl": "https://github.com/diff-fixtures/ruby.git", + "syntaxes": [ + { + "syntax": "hash", + "insert": "{ :key1 => \"value\", :key2 => 1, \"key3\" => false, :\"symbol_key\" => 10 }", + "replacement": "{ key1: \"changed value\", key2: 2, key3: true }" + } + ] + } +] diff --git a/vendor/tree-sitter-parsers b/vendor/tree-sitter-parsers index e8baa6b94..d2644acfa 160000 --- a/vendor/tree-sitter-parsers +++ b/vendor/tree-sitter-parsers @@ -1 +1 @@ -Subproject commit e8baa6b94205ddc2ac85887eb28f45a61f3aaa3b +Subproject commit d2644acfacf995d6c526a13d54a6b4d1f6ed4dc7