tree-sitter/macros.in
Björn Bidar 79ead549eb - 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

- 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

OBS-URL: https://build.opensuse.org/package/show/editors:tree-sitter/tree-sitter?expand=0&rev=6
2025-02-04 12:05:38 +00:00

27 lines
1019 B
Plaintext

# -*- rpm-spec -*-
# SPDX-License-Identifier: GPL-2.0
# SPDX-FileCopyrightText: 2024 Björn Bidar
%_treesitter_base_name tree-sitter
%_treesitter_grammardir %{_libdir}
%_treesitter_grammar_develdir %{_includedir}/%{_treesitter_base_name}/grammars
%_treesitter_grammar_base_libname lib%{_treesitter_base_name}
%treesitter_target() %{_rpmconfigdir}/tree-sitter-target.py
%treesitter_set_flags export NODE_PATH=$NODE_PATH:%{_treesitter_grammar_develdir}:$PWD
%__treesitter_devel_package_name() %name-devel
%treesitter_devel_package \
%package -n %{__treesitter_devel_package_name} \
Summary: Devel package for %{name} containing it's grammar source \
BuildArch: noarch \
%{_treesitter_devel_provides} \
%description -n %{__treesitter_devel_package_name} \
This package contains grammar sources for use in other grammars. \
%files -n %{__treesitter_devel_package_name} \
%{treesitter_devel_files}
### LUA-MACROS ###
%_treesitter_macro_init %{_treesitter_definitions}%{lua: rpm.define("_treesitter_macro_init %{nil}")}