Package Release Info

tree-sitter-0.25.3-160000.2.2

Update Info: Base Release
Available in Package Hub : 16.0

platforms

AArch64
ppc64le
s390x
x86-64

subpackages

tree-sitter

Change Logs

* Sat Apr 12 2025 michal.vyskocil@gmail.com
- update to 0.25.3:
  Full changelog: https://github.com/tree-sitter/tree-sitter/releases/tag/v0.25.3
  Bug Fixes
  * Fixed an infinite loop that could happen in some grammars during error
    recovery if the end of the file was reached.
  * Fixed a parser-generation error where internal character set constants were
    given external linkage, which could cause linking errors on some platforms
    if multiple Tree-sitter parsers were linked into the same application.
- update to 0.25.2:
  Full changelog: https://github.com/tree-sitter/tree-sitter/releases/tag/v0.25.2
  Bug Fixes
  * Fixed a crash that could occur when loading WASM-compiled languages that
    were generated with an earlier version of the Tree-sitter CLI.
  * Fixed incorrect tokenization when using WASM-compiled languages, if the
    language's external scanner did not assign to result_symbol
  * Fixed an infinite loop that could occur if external scanners returned
    empty extra tokens
* Mon Feb 03 2025 rrahl0@opensuse.org
- update to 0.25.1:
  * cli: Specify abi version via env var
  * bindings: Correct Zig bindings to expose a language function
  * lib: Prevent finished_tree assertion failure
  * Correct build steps for WASM files
  * rust: Correct doc comments
* Sat Feb 01 2025 rrahl0@opensuse.org
- update to 0.25.0:
  Full changelog: https://github.com/tree-sitter/tree-sitter/releases/tag/v0.25.0
  Notices:
  * web-tree-sitter was rewritten in TypeScript
  * Parsing and Querying should be cancelled using the "progress callback",
    rather than setting a timeout or a cancellation flag
  * MISSING nodes can now be queried
  * The ts_node_child_containing_descendant function was removed; use
    ts_node_child_with_descendant
  * TSInput now includes a (mandatory) new field DecodeFunction
  Breaking:
  * Properly handle UTF-16 endianness encoding
  * Bump internal abi to 15
  * Update playground with new web bindings
  * bindings: Update swift bindings
  * cli: Remove migration code for tree-sitter.json
  * generate: Use regex_syntax::Hir for expanding regexes
  * lib: Remove ts_node_child_containing_descendant
  * lib: Add the ability to specify a custom decode function
  * web: Rewrite the library in TypeScript
  * web: Use the WASM module in the bindings, and not the other way around
  * web: Rename pattern to patternIndex in QueryMatch
  * web: Deprecate Language.query in favor of new Query
- increase minimum rust version
* Fri Jan 17 2025 rrahl0@opensuse.org
- update to 0.24.7:
  * lib: Use inclusive range check for non-empty nodes in next sibling
    computation
* Tue Dec 31 2024 rrahl0@opensuse.org
- update to 0.24.6:
  * playground: backport new playground
* Fri Dec 13 2024 rrahl0@opensuse.org
- update to 0.24.5:
  * fix(lib): correct next sibling of zero width node
  * fix(lib): use clock_gettime on macOS again
  * feat: move scripts to xtasks
  * build: configure clippy lints at the workspace level
  * chore: remove unnecessary fuzz and profile helpers
  * build: tune compiler warnings
  * fix: compiler warning
  * build: treat incompatible pointer warning as error
  * fix(lib): handle compiler warnings
  * build(cmake): link wasmtime dependencies
  * fix: sync cmake with master
* Mon Nov 11 2024 rrahl0@opensuse.org
- update to 0.24.4:
  * loader: Add language_for_configuration
  * loader: Add error message when a tree-sitter.json file is invalid
  * node: Support single-file executables via bun build --compile
  * node: Update bindings when necessary
  * Return LanguageRef in Parser::language
  * bindings: Update CMakeLists.txt file
  * cli: Pass all fields to tree-sitter.json in init
  * cli: Use contains over is in warning
  * cmake: Use current source dir for EXISTS check
  * generate: Do not set the unit reduction symbol if it's in the extras array
  * init: Use current path if unspecified
  * init: Use camel name from config in missing spots
  * lib: Simplify edge cases with zero-width tokens
  * lib: Correctly fetch the node name in query errors
  * loader: Don't print warnings if the file is not found
  * loader: Improve language lookup speed
  * bindings: Rename cmake test target
  * Memory errors in wasm_store
