Commit Graph

38 Commits

Author SHA256 Message Date
Ana Guerrero
e546d6b50f Accepting request 1226339 from editors
OBS-URL: https://build.opensuse.org/request/show/1226339
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tree-sitter?expand=0&rev=16
2024-11-26 19:55:25 +00:00
Martin Pluskal
bedc578f43 - 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

OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=35
2024-11-25 19:56:30 +00:00
Ana Guerrero
5b6d7d0718 Accepting request 1217056 from editors
OBS-URL: https://build.opensuse.org/request/show/1217056
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tree-sitter?expand=0&rev=15
2024-10-23 19:09:00 +00:00
Martin Pluskal
e4f5a8607f - 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

OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=33
2024-10-22 14:43:36 +00:00
Ana Guerrero
5448f28610 Accepting request 1206288 from editors
OBS-URL: https://build.opensuse.org/request/show/1206288
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tree-sitter?expand=0&rev=14
2024-10-08 15:16:57 +00:00
Björn Bidar
b23614c9a8 - 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

- 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

OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=31
2024-10-08 10:10:46 +00:00
Ana Guerrero
41c2d78cf6 Accepting request 1201370 from editors
OBS-URL: https://build.opensuse.org/request/show/1201370
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tree-sitter?expand=0&rev=13
2024-09-18 13:26:42 +00:00
Björn Bidar
c23cd3b70c - update to 0.23.0:
* test: modernize scanner files
  * fix: always reset to the first language when iterating over language
  * feat(zig): update outdated path syntax
  * feat(bindings): add query constants to python
  * style(bindings): fix indent & line endings
  * feat(dsl)!: support other JS runtimes
  * feat(bindings): add node, python, swift tests 
  * introduce tree-sitter-language crate for grammar crates to depend on
  * refactor: remove ansi_term dependency
  * refactor: remove difference dependency
  * feat: add fuzz subcommand
  * fix(wasm): update test
  * feat(lib): add ts_query_end_byte_for_pattern
  * fix(rust): fix new clippy warnings
  * feat(lib): support no_std
  * Reset language when resetting wasm store
  * docs: clean up binding & parser lists
  * clone wasm store engine
  * fix(cli): dedup preceding_auxiliary_symbols
- use of ldconfig_scriptlets, and removal of the duplicate setting of buildflags

OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=29
2024-09-16 08:18:59 +00:00
Ana Guerrero
52b24ce6fa Accepting request 1182974 from editors
OBS-URL: https://build.opensuse.org/request/show/1182974
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tree-sitter?expand=0&rev=12
2024-06-24 18:50:46 +00:00
Martin Pluskal
58c82a45bb - 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<Path> 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
2024-06-24 08:30:10 +00:00
Ana Guerrero
ccd887b51f Accepting request 1162836 from editors
OBS-URL: https://build.opensuse.org/request/show/1162836
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tree-sitter?expand=0&rev=11
2024-03-28 12:52:32 +00:00
Martin Pluskal
4f0bc7765f Accepting request 1162313 from home:Thaodan:editors
- Add workaround to packaging macros for RPM being to old on current Leap
- Add workaround for Python below 3.9 on Leap

OBS-URL: https://build.opensuse.org/request/show/1162313
OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=25
2024-03-27 08:35:27 +00:00
Ana Guerrero
c7748fe0d2 Accepting request 1161444 from editors
OBS-URL: https://build.opensuse.org/request/show/1161444
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tree-sitter?expand=0&rev=10
2024-03-25 20:07:17 +00:00
Martin Pluskal
6291acbcdd Accepting request 1160845 from home:Thaodan:editors
- Add packaging macros for tree-sitter grammar
- Add missing dependency for tree-sitter generate

OBS-URL: https://build.opensuse.org/request/show/1160845
OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=23
2024-03-25 15:00:40 +00:00
Martin Pluskal
80f7b377e9 Accepting request 1159663 from home:uncomfyhalomacro:branches:editors
- Update to version 0.22.2:
  * fix(lib): allow hiding symbols
  * feat(lib): implement Display for Node
  * test: fix header writes
  * chore: turbofish styling
  * feat(cli)!: add a separate build command to compile parsers
  * ci: simplify workflows
  * docs(license): update year
  * fix(lib): avoid possible UB of calling memset on a null ptr when 0 is passed into `array_grow_by`
  * fix(lib): makefile installation
- Update _service file
  * replace obsoleted mode "disabled" with "manual"
  * use download_files instead of performing scm

