commit 53c43f9431d88b0b7316eccd539040be00dd26175428066982281a94467f3494 Author: Richard Rahl Date: Fri Jan 3 23:03:07 2025 +0000 - update to 0.2.0: * merge with dev * regenerate * accept multiple pragma values * add make rule to review parser changes in qtdeclarative repo * allow string literal in pragma values * define our set of reserved identifiers to get around "new {}" conflicts * add test of multi-line string literal * include tree_sitter/parser.h as local header * remove queries from rust binding * feat: migrate to tree-sitter.json OBS-URL: https://build.opensuse.org/package/show/editors:tree-sitter/tree-sitter-qmljs?expand=0&rev=3 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..8faf604 --- /dev/null +++ b/_service @@ -0,0 +1,18 @@ + + + + @PARENT_TAG@.@TAG_OFFSET@.%h + v(.*) + master + https://github.com/yuja/tree-sitter-qmljs.git + git + enable + Björn Bidar <bjorn.bidar@thaodan.de> + + + + *.tar + gz + + + diff --git a/tree-sitter-qmljs-0.1.2.27.239f262.tar.gz b/tree-sitter-qmljs-0.1.2.27.239f262.tar.gz new file mode 100644 index 0000000..ef510b6 --- /dev/null +++ b/tree-sitter-qmljs-0.1.2.27.239f262.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:656eb42c051496074841250f1ad604b1cf68942bbc17e3e37fa2aed9edcb73bb +size 900684 diff --git a/tree-sitter-qmljs-0.1.2.41.febf48a.tar.gz b/tree-sitter-qmljs-0.1.2.41.febf48a.tar.gz new file mode 100644 index 0000000..6463512 --- /dev/null +++ b/tree-sitter-qmljs-0.1.2.41.febf48a.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6ede209489ef551c50799b3a78af678eecdf23052200f7be142f39cea1925d22 +size 597025 diff --git a/tree-sitter-qmljs-0.2.0.tar.gz b/tree-sitter-qmljs-0.2.0.tar.gz new file mode 100644 index 0000000..96e4762 --- /dev/null +++ b/tree-sitter-qmljs-0.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:80ab75fda56444dea154a774b4a21b6243b25a1e73e03b60966d45d5b3729516 +size 532522 diff --git a/tree-sitter-qmljs.changes b/tree-sitter-qmljs.changes new file mode 100644 index 0000000..39789d2 --- /dev/null +++ b/tree-sitter-qmljs.changes @@ -0,0 +1,62 @@ +------------------------------------------------------------------- +Thu Jan 2 05:35:16 UTC 2025 - Richard Rahl + +- update to 0.2.0: + * merge with dev + * regenerate + * accept multiple pragma values + * add make rule to review parser changes in qtdeclarative repo + * allow string literal in pragma values + * define our set of reserved identifiers to get around "new {}" conflicts + * add test of multi-line string literal + * include tree_sitter/parser.h as local header + * remove queries from rust binding + * feat: migrate to tree-sitter.json + +------------------------------------------------------------------- +Wed Dec 11 23:21:22 UTC 2024 - Richard Rahl + +- disable devel package (for now) + +------------------------------------------------------------------- +Wed Dec 4 23:29:49 UTC 2024 - Richard Rahl + +- format spec file like the other grammars +- add neovim links +- enable devel package + +------------------------------------------------------------------- +Sun Jul 07 13:53:19 UTC 2024 - Björn Bidar + +- Update to version 0.1.2.41.febf48a: + * remove queries from rust binding + * bump rust binding dependencies and reorder highlights queries accordingly + * don't mark my Makefile as linguist-generated + * include package-lock.json in version control + * include tree_sitter/parser.h as local header + +------------------------------------------------------------------- +Mon Apr 29 22:07:09 UTC 2024 - Björn Bidar + +- Update to version 0.1.2.27.239f262: + * add test of multi-line string literal + * define our set of reserved identifiers to get around "new {}" conflicts + * extend reserved identifiers test to include various property name positions + +------------------------------------------------------------------- +Fri Mar 15 16:34:39 UTC 2024 - Björn Bidar + +- Initial packaging for openSUSE +- Update to version 0.1.2.24.9fa49ff: + * bump tree-sitter-typescript to 0.20.5 + * add test of multi-line string literal + * define our set of reserved identifiers to get around "new {}" conflicts + * extend reserved identifiers test to include various property name positions + * bump tree-sitter-typescript to c604297f8197b468026f2ea32119935887e01c67 (v0.20.3) + * use our version of nested_identifier to represent an ImportId + * update src/typescript-scanner.h + * cargo: fix repository URL (#1) + * include queries/*.scm symlinks in master branch (fixes #1) + * unexclude generated sources from master branch + + diff --git a/tree-sitter-qmljs.spec b/tree-sitter-qmljs.spec new file mode 100644 index 0000000..3fd3b39 --- /dev/null +++ b/tree-sitter-qmljs.spec @@ -0,0 +1,59 @@ +# +# spec file for package tree-sitter-qmljs +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define _name qmljs +Name: tree-sitter-qmljs +Version: 0.2.0 +Release: 0 +Summary: QML grammar for tree-sitter +License: MIT +URL: https://github.com/yuja/tree-sitter-qmljs +Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: tree-sitter +BuildRequires: treesitter_grammar_src(tree-sitter-typescript) +%treesitter_grammars %{_name} + +%description +%{summary}. + +%prep +%autosetup + +%build +%treesitter_configure +%treesitter_build + +%install +%treesitter_install +%treesitter_devel_install + +#neovim stuff +install -d %{buildroot}%{_libdir}/tree_sitter +ln -s %{_libdir}/lib%{name}.so %{buildroot}%{_libdir}/tree_sitter/%{_name}.so + +%files +%license LICENSE +%treesitter_files +%{_libdir}/tree_sitter/%{_name}.so +%if 0%{?suse_version} < 1600 +%dir %{_libdir}/tree_sitter +%endif + +%treesitter_devel_package + +%changelog