* Thu Oct 10 2024 rrahl0@opensuse.org
- update to 0.24.3:
  * build: fix incorrect variable checks
  * fix(lib): correct unexpected side effect in get_column when the
    lexer is at EOF
  * build(deps): bump wasmtime to v25.0.2
* Sun Oct 06 2024 rrahl0@opensuse.org
- update to 0.24.2:
  * Drop legacy binding updates
  * templates: Properly replace author email
  * templates: Update npm packages
  * bindings: Improve cmake file
  * cmake: Support amalgamated build
  * cmake: Correct library scopes
  * make: Fix tree-sitter.pc generation
* Fri Oct 04 2024 rrahl0@opensuse.org
- update to 0.24.1:
  * fix(generate): move generated header files into the generate crate
- update do 0.24.0:
  * docs: add Kotlin to the playground
  * fix(generate): remove necessary files from gitignore template
  * feat(generate): bump tree-sitter dev dependency to 0.23
  * fix(cli): remove conflicting short flags in the fuzz subcommand
  * feat(bindings): bump go-tree-sitter version
  * docs(changelog): add 0.23.0 release notes
  * feat: add an API to time out query executions
  * fix(generate): disallow inline variables referencing themselves
  * fix(rust): add missing TSNode functions
  * fix(lib): correct extra node creation from non-zero root-alias cursors
  * fix(test): exit with an error if a test marked with :error has no error
  * fix(test): retain attributes when running test -u
  * feat(language): derive Clone and Copy on LanguageFn
  * fix(lib): backtrack to the last relevant iterator if no child was found
  * fix(generate): add tree-sitter to the dev-dependencies of the Cargo.toml
  * fix(binding_web): correct edit signature
  * build(lib): build using cmake
  * fix(cli): keep skipped tests unchanged in the test/corpus
  * feat!: remove C++ support for external scanners
  * chore: clippy lints
  * feat!: remove the build-wasm subcommand
  * fix(generate): do not generate large character sets for unused variables
  * fix(binding_web): remove nonexistent function definition
  * feat: add field_name_for_named_child
  * fix(cli): remove duplicate short options from fuzz command
  * fix: correct comment quote
  * fix(generate): remove excludes in Package.swift
  * chore(bindings): update rust lib docs
  * build(deps): bump the cargo group across 1 directory with 11 updates
  * fix(docs): fix highlight readme example using compatible versions
  * fix(lib): peek at the next sibling when iterating to find the child
  * build(make): support darwin cross-compile
  * fix(wasm): use / paths for workdir
  * fix: properly handle utf8 code points for highlight and tag assertions
  * feat: add root field in node-types.json
  * fix(fuzz): skip tests marked with :skip & don't report errors on them
  * feat: add eslint configuration package
  * chore: remove compile_flags.txt
  * style(tests): do not use .as_bytes().len() on strings
  * feat: provide a rebuild flag to force rebuild parsers
  * feat(test): test all queries
  * fix(test): correctly handle assertions on empty lines
  * feat: add shell completions
  * refactor(cli): break out subcommand logic into separate functions
  * fix: do not generate spurious files if the grammar path is not the detected
  * fix: disallow empty string literals in rules
  * feat(cli): add a no-ranges flag to the parse command
  * fix(lib): correct descendant-for-range behavior with zero-width tokens
  * fix(lib): silence warnings with -Wpedantic
  * style(lib): add parameter names in declarations that are missing them
  * feat!: move generation of grammar files to an init command
  * chore: clippy fixes
  * feat: move generate logic to its own crate
  * feat(generate): add a no-op --no-bindings flag
  * Update cli/src/main.rs
  * refactor: improve the grammar schema
  * chore: update generate crate paths
  * build: bump deps
  * feat(init): add an update flag
  * feat!: implement StreamingIterator instead of Iterator for `Query…`
  * fix(lib)!: child_containing_descendant now returns direct children
  * feat: add --overview-only to test subcommand
  * fix: correct test name parsing when the prior test has equal signs
  * fix: handle more cases of editing subtrees that depend on column values
  * fix: exclude APIs that dup given file descriptors from WASI builds
  * feat: move tree-sitter configuration to dedicated file
  * fix(cli): generate the parser version from the config as well
  * fix: deprecate child_containing_descendant
  * fix(bindings): use RUST_BINDING_VERSION in Cargo.toml template
  * fix(bindings): lower go version to 1.22
  * build(bindings): add CMakeLists.txt file
  * feat(api): expose function to check if symbol represents a supertype
  * fix(init): fix some schema issues
  * fix(init): don't prompt to reconfigure
  * fix(init): do not migrate package.json on error
  * fix(build): correct wasm root path lookup
  * fix(generate): remove unused rules
  * fix(generate): add *.scm section to .editorconfig template
  * fix(generate): filter out unused rules in other spots
  * build(cmake): link wasmtime dependencies
  * fix(lib): ensure an unfinished state was found before removing it
  * fix(build): force rebuild parsers when build is invoked
  * build(xtask): bump cmake version in bump-version
  * build(xtask): only consider major and minor versions when validating
  * build(xtask): ignore the language crate
  * build: bump language to 0.1.1
