From 58c82a45bb904d63c2d6812e125e78f29825fd0b18233c4c0bbb3593cd08b676 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Mon, 24 Jun 2024 08:30:10 +0000 Subject: [PATCH] - update to version 0.22.6: * Improve handling of serialization buffer overflows * Reverse iteration through node parents * cli: Support NO_COLOR * cli: Add test listing and allow users to parse a specific test number * grammar: Add "inherits" field if available * Correctly load field data from wasm languages * Improve error message when the tree-sitter field is malformed * Don't error out on package.json lookup errors if --no-bindings is passed * cli: Keep default cc flags in build * cli: Properly account for multi-grammar repos when using docker to build a wasm parser * generate: Don't check arbitrarily named dirs * generate: Take AsRef for the path parameter to avoid clones * highlight: Correct signature of ts_highlighter_add_language * lib: Do not return field names for extras * lib: Advance the lookahead end byte by 4 when there's an invalid code point * rust: Update README example * rust: Use unix + wasi cfg instead of not windows for fd * wasm: Correct childrenFromFieldXXX method signatures * xtask: Always bump every crate in tandem * zig: Make usable as a zig dependency * Documentation: Mention build command variables - update to version 0.22.5: * Avoid generating unused character set constants * rust: Compilation on wasm32-wasi - update to version 0.22.4: * Fix sorting of transitions within a lex state * Include 2-character ranges in array-based state transitions - update to version 0.22.3: * Add strncat to wasm stdlib OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=27 --- tree-sitter-0.22.2.tar.xz | 3 -- tree-sitter-0.22.6.tar.xz | 3 ++ tree-sitter.changes | 59 +++++++++++++++++++++++++++++++++++++++ tree-sitter.spec | 7 ++++- vendor.tar.zst | 4 +-- 5 files changed, 70 insertions(+), 6 deletions(-) delete mode 100644 tree-sitter-0.22.2.tar.xz create mode 100644 tree-sitter-0.22.6.tar.xz diff --git a/tree-sitter-0.22.2.tar.xz b/tree-sitter-0.22.2.tar.xz deleted file mode 100644 index b12fbd8..0000000 --- a/tree-sitter-0.22.2.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0c829523b876d4a37e1bd46a655c133a93669c0fe98fcd84972b168849c27afc -size 3040339 diff --git a/tree-sitter-0.22.6.tar.xz b/tree-sitter-0.22.6.tar.xz new file mode 100644 index 0000000..306c1d9 --- /dev/null +++ b/tree-sitter-0.22.6.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e2b687f74358ab6404730b7fb1a1ced7ddb3780202d37595ecd7b20a8f41861f +size 3036954 diff --git a/tree-sitter.changes b/tree-sitter.changes index 010423c..8e48dbb 100644 --- a/tree-sitter.changes +++ b/tree-sitter.changes @@ -1,3 +1,62 @@ +------------------------------------------------------------------- +Fri Jun 21 20:32:46 UTC 2024 - Richard Rahl + +- update to version 0.22.6: + * Improve handling of serialization buffer overflows + * Reverse iteration through node parents + * cli: Support NO_COLOR + * cli: Add test listing and allow users to parse a specific test number + * grammar: Add "inherits" field if available + * Correctly load field data from wasm languages + * Improve error message when the tree-sitter field is malformed + * Don't error out on package.json lookup errors if --no-bindings is passed + * cli: Keep default cc flags in build + * cli: Properly account for multi-grammar repos when using docker to build a wasm parser + * generate: Don't check arbitrarily named dirs + * generate: Take AsRef for the path parameter to avoid clones + * highlight: Correct signature of ts_highlighter_add_language + * lib: Do not return field names for extras + * lib: Advance the lookahead end byte by 4 when there's an invalid code point + * rust: Update README example + * rust: Use unix + wasi cfg instead of not windows for fd + * wasm: Correct childrenFromFieldXXX method signatures + * xtask: Always bump every crate in tandem + * zig: Make usable as a zig dependency + * Documentation: Mention build command variables +- update to version 0.22.5: + * Avoid generating unused character set constants + * rust: Compilation on wasm32-wasi +- update to version 0.22.4: + * Fix sorting of transitions within a lex state + * Include 2-character ranges in array-based state transitions +- update to version 0.22.3: + * Add strncat to wasm stdlib + * Generate simpler code for matching large character sets + * When loading languages via WASM, gracefully handle memory errors and leaks in external scanners + * bindings: Add utf-8 flag to python & node + * bindings: Generate parser.c if missing + * bindings: Remove required platforms for swift + * cli: Fix mismatched parenthesis when accounting for && + * lib: Do not consider childless nodes for ts_node_parent + * lib: Properly account for aliased root nodes and root nodes with + children in ts_subtree_string + * lib: Account for the root node of a tree cursor being an alias + * lib: Use correct format specifier in log message + * parser: Fix variadic macro + * render: Proper function prototypes + * Add a semicolon after SKIP macros + * Add back build-wasm temporarily + * Add lifetime to matches function + * Default output directory for build --wasm should use current_dir + * Fix sorting of wasm stdlib symbols + * Insert "tree-sitter" section in current directory's package.json if it exists + * Tie the lifetime of the cursor to the query in QueryCursor::captures() + * Wrong flag check in build.rs + * cli: Reduced the compile time of generated parsers by generating C code with fewer conditionals + * parser: Make REDUCE macro non-variadic + * js: Misc fixes & tidying + * rust: Misc fixes & tidying + ------------------------------------------------------------------- Mon Mar 25 21:58:38 UTC 2024 - Björn Bidar diff --git a/tree-sitter.spec b/tree-sitter.spec index ad66f68..c7df875 100644 --- a/tree-sitter.spec +++ b/tree-sitter.spec @@ -19,7 +19,7 @@ %define somajor 0 %define libdirname tree_sitter Name: tree-sitter -Version: 0.22.2 +Version: 0.22.6 Release: 0 Summary: An incremental parsing system for programming tools License: GPL-2.0-only AND MIT @@ -73,6 +73,9 @@ developing applications that use %{name}. %prep %autosetup -p1 -a1 +#remove gitignore file from docs +rm %{_builddir}/%{name}-%{version}/docs/.gitignore + cp %{SOURCE21} . cp %{SOURCE22} . cp %{SOURCE23} . @@ -103,9 +106,11 @@ install -Dm644 %{SOURCE25} %{buildroot}%{_fileattrsdir}/$(basename %{SOURCE25}) install -Dm755 %{SOURCE26} %{buildroot}%{_rpmconfigdir}/$(basename %{SOURCE26}) %post -n lib%{name}%{somajor} -p /sbin/ldconfig + %postun -n lib%{name}%{somajor} -p /sbin/ldconfig %files +%license LICENSE %doc README.md CONTRIBUTING.md %{_bindir}/tree-sitter %{_rpmconfigdir}/tree-sitter-target.py diff --git a/vendor.tar.zst b/vendor.tar.zst index d612809..09364c4 100644 --- a/vendor.tar.zst +++ b/vendor.tar.zst @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:636609804ef5535c53a60e42ff1fac0a35d29aac4df98bd308fe2e7b25492b60 -size 30401756 +oid sha256:7f2474d2296b8fd10d99bc0aea493b12d35af6611997020cba12730636034912 +size 29035655