OBS-URL: https://build.opensuse.org/request/show/1159663
OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=22
2024-03-22 19:27:01 +00:00
Dominique Leuenberger
34c7551867 Accepting request 1079999 from editors
- Build AVX2 enabled hwcaps library for x86_64-v3
- Add baselibs.conf for proper generation of libraries.

OBS-URL: https://build.opensuse.org/request/show/1079999
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tree-sitter?expand=0&rev=9
2023-04-18 13:52:51 +00:00
2a5a61b6ec Fix Source number
OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=20
2023-04-17 19:21:18 +00:00
d91e65a814 Add missing Sources.
OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=19
2023-04-17 19:19:02 +00:00
154238345b - Add baselibs.conf for proper generation of libraries.
OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=18
2023-04-17 19:17:25 +00:00
89bf897591 Accepting request 1079502 from home:gladiac:branches:editors
- Build AVX2 enabled hwcaps library for x86_64-v3

OBS-URL: https://build.opensuse.org/request/show/1079502
OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=17
2023-04-14 18:05:09 +00:00
Dominique Leuenberger
dc50bc5eba Accepting request 1077593 from editors
OBS-URL: https://build.opensuse.org/request/show/1077593
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tree-sitter?expand=0&rev=8
2023-04-06 13:56:07 +00:00
2b164493e4 Accepting request 1077592 from home:mcepl:neovim
- 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

OBS-URL: https://build.opensuse.org/request/show/1077592
OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=15
2023-04-05 19:29:14 +00:00
Dominique Leuenberger
826f5e7b12 Accepting request 1068467 from editors
OBS-URL: https://build.opensuse.org/request/show/1068467
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tree-sitter?expand=0&rev=7
2023-03-02 22:03:21 +00:00
e50cc08076 Accepting request 1068466 from home:mcepl:neovim
- 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.

OBS-URL: https://build.opensuse.org/request/show/1068466
OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=13
2023-03-01 14:00:47 +00:00
Dominique Leuenberger
ee6cb8ea60 Accepting request 1059323 from editors
- 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).

OBS-URL: https://build.opensuse.org/request/show/1059323
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tree-sitter?expand=0&rev=6
2023-01-18 13:23:18 +00:00
d10e68f11a - 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).

OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=11
2023-01-18 10:13:09 +00:00
Dominique Leuenberger
17587d85dd Accepting request 1006078 from editors
OBS-URL: https://build.opensuse.org/request/show/1006078
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tree-sitter?expand=0&rev=5
2022-09-26 16:48:35 +00:00
d896bd26b7 Accepting request 1005751 from home:uncomfyhalomacro:branches:editors
- 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

OBS-URL: https://build.opensuse.org/request/show/1005751
OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=9
2022-09-26 09:59:28 +00:00
Dominique Leuenberger
afc1a8e8fa Accepting request 983938 from editors
- 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

OBS-URL: https://build.opensuse.org/request/show/983938
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tree-sitter?expand=0&rev=4
2022-06-20 13:38:18 +00:00
7459992795 Update tarball
OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=7
2022-06-20 11:09:19 +00:00
1f89e0ab89 Accepting request 983682 from home:uncomfyhalomacro:branches:editors
- 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

OBS-URL: https://build.opensuse.org/request/show/983682
OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=6
2022-06-20 06:25:26 +00:00
Dominique Leuenberger
f053fc4679 Accepting request 957067 from editors
- 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

OBS-URL: https://build.opensuse.org/request/show/957067
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tree-sitter?expand=0&rev=3
2022-02-23 15:26:17 +00:00
1efc05ba17 - 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

OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=5
2022-02-23 12:34:40 +00:00
a75da918b4 - Update to 0.20.4.
OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=4
2022-02-22 17:43:35 +00:00
Dominique Leuenberger
f8fafbe15b Accepting request 929677 from editors
OBS-URL: https://build.opensuse.org/request/show/929677
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tree-sitter?expand=0&rev=2
2021-11-05 21:59:00 +00:00
3e85311053 Accepting request 929494 from home:firstyear:branches:editors
- Add cargo audit service to detect potential security issues

OBS-URL: https://build.opensuse.org/request/show/929494
OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=3
2021-11-05 14:13:21 +00:00
Dominique Leuenberger
cae4b808ee Accepting request 903894 from editors
New package, a dependency of neovim 0.5

OBS-URL: https://build.opensuse.org/request/show/903894
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tree-sitter?expand=0&rev=1
2021-07-05 20:22:45 +00:00
Martin Pluskal
d7f9538ea9 Accepting request 903860 from home:mcepl:neovim
Build dependency of neovim 0.5

OBS-URL: https://build.opensuse.org/request/show/903860
OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=1
2021-07-04 05:47:11 +00:00