Version: 0.20.8-bp156.1.12
* Thu Apr 06 2023 Andreas Schneider <asn@cryptomilk.org>
- Build AVX2 enabled hwcaps library for x86_64-v3
- Add baselibs.conf for proper generation of libraries.
* Wed Apr 05 2023 Matej Cepl <mcepl@suse.com>
- Update to version 0.20.8:
  - 0.20.8 - recovered
  - cicd: fix bug in release workflow
  - Bumps [webbrowser](https://github.com/amodm/webbrowser-rs)
    from 0.5.5 to 0.8.3.
  - cli: Bump tree-sitter dependency to 0.20.10
  - Update python error corpus to reflect grammar changes
  - Improve the performance of running a query in a small range
    of a large file
  - Add API for checking if a pattern in a query is non-local
  - Fix bug in maintenance of query cursor's tree depth
  - Restructure query_cursor_advance to explicitly control which
    hidden nodes it descends into
  - Extract 'internal' versions of tree cursor movement fns that
    allow visiting hidden nodes
  - Group analysis state sets into QueryAnalysis struct
  - Precompute the set of repetition symbols that can match
    rootless patterns
  - Add --row-range, --quiet, and --time flags to query
    subcommand
  - Fix CLI build on windows
  - Clear the parse stack when terminating parsing early due to
    error cost
  - This fixes a bug where the parse tree would not be rebalanced
    if this code path was taken.
  - Add --dot flag to parse subcommand, for printing tree as DOT
    graph
  - Derive Hash for Language
  - docs: apply `scheme` marker for all query syntax snippets
  - fix: possible rollover of nanoseconds in clock.h
  - cli: make error message more specific for building in
    `docker`
  - cli: Improve init-config with respect to TREE_SITTER_DIR
  - docs: merge of all binding and grammar link PRs
  - Exclude huge generated files from `git diff` output
  - loader: use portable way of path joining
  - loader: add TREE_SITTER_LIBDIR; cli: add --libdir to
    `tree-sitter generate`
  - cli: add -b, --build flags for `tree-sitter generate`
  - Remove unused no-minimize arg for the generate command
  - cli: Fix build.rs in case of the current branch ref was
    packed
  - Support SHA lookup in .git/packed-refs
  - fix: possible rollover of nanoseconds in clock.h
  - Fix permanent rebuild triggering in a git worktree due to
    wrong git branch file path
  - fix(cli): Racing on playground webserver port binding
  - Fix test output formatting for rules starting with M/U
  - Allow web-tree-sitter to work with Emscripten 3
  - Add __cxa_atexit to exports
  - Add `memset` to exports
  - Add 'stringToUTF16' and 'AsciiToString' to exported method
  - Configure compiled WASM grammars to not catch rejections
  - Add Erlang to list of Available Parsers
  - Fix test output formatting for rules starting with M/U
  - Previously the rule names could not begin with an uppercase
    M or U because the test output formatter assumed that they
    represent special tokens: MISSING or UEXPECTED.
  - Allow retrieving a tree's list of included ranges, fix some
    included range bugs
  - Add tests that randomly edit files with disjoint included
    ranges
  - Fix suppression of empty tokens during error handling at
    included range boundaries
  - Fix parse error when reusing a node at the end of an included
    range
  - fix(cli): Racing on playground webserver port binding
  - Add doc comments for tree included ranges getter
  - Fix adjustment of trees' included ranges on edits
  - Add D grammar - it is quite complete for D 2.100.
  - Add Erlang to list of Available Parsers
  - Add twig parser in documentation
  - Fix integer size of subtree's child count field
  - Explain in the docs that npm install supports limited
    platforms
- Removed upstreamed patch CVE-2022-45299-update-webbrowser.patch
* Wed Mar 01 2023 Matej Cepl <mcepl@suse.com>
- VERSION string used in generating *.pc file
  (among other things) has been hardcoded to 0.6.3
  (gh#tree-sitter/tree-sitter#1608), we should at least fix it
  using sed.
Version: 0.20.7-bp155.2.6
* Wed Jan 18 2023 Matej Cepl <mcepl@suse.com>
- Add CVE-2022-45299-update-webbrowser.patch (copied from
  gh#tree-sitter/tree-sitter#2042) to use more recent version
  of webbrowser-rs, which has been fixed against CVE-2022-45299
  (bsc#1207196).
* Sat Sep 24 2022 socvirnyl.estela@gmail.com
- Update to version 0.20.7:
  * 0.20.7
  * Bump library versions
  * Build core wasm library with C++ exceptions disabled
  * Generate parsers with ABI version 14 by default
  * Tolerate tree edits whose old range extends beyond the end of the tree
  * Added documentation on web-tree-sitter edge cases
  * Add ts_tree_root_node_with_offset API
  * Fix typos
  * Update section-2-using-parsers.md
  * Add link to Racket language parser
* Sun Jun 19 2022 socvirnyl.estela@gmail.com
- Update to version 0.20.6:
  * 0.20.6
  * libs: 0.20.6
  * Properly incorporate lookahead bytes when recovering via missing token
  * Improve randomized testing setup
  * Run cargo test directly on CI
  * Set CLI as default workspace member
  * Don't generate primary states array if it will be unused due to abi version setting
  * tags: 0.20.2
  * 0.20.5
  * libs: 0.20.5
* Tue Feb 22 2022 Matej Cepl <mcepl@suse.com>
- Update to 0.20.4:
  - Always generate parser.h, regardless of chosen ABI version
  - add test for removals in eager query matches
  - remove non-local query matches for locals
  - remove unfinished queries from 'ts_query_cursor_remove_match'
  - prevent future matches for '#is-not? local' patterns
  - Represent quantifiers using bytes instead of ints
  - Prefix globally visible TSquantifier values
  - Rewrite quantifier oeprations
  - Add pointer indirection to AnalysisStateSet
  - Fixed rust build, updated docs
  - get_column now counts codepoints
  - Add realloc to wasm exports
  - Add link to Protocol Buffers grammar
  - Convert more fixture grammars from JSON to JS
  - Simplify allocation-recording in test suite using new
    ts_set_allocator API
  - Address feedback
  - Make SubtreeInlineData work on Big-Endian
  - Replace allocator struct with function pointers
  - cli: Fix parsing of test files with newlines in test names
  - Avoid allocator from being switched more than once
  - Remove ts_allocator from api.h
  - Add TSAllocator and ts_set_allocator in api.h
  - Fix declaration of ts_toggle_allocation_recording
  - Allow to change the allocator dynamically
  - Support @module as a highlight key.
  - add link to in-development Elixir parser
  - Added bindings for Java and Kotlin to `index.md`
  - Remove unnecessary types from binding.rs
  - Always include playground.html in the CLI binary
  - playground: Make query error underlines render in safari
  - web: Fix script directory that's passed to locateFile
  - Use serde's derive feature everywhere
  - Improve query execution logging
  - Rename Query::step_is_definite ->
    is_pattern_guaranteed_at_step
  - Add link to Lua bindings
  - Convert more test grammars from JSON to JS
  - Add link to swift bindings package
  - Convert some of the fixture grammars from JSON to JS
  - Use serde's derive feature
  - Simplified corpus test output comparisons
  - Add link to elisp parser
  - Add tree-sitter-cuda, tree-sitter-glsl,
    tree-sitter-commonlisp
  - Avoid dynamic regex construction when parsing test files
  - chore(cli): Rename all internal web_ui stuff to playground
  - cli(query): Improve and unify query subcommand output
  - binding(rust): Mark set_cancellation_flag self as mutable
  - fix(wasm): Fix predicates in alternations, resolves #1392
  - fix(cli): Panic on queries containing alternation with
    predicates
  - Add WGSL WebGPU Shading Language
  - Add HCL (Terraform) and Hack to the list of supported
    languages
  - Add link to OCaml bindings to list and sort list
    alphabetically.
  - Add Objective-C language parser
  - feat(rust): Add an id() method for QueryMatch
  - Assign ids to query matches only when the matches are
    returned
  - feat(cli): add a flag to compile a parser in debug mode with
  - O0 C/C++ compiler flag
  - Put emscripten-version file in cli directory
  - Fix 'include!' error when building the CLI outside of the
    repo
  - fix(lib): fix segfault on ts_query_new with incompatible
    grammar version, close #1318
  - Add Graphviz DOT parser
  - chore(web): Add the LICENSE file to the web-tree-sitter npm
    package
  - chore(cli): Add the LICENSE file to the tree-sitter-cli npm
    package
  - Support for suffixes in test file separators Some languages
    use the non-suffixed separators in their syntax Fixes #982
  - Handle aliases in unicode property escapes in regexes
  - Update `smallbitvec` dependency
  - `Generator::add_parse_table`: Store entries in hash map
  - Use `IndexMap` and `FxHash` for some hot hash maps
  - fix(cli): Remove tree-sitter grammar ./... call limitation
  - Always print where the playground is running
  - Correct quiet description for playground
  - fix(cli): allow dead code in Logger
  - docs(Using parsers): Fix spelling, remove unusual keyword
  - Fix highlighting typo on "creating parsers" site
  - feat(cli): Make "test" output more readable
  - fix(cli): Improve error messages on config.json loading,
    closes #1227
  - fix(parser): count rows in the debug log from 0
  - Docs: document `_` wildcard node
  - Add SQL parser
  - feat(cli): Add a lot of help messages for CLI options
  - fix(cli): fix theme key loading from config.json, closes
    [#1232]
  - fix(cli): Avoid ENOENT if config.json is not in
    TREE_SITTER_DIR
  - feat(cli/loader): Add TREE_SITTER_INTERNAL_BUILD C/C++
    compiler definition
  - feat(cli): Set TREE_SITTER_DEBUG env var on 'tree-sitter
    parse -d'
  - allow `~` or `$HOME` in `parser-directories`
  - update set_included_ranges to modify extent if the current
    position is at the very beginning of the included range
* Fri Nov 05 2021 William Brown <william.brown@suse.com>
- Add cargo audit service to detect potential security issues
* Fri Jul 02 2021 Matej Cepl <mcepl@suse.com>
- Update to 0.20.0.
* Tue Apr 27 2021 Duncan Mac-Vicar <duncan@mac-vicar.eu>
- Update to 0.19.4.
* Thu Mar 18 2021 Matej Cepl <mcepl@suse.com>
- Update to 0.19.3.
* Wed Feb 24 2021 Matej Cepl <mcepl@suse.com>
- Update to 0.18.2:
  There isn’t good changelog, so the best I have is
  https://github.com/tree-sitter/tree-sitter/compare/0.17.3...v0.18.2
* Sun Nov 15 2020 Matej Cepl <mcepl@suse.com>
- Add fix_build_aarch64.patch (gh#tree-sitter/tree-sitter#804) to fix
  build on aarch64.
* Sat Nov 07 2020 Matej Cepl <mcepl@suse.com>
- The initial packaging of tree-sitter 0.17.3.