From 4e3fad2d52781ebf3c58ee5932ae15c539f2fb04 Mon Sep 17 00:00:00 2001 From: Dongdong Zhou Date: Fri, 2 Aug 2024 23:58:50 +0100 Subject: [PATCH 1/8] update --- .gitmodules | 490 ---------------------- Cargo.lock | 464 ++++++++++++++------ Cargo.toml | 31 +- Justfile | 17 - Makefile | 12 - grammars/tree-sitter-ada | 1 - grammars/tree-sitter-adl | 1 - grammars/tree-sitter-agda | 1 - grammars/tree-sitter-angular | 1 - grammars/tree-sitter-astro | 1 - grammars/tree-sitter-bash | 1 - grammars/tree-sitter-bass | 1 - grammars/tree-sitter-beancount | 1 - grammars/tree-sitter-bibtex | 1 - grammars/tree-sitter-bitbake | 1 - grammars/tree-sitter-blade | 1 - grammars/tree-sitter-c | 1 - grammars/tree-sitter-c-sharp | 1 - grammars/tree-sitter-clojure | 1 - grammars/tree-sitter-cmake | 1 - grammars/tree-sitter-comment | 1 - grammars/tree-sitter-cpp | 1 - grammars/tree-sitter-css | 1 - grammars/tree-sitter-cue | 1 - grammars/tree-sitter-d | 1 - grammars/tree-sitter-dart | 1 - grammars/tree-sitter-dhall | 1 - grammars/tree-sitter-diff | 1 - grammars/tree-sitter-dockerfile | 1 - grammars/tree-sitter-dot | 1 - grammars/tree-sitter-elixir | 1 - grammars/tree-sitter-elm | 1 - grammars/tree-sitter-erlang | 1 - grammars/tree-sitter-f-sharp | 1 - grammars/tree-sitter-fish | 1 - grammars/tree-sitter-fluent | 1 - grammars/tree-sitter-forth | 1 - grammars/tree-sitter-fortran | 1 - grammars/tree-sitter-git-commit | 1 - grammars/tree-sitter-git-config | 1 - grammars/tree-sitter-git-rebase | 1 - grammars/tree-sitter-gitattributes | 1 - grammars/tree-sitter-gleam | 1 - grammars/tree-sitter-glimmer | 1 - grammars/tree-sitter-glsl | 1 - grammars/tree-sitter-gn | 1 - grammars/tree-sitter-go | 1 - grammars/tree-sitter-go-mod | 1 - grammars/tree-sitter-go-template | 1 - grammars/tree-sitter-go-work | 1 - grammars/tree-sitter-graphql | 1 - grammars/tree-sitter-groovy | 1 - grammars/tree-sitter-haskell | 1 - grammars/tree-sitter-haxe | 1 - grammars/tree-sitter-hcl | 1 - grammars/tree-sitter-hosts | 1 - grammars/tree-sitter-html | 1 - grammars/tree-sitter-ini | 1 - grammars/tree-sitter-java | 1 - grammars/tree-sitter-javascript | 1 - grammars/tree-sitter-jsdoc | 1 - grammars/tree-sitter-json | 1 - grammars/tree-sitter-json5 | 1 - grammars/tree-sitter-jsonnet | 1 - grammars/tree-sitter-julia | 1 - grammars/tree-sitter-just | 1 - grammars/tree-sitter-kdl | 1 - grammars/tree-sitter-kotlin | 1 - grammars/tree-sitter-latex | 1 - grammars/tree-sitter-ld | 1 - grammars/tree-sitter-llvm | 1 - grammars/tree-sitter-llvm-mir | 1 - grammars/tree-sitter-log | 1 - grammars/tree-sitter-lua | 1 - grammars/tree-sitter-make | 1 - grammars/tree-sitter-markdown | 1 - grammars/tree-sitter-meson | 1 - grammars/tree-sitter-nasm | 1 - grammars/tree-sitter-nix | 1 - grammars/tree-sitter-nu | 1 - grammars/tree-sitter-ocaml | 1 - grammars/tree-sitter-odin | 1 - grammars/tree-sitter-opencl | 1 - grammars/tree-sitter-pascal | 1 - grammars/tree-sitter-passwd | 1 - grammars/tree-sitter-pem | 1 - grammars/tree-sitter-php | 1 - grammars/tree-sitter-pkl | 1 - grammars/tree-sitter-powershell | 1 - grammars/tree-sitter-prisma | 1 - grammars/tree-sitter-protobuf | 1 - grammars/tree-sitter-python | 1 - grammars/tree-sitter-ql | 1 - grammars/tree-sitter-r | 1 - grammars/tree-sitter-rcl | 1 - grammars/tree-sitter-regex | 1 - grammars/tree-sitter-rego | 1 - grammars/tree-sitter-ron | 1 - grammars/tree-sitter-rst | 1 - grammars/tree-sitter-ruby | 1 - grammars/tree-sitter-rust | 1 - grammars/tree-sitter-scala | 1 - grammars/tree-sitter-scheme | 1 - grammars/tree-sitter-scss | 1 - grammars/tree-sitter-slint | 1 - grammars/tree-sitter-smithy | 1 - grammars/tree-sitter-sql | 1 - grammars/tree-sitter-ssh-client-config | 1 - grammars/tree-sitter-strace | 1 - grammars/tree-sitter-svelte | 1 - grammars/tree-sitter-sway | 1 - grammars/tree-sitter-swift | 1 - grammars/tree-sitter-tcl | 1 - grammars/tree-sitter-toml | 1 - grammars/tree-sitter-typescript | 1 - grammars/tree-sitter-typst | 1 - grammars/tree-sitter-vala | 1 - grammars/tree-sitter-verilog | 1 - grammars/tree-sitter-vue | 1 - grammars/tree-sitter-wasm | 1 - grammars/tree-sitter-wgsl | 1 - grammars/tree-sitter-wit | 1 - grammars/tree-sitter-xml | 1 - grammars/tree-sitter-yaml | 1 - grammars/tree-sitter-zig | 1 - helper/Cargo.toml | 10 - helper/src/main.rs | 193 --------- make.py | 283 ------------- queries/ada/folds.scm | 15 - queries/ada/highlights.scm | 196 --------- queries/ada/indents.scm | 0 queries/ada/injections.scm | 0 queries/ada/locals.scm | 33 -- queries/ada/structure.scm | 0 queries/ada/tags.scm | 0 queries/ada/textobjects.scm | 23 - queries/adl/folds.scm | 0 queries/adl/highlights.scm | 37 -- queries/adl/indents.scm | 12 - queries/adl/injections.scm | 0 queries/adl/locals.scm | 0 queries/adl/structure.scm | 0 queries/adl/tags.scm | 0 queries/adl/textobjects.scm | 1 - queries/agda/folds.scm | 0 queries/agda/highlights.scm | 81 ---- queries/agda/indents.scm | 0 queries/agda/injections.scm | 0 queries/agda/locals.scm | 0 queries/agda/structure.scm | 0 queries/agda/tags.scm | 0 queries/agda/textobjects.scm | 0 queries/angular/folds.scm | 0 queries/angular/highlights.scm | 0 queries/angular/indents.scm | 0 queries/angular/injections.scm | 0 queries/angular/locals.scm | 0 queries/angular/structure.scm | 0 queries/angular/tags.scm | 0 queries/angular/textobjects.scm | 0 queries/astro/folds.scm | 0 queries/astro/highlights.scm | 0 queries/astro/indents.scm | 0 queries/astro/injections.scm | 0 queries/astro/locals.scm | 0 queries/astro/structure.scm | 0 queries/astro/tags.scm | 0 queries/astro/textobjects.scm | 0 queries/bash/folds.scm | 0 queries/bash/highlights.scm | 55 --- queries/bash/indents.scm | 12 - queries/bash/injections.scm | 8 - queries/bash/locals.scm | 0 queries/bash/structure.scm | 0 queries/bash/tags.scm | 0 queries/bash/textobjects.scm | 9 - queries/bass/folds.scm | 0 queries/bass/highlights.scm | 0 queries/bass/indents.scm | 0 queries/bass/injections.scm | 0 queries/bass/locals.scm | 0 queries/bass/structure.scm | 0 queries/bass/tags.scm | 0 queries/bass/textobjects.scm | 0 queries/beancount/folds.scm | 0 queries/beancount/highlights.scm | 0 queries/beancount/indents.scm | 0 queries/beancount/injections.scm | 0 queries/beancount/locals.scm | 0 queries/beancount/structure.scm | 0 queries/beancount/tags.scm | 0 queries/beancount/textobjects.scm | 0 queries/bibtex/folds.scm | 0 queries/bibtex/highlights.scm | 0 queries/bibtex/indents.scm | 0 queries/bibtex/injections.scm | 0 queries/bibtex/locals.scm | 0 queries/bibtex/structure.scm | 0 queries/bibtex/tags.scm | 0 queries/bibtex/textobjects.scm | 0 queries/bitbake/folds.scm | 0 queries/bitbake/highlights.scm | 0 queries/bitbake/indents.scm | 0 queries/bitbake/injections.scm | 0 queries/bitbake/locals.scm | 0 queries/bitbake/structure.scm | 0 queries/bitbake/tags.scm | 0 queries/bitbake/textobjects.scm | 0 queries/blade/folds.scm | 0 queries/blade/highlights.scm | 0 queries/blade/indents.scm | 0 queries/blade/injections.scm | 0 queries/blade/locals.scm | 0 queries/blade/structure.scm | 0 queries/blade/tags.scm | 0 queries/blade/textobjects.scm | 0 queries/c/folds.scm | 0 queries/c/highlights.scm | 145 ------- queries/c/indents.scm | 0 queries/c/injections.scm | 0 queries/c/locals.scm | 0 queries/c/structure.scm | 0 queries/c/tags.scm | 0 queries/c/textobjects.scm | 0 queries/clojure/folds.scm | 0 queries/clojure/highlights.scm | 88 ---- queries/clojure/indents.scm | 0 queries/clojure/injections.scm | 7 - queries/clojure/locals.scm | 0 queries/clojure/structure.scm | 0 queries/clojure/tags.scm | 0 queries/clojure/textobjects.scm | 0 queries/cmake/folds.scm | 0 queries/cmake/highlights.scm | 100 ----- queries/cmake/indents.scm | 0 queries/cmake/injections.scm | 8 - queries/cmake/locals.scm | 0 queries/cmake/structure.scm | 0 queries/cmake/tags.scm | 0 queries/cmake/textobjects.scm | 0 queries/cpp/folds.scm | 0 queries/cpp/highlights.scm | 160 ------- queries/cpp/indents.scm | 0 queries/cpp/injections.scm | 0 queries/cpp/locals.scm | 0 queries/cpp/structure.scm | 0 queries/cpp/tags.scm | 0 queries/cpp/textobjects.scm | 0 queries/csharp/folds.scm | 0 queries/csharp/highlights.scm | 0 queries/csharp/indents.scm | 0 queries/csharp/injections.scm | 0 queries/csharp/locals.scm | 0 queries/csharp/structure.scm | 0 queries/csharp/tags.scm | 0 queries/csharp/textobjects.scm | 0 queries/css/folds.scm | 0 queries/css/highlights.scm | 68 --- queries/css/indents.scm | 0 queries/css/injections.scm | 0 queries/css/locals.scm | 0 queries/css/structure.scm | 0 queries/css/tags.scm | 0 queries/css/textobjects.scm | 0 queries/cue/folds.scm | 5 - queries/cue/highlights.scm | 165 -------- queries/cue/indents.scm | 21 - queries/cue/injections.scm | 1 - queries/cue/locals.scm | 34 -- queries/cue/structure.scm | 0 queries/cue/tags.scm | 0 queries/cue/textobjects.scm | 0 queries/d/folds.scm | 0 queries/d/highlights.scm | 249 ----------- queries/d/indents.scm | 17 - queries/d/injections.scm | 2 - queries/d/locals.scm | 0 queries/d/structure.scm | 0 queries/d/tags.scm | 0 queries/d/textobjects.scm | 9 - queries/dart/folds.scm | 0 queries/dart/highlights.scm | 246 ----------- queries/dart/indents.scm | 0 queries/dart/injections.scm | 0 queries/dart/locals.scm | 0 queries/dart/structure.scm | 0 queries/dart/tags.scm | 0 queries/dart/test.scm | 1 - queries/dart/textobjects.scm | 0 queries/dhall/folds.scm | 0 queries/dhall/highlights.scm | 0 queries/dhall/indents.scm | 0 queries/dhall/injections.scm | 0 queries/dhall/locals.scm | 0 queries/dhall/structure.scm | 0 queries/dhall/tags.scm | 0 queries/dhall/textobjects.scm | 0 queries/diff/folds.scm | 0 queries/diff/highlights.scm | 9 - queries/diff/indents.scm | 0 queries/diff/injections.scm | 0 queries/diff/locals.scm | 0 queries/diff/structure.scm | 0 queries/diff/tags.scm | 0 queries/diff/textobjects.scm | 0 queries/dockerfile/folds.scm | 0 queries/dockerfile/highlights.scm | 58 --- queries/dockerfile/indents.scm | 0 queries/dockerfile/injections.scm | 0 queries/dockerfile/locals.scm | 0 queries/dockerfile/structure.scm | 0 queries/dockerfile/tags.scm | 0 queries/dockerfile/textobjects.scm | 0 queries/dot/folds.scm | 0 queries/dot/highlights.scm | 53 --- queries/dot/indents.scm | 0 queries/dot/injections.scm | 2 - queries/dot/locals.scm | 0 queries/dot/structure.scm | 0 queries/dot/tags.scm | 0 queries/dot/textobjects.scm | 0 queries/elixir/folds.scm | 0 queries/elixir/highlights.scm | 0 queries/elixir/indents.scm | 0 queries/elixir/injections.scm | 0 queries/elixir/locals.scm | 0 queries/elixir/structure.scm | 0 queries/elixir/tags.scm | 0 queries/elixir/textobjects.scm | 0 queries/elm/folds.scm | 0 queries/elm/highlights.scm | 88 ---- queries/elm/indents.scm | 0 queries/elm/injections.scm | 0 queries/elm/locals.scm | 0 queries/elm/structure.scm | 0 queries/elm/tags.scm | 0 queries/elm/textobjects.scm | 0 queries/erlang/folds.scm | 0 queries/erlang/highlights.scm | 108 ----- queries/erlang/indents.scm | 0 queries/erlang/injections.scm | 0 queries/erlang/locals.scm | 0 queries/erlang/structure.scm | 0 queries/erlang/tags.scm | 0 queries/erlang/textobjects.scm | 0 queries/fish/folds.scm | 0 queries/fish/highlights.scm | 64 --- queries/fish/indents.scm | 0 queries/fish/injections.scm | 0 queries/fish/locals.scm | 0 queries/fish/structure.scm | 0 queries/fish/tags.scm | 0 queries/fish/textobjects.scm | 0 queries/fluent/folds.scm | 0 queries/fluent/highlights.scm | 0 queries/fluent/indents.scm | 0 queries/fluent/injections.scm | 0 queries/fluent/locals.scm | 0 queries/fluent/structure.scm | 0 queries/fluent/tags.scm | 0 queries/fluent/textobjects.scm | 0 queries/forth/folds.scm | 0 queries/forth/highlights.scm | 0 queries/forth/indents.scm | 0 queries/forth/injections.scm | 0 queries/forth/locals.scm | 0 queries/forth/structure.scm | 0 queries/forth/tags.scm | 0 queries/forth/textobjects.scm | 0 queries/fortran/folds.scm | 0 queries/fortran/highlights.scm | 0 queries/fortran/indents.scm | 0 queries/fortran/injections.scm | 0 queries/fortran/locals.scm | 0 queries/fortran/structure.scm | 0 queries/fortran/tags.scm | 0 queries/fortran/textobjects.scm | 0 queries/fsharp/folds.scm | 0 queries/fsharp/highlights.scm | 0 queries/fsharp/indents.scm | 0 queries/fsharp/injections.scm | 0 queries/fsharp/locals.scm | 0 queries/fsharp/structure.scm | 0 queries/fsharp/tags.scm | 0 queries/fsharp/textobjects.scm | 0 queries/git-commit/folds.scm | 0 queries/git-commit/highlights.scm | 30 -- queries/git-commit/indents.scm | 0 queries/git-commit/injections.scm | 0 queries/git-commit/locals.scm | 0 queries/git-commit/structure.scm | 0 queries/git-commit/tags.scm | 0 queries/git-commit/textobjects.scm | 0 queries/git-config/folds.scm | 0 queries/git-config/highlights.scm | 27 -- queries/git-config/indents.scm | 0 queries/git-config/injections.scm | 0 queries/git-config/locals.scm | 0 queries/git-config/structure.scm | 0 queries/git-config/tags.scm | 0 queries/git-config/textobjects.scm | 0 queries/git-rebase/folds.scm | 0 queries/git-rebase/highlights.scm | 36 -- queries/git-rebase/indents.scm | 0 queries/git-rebase/injections.scm | 0 queries/git-rebase/locals.scm | 0 queries/git-rebase/structure.scm | 0 queries/git-rebase/tags.scm | 0 queries/git-rebase/textobjects.scm | 0 queries/gitattributes/folds.scm | 0 queries/gitattributes/highlights.scm | 9 - queries/gitattributes/indents.scm | 0 queries/gitattributes/injections.scm | 0 queries/gitattributes/locals.scm | 0 queries/gitattributes/structure.scm | 0 queries/gitattributes/tags.scm | 0 queries/gitattributes/textobjects.scm | 0 queries/gleam/folds.scm | 0 queries/gleam/highlights.scm | 0 queries/gleam/indents.scm | 0 queries/gleam/injections.scm | 0 queries/gleam/locals.scm | 0 queries/gleam/structure.scm | 0 queries/gleam/tags.scm | 0 queries/gleam/textobjects.scm | 0 queries/glimmer/folds.scm | 0 queries/glimmer/highlights.scm | 0 queries/glimmer/indents.scm | 0 queries/glimmer/injections.scm | 0 queries/glimmer/locals.scm | 0 queries/glimmer/structure.scm | 0 queries/glimmer/tags.scm | 0 queries/glimmer/textobjects.scm | 0 queries/glsl/folds.scm | 0 queries/glsl/highlights.scm | 0 queries/glsl/indents.scm | 0 queries/glsl/injections.scm | 0 queries/glsl/locals.scm | 0 queries/glsl/structure.scm | 0 queries/glsl/tags.scm | 0 queries/glsl/textobjects.scm | 0 queries/gn/folds.scm | 0 queries/gn/highlights.scm | 0 queries/gn/indents.scm | 0 queries/gn/injections.scm | 0 queries/gn/locals.scm | 0 queries/gn/structure.scm | 0 queries/gn/tags.scm | 0 queries/gn/textobjects.scm | 0 queries/go-mod/folds.scm | 0 queries/go-mod/highlights.scm | 18 - queries/go-mod/indents.scm | 0 queries/go-mod/injections.scm | 0 queries/go-mod/locals.scm | 0 queries/go-mod/structure.scm | 29 -- queries/go-mod/tags.scm | 0 queries/go-mod/textobjects.scm | 0 queries/go-template/folds.scm | 0 queries/go-template/highlights.scm | 75 ---- queries/go-template/indents.scm | 0 queries/go-template/injections.scm | 0 queries/go-template/locals.scm | 0 queries/go-template/structure.scm | 0 queries/go-template/tags.scm | 0 queries/go-template/textobjects.scm | 0 queries/go-work/folds.scm | 0 queries/go-work/highlights.scm | 14 - queries/go-work/indents.scm | 0 queries/go-work/injections.scm | 0 queries/go-work/locals.scm | 0 queries/go-work/structure.scm | 0 queries/go-work/tags.scm | 0 queries/go-work/textobjects.scm | 0 queries/go/folds.scm | 0 queries/go/highlights.scm | 123 ------ queries/go/indents.scm | 0 queries/go/injections.scm | 0 queries/go/locals.scm | 0 queries/go/structure.scm | 175 -------- queries/go/tags.scm | 30 -- queries/go/textobjects.scm | 0 queries/graphql/folds.scm | 0 queries/graphql/highlights.scm | 0 queries/graphql/indents.scm | 0 queries/graphql/injections.scm | 0 queries/graphql/locals.scm | 0 queries/graphql/structure.scm | 0 queries/graphql/tags.scm | 0 queries/graphql/textobjects.scm | 0 queries/groovy/folds.scm | 0 queries/groovy/highlights.scm | 0 queries/groovy/indents.scm | 0 queries/groovy/injections.scm | 0 queries/groovy/locals.scm | 0 queries/groovy/structure.scm | 0 queries/groovy/tags.scm | 0 queries/groovy/textobjects.scm | 0 queries/haskell/folds.scm | 0 queries/haskell/highlights.scm | 0 queries/haskell/indents.scm | 0 queries/haskell/injections.scm | 0 queries/haskell/locals.scm | 0 queries/haskell/structure.scm | 0 queries/haskell/tags.scm | 0 queries/haskell/textobjects.scm | 0 queries/haxe/folds.scm | 0 queries/haxe/highlights.scm | 0 queries/haxe/indents.scm | 0 queries/haxe/injections.scm | 0 queries/haxe/locals.scm | 0 queries/haxe/structure.scm | 0 queries/haxe/tags.scm | 0 queries/haxe/textobjects.scm | 0 queries/hcl/folds.scm | 0 queries/hcl/highlights.scm | 0 queries/hcl/indents.scm | 0 queries/hcl/injections.scm | 0 queries/hcl/locals.scm | 0 queries/hcl/structure.scm | 0 queries/hcl/tags.scm | 0 queries/hcl/textobjects.scm | 0 queries/hosts/folds.scm | 0 queries/hosts/highlights.scm | 0 queries/hosts/indents.scm | 0 queries/hosts/injections.scm | 0 queries/hosts/locals.scm | 0 queries/hosts/structure.scm | 0 queries/hosts/tags.scm | 0 queries/hosts/textobjects.scm | 0 queries/html/folds.scm | 0 queries/html/highlights.scm | 20 - queries/html/indents.scm | 0 queries/html/injections.scm | 10 - queries/html/locals.scm | 0 queries/html/structure.scm | 0 queries/html/tags.scm | 0 queries/html/textobjects.scm | 0 queries/ini/folds.scm | 0 queries/ini/highlights.scm | 0 queries/ini/indents.scm | 0 queries/ini/injections.scm | 0 queries/ini/locals.scm | 0 queries/ini/structure.scm | 0 queries/ini/tags.scm | 0 queries/ini/textobjects.scm | 0 queries/java/folds.scm | 0 queries/java/highlights.scm | 0 queries/java/indents.scm | 0 queries/java/injections.scm | 0 queries/java/locals.scm | 0 queries/java/structure.scm | 0 queries/java/tags.scm | 0 queries/java/textobjects.scm | 0 queries/javascript/folds.scm | 0 queries/javascript/highlights.scm | 205 --------- queries/javascript/indents.scm | 0 queries/javascript/injections.scm | 0 queries/javascript/locals.scm | 0 queries/javascript/structure.scm | 0 queries/javascript/tags.scm | 0 queries/javascript/textobjects.scm | 0 queries/jsdoc/folds.scm | 0 queries/jsdoc/highlights.scm | 0 queries/jsdoc/indents.scm | 0 queries/jsdoc/injections.scm | 0 queries/jsdoc/locals.scm | 0 queries/jsdoc/structure.scm | 0 queries/jsdoc/tags.scm | 0 queries/jsdoc/textobjects.scm | 0 queries/json/folds.scm | 0 queries/json/highlights.scm | 20 - queries/json/indents.scm | 9 - queries/json/injections.scm | 0 queries/json/locals.scm | 0 queries/json/structure.scm | 0 queries/json/tags.scm | 0 queries/json/textobjects.scm | 0 queries/json5/folds.scm | 0 queries/json5/highlights.scm | 11 - queries/json5/indents.scm | 0 queries/json5/injections.scm | 0 queries/json5/locals.scm | 0 queries/json5/structure.scm | 0 queries/json5/tags.scm | 0 queries/json5/textobjects.scm | 0 queries/jsonnet/folds.scm | 0 queries/jsonnet/highlights.scm | 0 queries/jsonnet/indents.scm | 0 queries/jsonnet/injections.scm | 0 queries/jsonnet/locals.scm | 0 queries/jsonnet/structure.scm | 0 queries/jsonnet/tags.scm | 0 queries/jsonnet/textobjects.scm | 0 queries/jsx/folds.scm | 0 queries/jsx/highlights.scm | 250 ----------- queries/jsx/indents.scm | 0 queries/jsx/injections.scm | 0 queries/jsx/locals.scm | 0 queries/jsx/structure.scm | 0 queries/jsx/tags.scm | 0 queries/jsx/textobjects.scm | 0 queries/julia/folds.scm | 0 queries/julia/highlights.scm | 296 ------------- queries/julia/indents.scm | 0 queries/julia/injections.scm | 30 -- queries/julia/locals.scm | 0 queries/julia/structure.scm | 0 queries/julia/tags.scm | 0 queries/julia/textobjects.scm | 0 queries/just/folds.scm | 10 - queries/just/highlights.scm | 149 ------- queries/just/indents.scm | 12 - queries/just/injections.scm | 104 ----- queries/just/locals.scm | 42 -- queries/just/structure.scm | 1 - queries/just/tags.scm | 1 - queries/just/textobjects.scm | 18 - queries/kdl/folds.scm | 0 queries/kdl/highlights.scm | 0 queries/kdl/indents.scm | 0 queries/kdl/injections.scm | 0 queries/kdl/locals.scm | 0 queries/kdl/structure.scm | 0 queries/kdl/tags.scm | 0 queries/kdl/textobjects.scm | 0 queries/kotlin/folds.scm | 0 queries/kotlin/highlights.scm | 298 ------------- queries/kotlin/indents.scm | 0 queries/kotlin/injections.scm | 40 -- queries/kotlin/locals.scm | 0 queries/kotlin/structure.scm | 0 queries/kotlin/tags.scm | 0 queries/kotlin/textobjects.scm | 0 queries/latex/folds.scm | 0 queries/latex/highlights.scm | 247 ----------- queries/latex/indents.scm | 0 queries/latex/injections.scm | 25 -- queries/latex/locals.scm | 0 queries/latex/structure.scm | 0 queries/latex/tags.scm | 0 queries/latex/textobjects.scm | 0 queries/ld/folds.scm | 0 queries/ld/highlights.scm | 0 queries/ld/indents.scm | 0 queries/ld/injections.scm | 0 queries/ld/locals.scm | 0 queries/ld/structure.scm | 0 queries/ld/tags.scm | 0 queries/ld/textobjects.scm | 0 queries/llvm-mir/folds.scm | 0 queries/llvm-mir/highlights.scm | 0 queries/llvm-mir/indents.scm | 0 queries/llvm-mir/injections.scm | 0 queries/llvm-mir/locals.scm | 0 queries/llvm-mir/structure.scm | 0 queries/llvm-mir/tags.scm | 0 queries/llvm-mir/textobjects.scm | 0 queries/llvm/folds.scm | 0 queries/llvm/highlights.scm | 0 queries/llvm/indents.scm | 0 queries/llvm/injections.scm | 0 queries/llvm/locals.scm | 0 queries/llvm/structure.scm | 0 queries/llvm/tags.scm | 0 queries/llvm/textobjects.scm | 0 queries/log/folds.scm | 0 queries/log/highlights.scm | 10 - queries/log/indents.scm | 0 queries/log/injections.scm | 0 queries/log/locals.scm | 0 queries/log/structure.scm | 0 queries/log/tags.scm | 0 queries/log/textobjects.scm | 0 queries/lua/folds.scm | 0 queries/lua/highlights.scm | 196 --------- queries/lua/indents.scm | 0 queries/lua/injections.scm | 0 queries/lua/locals.scm | 0 queries/lua/structure.scm | 0 queries/lua/tags.scm | 0 queries/lua/textobjects.scm | 0 queries/make/folds.scm | 0 queries/make/highlights.scm | 0 queries/make/indents.scm | 0 queries/make/injections.scm | 0 queries/make/locals.scm | 0 queries/make/structure.scm | 0 queries/make/tags.scm | 0 queries/make/textobjects.scm | 0 queries/markdown.inline/folds.scm | 0 queries/markdown.inline/highlights.scm | 91 ---- queries/markdown.inline/indents.scm | 0 queries/markdown.inline/injections.scm | 2 - queries/markdown.inline/locals.scm | 0 queries/markdown.inline/structure.scm | 0 queries/markdown.inline/tags.scm | 0 queries/markdown.inline/textobjects.scm | 0 queries/markdown/folds.scm | 0 queries/markdown/highlights.scm | 58 --- queries/markdown/indents.scm | 0 queries/markdown/injections.scm | 15 - queries/markdown/locals.scm | 0 queries/markdown/structure.scm | 0 queries/markdown/tags.scm | 0 queries/markdown/textobjects.scm | 0 queries/meson/folds.scm | 0 queries/meson/highlights.scm | 0 queries/meson/indents.scm | 0 queries/meson/injections.scm | 0 queries/meson/locals.scm | 0 queries/meson/structure.scm | 0 queries/meson/tags.scm | 0 queries/meson/textobjects.scm | 0 queries/nasm/folds.scm | 0 queries/nasm/highlights.scm | 0 queries/nasm/indents.scm | 0 queries/nasm/injections.scm | 0 queries/nasm/locals.scm | 0 queries/nasm/structure.scm | 0 queries/nasm/tags.scm | 0 queries/nasm/textobjects.scm | 0 queries/nix/folds.scm | 0 queries/nix/highlights.scm | 0 queries/nix/indents.scm | 0 queries/nix/injections.scm | 0 queries/nix/locals.scm | 0 queries/nix/structure.scm | 0 queries/nix/tags.scm | 0 queries/nix/textobjects.scm | 0 queries/nu/folds.scm | 0 queries/nu/highlights.scm | 0 queries/nu/indents.scm | 0 queries/nu/injections.scm | 0 queries/nu/locals.scm | 0 queries/nu/structure.scm | 0 queries/nu/tags.scm | 0 queries/nu/textobjects.scm | 0 queries/ocaml/folds.scm | 0 queries/ocaml/highlights.scm | 0 queries/ocaml/indents.scm | 0 queries/ocaml/injections.scm | 0 queries/ocaml/locals.scm | 0 queries/ocaml/structure.scm | 0 queries/ocaml/tags.scm | 0 queries/ocaml/textobjects.scm | 0 queries/odin/folds.scm | 0 queries/odin/highlights.scm | 0 queries/odin/indents.scm | 0 queries/odin/injections.scm | 0 queries/odin/locals.scm | 0 queries/odin/structure.scm | 0 queries/odin/tags.scm | 0 queries/odin/textobjects.scm | 0 queries/opencl/folds.scm | 0 queries/opencl/highlights.scm | 0 queries/opencl/indents.scm | 0 queries/opencl/injections.scm | 0 queries/opencl/locals.scm | 0 queries/opencl/structure.scm | 0 queries/opencl/tags.scm | 0 queries/opencl/textobjects.scm | 0 queries/pascal/folds.scm | 0 queries/pascal/highlights.scm | 0 queries/pascal/indents.scm | 0 queries/pascal/injections.scm | 0 queries/pascal/locals.scm | 0 queries/pascal/structure.scm | 0 queries/pascal/tags.scm | 0 queries/pascal/textobjects.scm | 0 queries/passwd/folds.scm | 0 queries/passwd/highlights.scm | 0 queries/passwd/indents.scm | 0 queries/passwd/injections.scm | 0 queries/passwd/locals.scm | 0 queries/passwd/structure.scm | 0 queries/passwd/tags.scm | 0 queries/passwd/textobjects.scm | 0 queries/pem/folds.scm | 0 queries/pem/highlights.scm | 0 queries/pem/indents.scm | 0 queries/pem/injections.scm | 0 queries/pem/locals.scm | 0 queries/pem/structure.scm | 0 queries/pem/tags.scm | 0 queries/pem/textobjects.scm | 0 queries/php/folds.scm | 0 queries/php/highlights.scm | 122 ------ queries/php/indents.scm | 0 queries/php/injections.scm | 3 - queries/php/locals.scm | 0 queries/php/structure.scm | 0 queries/php/tags.scm | 0 queries/php/textobjects.scm | 0 queries/pkl/folds.scm | 0 queries/pkl/highlights.scm | 0 queries/pkl/indents.scm | 0 queries/pkl/injections.scm | 0 queries/pkl/locals.scm | 0 queries/pkl/structure.scm | 0 queries/pkl/tags.scm | 0 queries/pkl/textobjects.scm | 0 queries/powershell/folds.scm | 0 queries/powershell/highlights.scm | 130 ------ queries/powershell/indents.scm | 0 queries/powershell/injections.scm | 0 queries/powershell/locals.scm | 0 queries/powershell/structure.scm | 0 queries/powershell/tags.scm | 0 queries/powershell/textobjects.scm | 0 queries/prisma/folds.scm | 0 queries/prisma/highlights.scm | 60 --- queries/prisma/indents.scm | 0 queries/prisma/injections.scm | 0 queries/prisma/locals.scm | 0 queries/prisma/structure.scm | 0 queries/prisma/tags.scm | 0 queries/prisma/textobjects.scm | 0 queries/protobuf/folds.scm | 0 queries/protobuf/highlights.scm | 62 --- queries/protobuf/indents.scm | 0 queries/protobuf/injections.scm | 6 - queries/protobuf/locals.scm | 0 queries/protobuf/structure.scm | 0 queries/protobuf/tags.scm | 0 queries/protobuf/textobjects.scm | 0 queries/python/folds.scm | 0 queries/python/highlights.scm | 132 ------ queries/python/indents.scm | 84 ---- queries/python/injections.scm | 2 - queries/python/locals.scm | 44 -- queries/python/structure.scm | 0 queries/python/tags.scm | 12 - queries/python/textobjects.scm | 23 - queries/ql/folds.scm | 0 queries/ql/highlights.scm | 0 queries/ql/indents.scm | 0 queries/ql/injections.scm | 0 queries/ql/locals.scm | 0 queries/ql/structure.scm | 0 queries/ql/tags.scm | 0 queries/ql/textobjects.scm | 0 queries/r/folds.scm | 0 queries/r/highlights.scm | 128 ------ queries/r/indents.scm | 0 queries/r/injections.scm | 0 queries/r/locals.scm | 0 queries/r/structure.scm | 0 queries/r/tags.scm | 0 queries/r/textobjects.scm | 0 queries/rcl/folds.scm | 0 queries/rcl/highlights.scm | 0 queries/rcl/indents.scm | 0 queries/rcl/injections.scm | 0 queries/rcl/locals.scm | 0 queries/rcl/structure.scm | 0 queries/rcl/tags.scm | 0 queries/rcl/textobjects.scm | 0 queries/regex/folds.scm | 0 queries/regex/highlights.scm | 0 queries/regex/indents.scm | 0 queries/regex/injections.scm | 0 queries/regex/locals.scm | 0 queries/regex/structure.scm | 0 queries/regex/tags.scm | 0 queries/regex/textobjects.scm | 0 queries/rego/folds.scm | 0 queries/rego/highlights.scm | 0 queries/rego/indents.scm | 0 queries/rego/injections.scm | 0 queries/rego/locals.scm | 0 queries/rego/structure.scm | 0 queries/rego/tags.scm | 0 queries/rego/textobjects.scm | 0 queries/ron/folds.scm | 0 queries/ron/highlights.scm | 0 queries/ron/indents.scm | 0 queries/ron/injections.scm | 0 queries/ron/locals.scm | 0 queries/ron/structure.scm | 0 queries/ron/tags.scm | 0 queries/ron/textobjects.scm | 0 queries/rst/folds.scm | 0 queries/rst/highlights.scm | 0 queries/rst/indents.scm | 0 queries/rst/injections.scm | 0 queries/rst/locals.scm | 0 queries/rst/structure.scm | 0 queries/rst/tags.scm | 0 queries/rst/textobjects.scm | 0 queries/ruby/folds.scm | 0 queries/ruby/highlights.scm | 154 ------- queries/ruby/indents.scm | 0 queries/ruby/injections.scm | 0 queries/ruby/locals.scm | 0 queries/ruby/structure.scm | 0 queries/ruby/tags.scm | 0 queries/ruby/textobjects.scm | 0 queries/rust/folds.scm | 0 queries/rust/highlights.scm | 379 ----------------- queries/rust/indents.scm | 148 ------- queries/rust/injections.scm | 53 --- queries/rust/locals.scm | 18 - queries/rust/structure.scm | 0 queries/rust/tags.scm | 0 queries/rust/textobjects.scm | 58 --- queries/scala/folds.scm | 0 queries/scala/highlights.scm | 0 queries/scala/indents.scm | 0 queries/scala/injections.scm | 0 queries/scala/locals.scm | 0 queries/scala/structure.scm | 0 queries/scala/tags.scm | 0 queries/scala/textobjects.scm | 0 queries/scheme/folds.scm | 0 queries/scheme/highlights.scm | 0 queries/scheme/indents.scm | 0 queries/scheme/injections.scm | 0 queries/scheme/locals.scm | 0 queries/scheme/structure.scm | 0 queries/scheme/tags.scm | 0 queries/scheme/textobjects.scm | 0 queries/scss/folds.scm | 0 queries/scss/highlights.scm | 0 queries/scss/indents.scm | 0 queries/scss/injections.scm | 0 queries/scss/locals.scm | 0 queries/scss/structure.scm | 0 queries/scss/tags.scm | 0 queries/scss/textobjects.scm | 0 queries/slint/folds.scm | 0 queries/slint/highlights.scm | 0 queries/slint/indents.scm | 0 queries/slint/injections.scm | 0 queries/slint/locals.scm | 0 queries/slint/structure.scm | 0 queries/slint/tags.scm | 0 queries/slint/textobjects.scm | 0 queries/smithy/folds.scm | 0 queries/smithy/highlights.scm | 0 queries/smithy/indents.scm | 0 queries/smithy/injections.scm | 0 queries/smithy/locals.scm | 0 queries/smithy/structure.scm | 0 queries/smithy/tags.scm | 0 queries/smithy/textobjects.scm | 0 queries/sql/folds.scm | 0 queries/sql/highlights.scm | 0 queries/sql/indents.scm | 0 queries/sql/injections.scm | 0 queries/sql/locals.scm | 0 queries/sql/structure.scm | 0 queries/sql/tags.scm | 0 queries/sql/textobjects.scm | 0 queries/ssh-client-config/folds.scm | 0 queries/ssh-client-config/highlights.scm | 0 queries/ssh-client-config/indents.scm | 0 queries/ssh-client-config/injections.scm | 0 queries/ssh-client-config/locals.scm | 0 queries/ssh-client-config/structure.scm | 0 queries/ssh-client-config/tags.scm | 0 queries/ssh-client-config/textobjects.scm | 0 queries/strace/folds.scm | 0 queries/strace/highlights.scm | 0 queries/strace/indents.scm | 0 queries/strace/injections.scm | 0 queries/strace/locals.scm | 0 queries/strace/structure.scm | 0 queries/strace/tags.scm | 0 queries/strace/textobjects.scm | 0 queries/svelte/folds.scm | 0 queries/svelte/highlights.scm | 110 ----- queries/svelte/indents.scm | 24 -- queries/svelte/injections.scm | 32 -- queries/svelte/locals.scm | 0 queries/svelte/structure.scm | 0 queries/svelte/tags.scm | 0 queries/svelte/textobjects.scm | 0 queries/sway/folds.scm | 0 queries/sway/highlights.scm | 0 queries/sway/indents.scm | 0 queries/sway/injections.scm | 0 queries/sway/locals.scm | 0 queries/sway/structure.scm | 0 queries/sway/tags.scm | 0 queries/sway/textobjects.scm | 0 queries/swift/folds.scm | 0 queries/swift/highlights.scm | 0 queries/swift/indents.scm | 0 queries/swift/injections.scm | 0 queries/swift/locals.scm | 0 queries/swift/structure.scm | 0 queries/swift/tags.scm | 0 queries/swift/textobjects.scm | 0 queries/tcl/folds.scm | 0 queries/tcl/highlights.scm | 0 queries/tcl/indents.scm | 0 queries/tcl/injections.scm | 0 queries/tcl/locals.scm | 0 queries/tcl/structure.scm | 0 queries/tcl/tags.scm | 0 queries/tcl/textobjects.scm | 0 queries/toml/folds.scm | 0 queries/toml/highlights.scm | 33 -- queries/toml/indents.scm | 0 queries/toml/injections.scm | 2 - queries/toml/locals.scm | 0 queries/toml/structure.scm | 0 queries/toml/tags.scm | 0 queries/toml/textobjects.scm | 0 queries/typescript/folds.scm | 0 queries/typescript/highlights.scm | 35 -- queries/typescript/indents.scm | 3 - queries/typescript/injections.scm | 3 - queries/typescript/locals.scm | 3 - queries/typescript/structure.scm | 0 queries/typescript/tags.scm | 3 - queries/typescript/textobjects.scm | 3 - queries/typst/folds.scm | 0 queries/typst/highlights.scm | 0 queries/typst/indents.scm | 0 queries/typst/injections.scm | 0 queries/typst/locals.scm | 0 queries/typst/structure.scm | 0 queries/typst/tags.scm | 0 queries/typst/textobjects.scm | 0 queries/vala/folds.scm | 0 queries/vala/highlights.scm | 0 queries/vala/indents.scm | 0 queries/vala/injections.scm | 0 queries/vala/locals.scm | 0 queries/vala/structure.scm | 0 queries/vala/tags.scm | 0 queries/vala/textobjects.scm | 0 queries/verilog/folds.scm | 0 queries/verilog/highlights.scm | 0 queries/verilog/indents.scm | 0 queries/verilog/injections.scm | 0 queries/verilog/locals.scm | 0 queries/verilog/structure.scm | 0 queries/verilog/tags.scm | 0 queries/verilog/textobjects.scm | 0 queries/vue/folds.scm | 0 queries/vue/highlights.scm | 0 queries/vue/indents.scm | 0 queries/vue/injections.scm | 0 queries/vue/locals.scm | 0 queries/vue/structure.scm | 0 queries/vue/tags.scm | 0 queries/vue/textobjects.scm | 0 queries/wasm/folds.scm | 0 queries/wasm/highlights.scm | 0 queries/wasm/indents.scm | 0 queries/wasm/injections.scm | 0 queries/wasm/locals.scm | 0 queries/wasm/structure.scm | 0 queries/wasm/tags.scm | 0 queries/wasm/textobjects.scm | 0 queries/wast/folds.scm | 0 queries/wast/highlights.scm | 0 queries/wast/indents.scm | 0 queries/wast/injections.scm | 0 queries/wast/locals.scm | 0 queries/wast/structure.scm | 0 queries/wast/tags.scm | 0 queries/wast/textobjects.scm | 0 queries/wgsl/folds.scm | 10 - queries/wgsl/highlights.scm | 111 ----- queries/wgsl/indents.scm | 0 queries/wgsl/injections.scm | 0 queries/wgsl/locals.scm | 0 queries/wgsl/structure.scm | 0 queries/wgsl/tags.scm | 0 queries/wgsl/textobjects.scm | 0 queries/wit/folds.scm | 0 queries/wit/highlights.scm | 0 queries/wit/indents.scm | 0 queries/wit/injections.scm | 0 queries/wit/locals.scm | 0 queries/wit/structure.scm | 0 queries/wit/tags.scm | 0 queries/wit/textobjects.scm | 0 queries/xml/folds.scm | 0 queries/xml/highlights.scm | 44 -- queries/xml/indents.scm | 0 queries/xml/injections.scm | 0 queries/xml/locals.scm | 0 queries/xml/structure.scm | 0 queries/xml/tags.scm | 0 queries/xml/textobjects.scm | 0 queries/yaml/folds.scm | 0 queries/yaml/highlights.scm | 43 -- queries/yaml/indents.scm | 36 -- queries/yaml/injections.scm | 54 --- queries/yaml/locals.scm | 0 queries/yaml/structure.scm | 0 queries/yaml/tags.scm | 0 queries/yaml/textobjects.scm | 0 queries/zig/folds.scm | 16 - queries/zig/highlights.scm | 233 ---------- queries/zig/indents.scm | 22 - queries/zig/injections.scm | 5 - queries/zig/locals.scm | 0 queries/zig/structure.scm | 0 queries/zig/tags.scm | 0 queries/zig/textobjects.scm | 0 src/main.rs | 172 ++++++++ 1106 files changed, 533 insertions(+), 8628 deletions(-) delete mode 100644 .gitmodules delete mode 100644 Justfile delete mode 100644 Makefile delete mode 160000 grammars/tree-sitter-ada delete mode 160000 grammars/tree-sitter-adl delete mode 160000 grammars/tree-sitter-agda delete mode 160000 grammars/tree-sitter-angular delete mode 160000 grammars/tree-sitter-astro delete mode 160000 grammars/tree-sitter-bash delete mode 160000 grammars/tree-sitter-bass delete mode 160000 grammars/tree-sitter-beancount delete mode 160000 grammars/tree-sitter-bibtex delete mode 160000 grammars/tree-sitter-bitbake delete mode 160000 grammars/tree-sitter-blade delete mode 160000 grammars/tree-sitter-c delete mode 160000 grammars/tree-sitter-c-sharp delete mode 160000 grammars/tree-sitter-clojure delete mode 160000 grammars/tree-sitter-cmake delete mode 160000 grammars/tree-sitter-comment delete mode 160000 grammars/tree-sitter-cpp delete mode 160000 grammars/tree-sitter-css delete mode 160000 grammars/tree-sitter-cue delete mode 160000 grammars/tree-sitter-d delete mode 160000 grammars/tree-sitter-dart delete mode 160000 grammars/tree-sitter-dhall delete mode 160000 grammars/tree-sitter-diff delete mode 160000 grammars/tree-sitter-dockerfile delete mode 160000 grammars/tree-sitter-dot delete mode 160000 grammars/tree-sitter-elixir delete mode 160000 grammars/tree-sitter-elm delete mode 160000 grammars/tree-sitter-erlang delete mode 160000 grammars/tree-sitter-f-sharp delete mode 160000 grammars/tree-sitter-fish delete mode 160000 grammars/tree-sitter-fluent delete mode 160000 grammars/tree-sitter-forth delete mode 160000 grammars/tree-sitter-fortran delete mode 160000 grammars/tree-sitter-git-commit delete mode 160000 grammars/tree-sitter-git-config delete mode 160000 grammars/tree-sitter-git-rebase delete mode 160000 grammars/tree-sitter-gitattributes delete mode 160000 grammars/tree-sitter-gleam delete mode 160000 grammars/tree-sitter-glimmer delete mode 160000 grammars/tree-sitter-glsl delete mode 160000 grammars/tree-sitter-gn delete mode 160000 grammars/tree-sitter-go delete mode 160000 grammars/tree-sitter-go-mod delete mode 160000 grammars/tree-sitter-go-template delete mode 160000 grammars/tree-sitter-go-work delete mode 160000 grammars/tree-sitter-graphql delete mode 160000 grammars/tree-sitter-groovy delete mode 160000 grammars/tree-sitter-haskell delete mode 160000 grammars/tree-sitter-haxe delete mode 160000 grammars/tree-sitter-hcl delete mode 160000 grammars/tree-sitter-hosts delete mode 160000 grammars/tree-sitter-html delete mode 160000 grammars/tree-sitter-ini delete mode 160000 grammars/tree-sitter-java delete mode 160000 grammars/tree-sitter-javascript delete mode 160000 grammars/tree-sitter-jsdoc delete mode 160000 grammars/tree-sitter-json delete mode 160000 grammars/tree-sitter-json5 delete mode 160000 grammars/tree-sitter-jsonnet delete mode 160000 grammars/tree-sitter-julia delete mode 160000 grammars/tree-sitter-just delete mode 160000 grammars/tree-sitter-kdl delete mode 160000 grammars/tree-sitter-kotlin delete mode 160000 grammars/tree-sitter-latex delete mode 160000 grammars/tree-sitter-ld delete mode 160000 grammars/tree-sitter-llvm delete mode 160000 grammars/tree-sitter-llvm-mir delete mode 160000 grammars/tree-sitter-log delete mode 160000 grammars/tree-sitter-lua delete mode 160000 grammars/tree-sitter-make delete mode 160000 grammars/tree-sitter-markdown delete mode 160000 grammars/tree-sitter-meson delete mode 160000 grammars/tree-sitter-nasm delete mode 160000 grammars/tree-sitter-nix delete mode 160000 grammars/tree-sitter-nu delete mode 160000 grammars/tree-sitter-ocaml delete mode 160000 grammars/tree-sitter-odin delete mode 160000 grammars/tree-sitter-opencl delete mode 160000 grammars/tree-sitter-pascal delete mode 160000 grammars/tree-sitter-passwd delete mode 160000 grammars/tree-sitter-pem delete mode 160000 grammars/tree-sitter-php delete mode 160000 grammars/tree-sitter-pkl delete mode 160000 grammars/tree-sitter-powershell delete mode 160000 grammars/tree-sitter-prisma delete mode 160000 grammars/tree-sitter-protobuf delete mode 160000 grammars/tree-sitter-python delete mode 160000 grammars/tree-sitter-ql delete mode 160000 grammars/tree-sitter-r delete mode 160000 grammars/tree-sitter-rcl delete mode 160000 grammars/tree-sitter-regex delete mode 160000 grammars/tree-sitter-rego delete mode 160000 grammars/tree-sitter-ron delete mode 160000 grammars/tree-sitter-rst delete mode 160000 grammars/tree-sitter-ruby delete mode 160000 grammars/tree-sitter-rust delete mode 160000 grammars/tree-sitter-scala delete mode 160000 grammars/tree-sitter-scheme delete mode 160000 grammars/tree-sitter-scss delete mode 160000 grammars/tree-sitter-slint delete mode 160000 grammars/tree-sitter-smithy delete mode 160000 grammars/tree-sitter-sql delete mode 160000 grammars/tree-sitter-ssh-client-config delete mode 160000 grammars/tree-sitter-strace delete mode 160000 grammars/tree-sitter-svelte delete mode 160000 grammars/tree-sitter-sway delete mode 160000 grammars/tree-sitter-swift delete mode 160000 grammars/tree-sitter-tcl delete mode 160000 grammars/tree-sitter-toml delete mode 160000 grammars/tree-sitter-typescript delete mode 160000 grammars/tree-sitter-typst delete mode 160000 grammars/tree-sitter-vala delete mode 160000 grammars/tree-sitter-verilog delete mode 160000 grammars/tree-sitter-vue delete mode 160000 grammars/tree-sitter-wasm delete mode 160000 grammars/tree-sitter-wgsl delete mode 160000 grammars/tree-sitter-wit delete mode 160000 grammars/tree-sitter-xml delete mode 160000 grammars/tree-sitter-yaml delete mode 160000 grammars/tree-sitter-zig delete mode 100644 helper/Cargo.toml delete mode 100644 helper/src/main.rs delete mode 100755 make.py delete mode 100644 queries/ada/folds.scm delete mode 100644 queries/ada/highlights.scm delete mode 100644 queries/ada/indents.scm delete mode 100644 queries/ada/injections.scm delete mode 100644 queries/ada/locals.scm delete mode 100644 queries/ada/structure.scm delete mode 100644 queries/ada/tags.scm delete mode 100644 queries/ada/textobjects.scm delete mode 100644 queries/adl/folds.scm delete mode 100644 queries/adl/highlights.scm delete mode 100644 queries/adl/indents.scm delete mode 100644 queries/adl/injections.scm delete mode 100644 queries/adl/locals.scm delete mode 100644 queries/adl/structure.scm delete mode 100644 queries/adl/tags.scm delete mode 100644 queries/adl/textobjects.scm delete mode 100644 queries/agda/folds.scm delete mode 100644 queries/agda/highlights.scm delete mode 100644 queries/agda/indents.scm delete mode 100644 queries/agda/injections.scm delete mode 100644 queries/agda/locals.scm delete mode 100644 queries/agda/structure.scm delete mode 100644 queries/agda/tags.scm delete mode 100644 queries/agda/textobjects.scm delete mode 100644 queries/angular/folds.scm delete mode 100644 queries/angular/highlights.scm delete mode 100644 queries/angular/indents.scm delete mode 100644 queries/angular/injections.scm delete mode 100644 queries/angular/locals.scm delete mode 100644 queries/angular/structure.scm delete mode 100644 queries/angular/tags.scm delete mode 100644 queries/angular/textobjects.scm delete mode 100644 queries/astro/folds.scm delete mode 100644 queries/astro/highlights.scm delete mode 100644 queries/astro/indents.scm delete mode 100644 queries/astro/injections.scm delete mode 100644 queries/astro/locals.scm delete mode 100644 queries/astro/structure.scm delete mode 100644 queries/astro/tags.scm delete mode 100644 queries/astro/textobjects.scm delete mode 100644 queries/bash/folds.scm delete mode 100644 queries/bash/highlights.scm delete mode 100644 queries/bash/indents.scm delete mode 100644 queries/bash/injections.scm delete mode 100644 queries/bash/locals.scm delete mode 100644 queries/bash/structure.scm delete mode 100644 queries/bash/tags.scm delete mode 100644 queries/bash/textobjects.scm delete mode 100644 queries/bass/folds.scm delete mode 100644 queries/bass/highlights.scm delete mode 100644 queries/bass/indents.scm delete mode 100644 queries/bass/injections.scm delete mode 100644 queries/bass/locals.scm delete mode 100644 queries/bass/structure.scm delete mode 100644 queries/bass/tags.scm delete mode 100644 queries/bass/textobjects.scm delete mode 100644 queries/beancount/folds.scm delete mode 100644 queries/beancount/highlights.scm delete mode 100644 queries/beancount/indents.scm delete mode 100644 queries/beancount/injections.scm delete mode 100644 queries/beancount/locals.scm delete mode 100644 queries/beancount/structure.scm delete mode 100644 queries/beancount/tags.scm delete mode 100644 queries/beancount/textobjects.scm delete mode 100644 queries/bibtex/folds.scm delete mode 100644 queries/bibtex/highlights.scm delete mode 100644 queries/bibtex/indents.scm delete mode 100644 queries/bibtex/injections.scm delete mode 100644 queries/bibtex/locals.scm delete mode 100644 queries/bibtex/structure.scm delete mode 100644 queries/bibtex/tags.scm delete mode 100644 queries/bibtex/textobjects.scm delete mode 100644 queries/bitbake/folds.scm delete mode 100644 queries/bitbake/highlights.scm delete mode 100644 queries/bitbake/indents.scm delete mode 100644 queries/bitbake/injections.scm delete mode 100644 queries/bitbake/locals.scm delete mode 100644 queries/bitbake/structure.scm delete mode 100644 queries/bitbake/tags.scm delete mode 100644 queries/bitbake/textobjects.scm delete mode 100644 queries/blade/folds.scm delete mode 100644 queries/blade/highlights.scm delete mode 100644 queries/blade/indents.scm delete mode 100644 queries/blade/injections.scm delete mode 100644 queries/blade/locals.scm delete mode 100644 queries/blade/structure.scm delete mode 100644 queries/blade/tags.scm delete mode 100644 queries/blade/textobjects.scm delete mode 100644 queries/c/folds.scm delete mode 100644 queries/c/highlights.scm delete mode 100644 queries/c/indents.scm delete mode 100644 queries/c/injections.scm delete mode 100644 queries/c/locals.scm delete mode 100644 queries/c/structure.scm delete mode 100644 queries/c/tags.scm delete mode 100644 queries/c/textobjects.scm delete mode 100644 queries/clojure/folds.scm delete mode 100644 queries/clojure/highlights.scm delete mode 100644 queries/clojure/indents.scm delete mode 100644 queries/clojure/injections.scm delete mode 100644 queries/clojure/locals.scm delete mode 100644 queries/clojure/structure.scm delete mode 100644 queries/clojure/tags.scm delete mode 100644 queries/clojure/textobjects.scm delete mode 100644 queries/cmake/folds.scm delete mode 100644 queries/cmake/highlights.scm delete mode 100644 queries/cmake/indents.scm delete mode 100644 queries/cmake/injections.scm delete mode 100644 queries/cmake/locals.scm delete mode 100644 queries/cmake/structure.scm delete mode 100644 queries/cmake/tags.scm delete mode 100644 queries/cmake/textobjects.scm delete mode 100644 queries/cpp/folds.scm delete mode 100644 queries/cpp/highlights.scm delete mode 100644 queries/cpp/indents.scm delete mode 100644 queries/cpp/injections.scm delete mode 100644 queries/cpp/locals.scm delete mode 100644 queries/cpp/structure.scm delete mode 100644 queries/cpp/tags.scm delete mode 100644 queries/cpp/textobjects.scm delete mode 100644 queries/csharp/folds.scm delete mode 100644 queries/csharp/highlights.scm delete mode 100644 queries/csharp/indents.scm delete mode 100644 queries/csharp/injections.scm delete mode 100644 queries/csharp/locals.scm delete mode 100644 queries/csharp/structure.scm delete mode 100644 queries/csharp/tags.scm delete mode 100644 queries/csharp/textobjects.scm delete mode 100644 queries/css/folds.scm delete mode 100644 queries/css/highlights.scm delete mode 100644 queries/css/indents.scm delete mode 100644 queries/css/injections.scm delete mode 100644 queries/css/locals.scm delete mode 100644 queries/css/structure.scm delete mode 100644 queries/css/tags.scm delete mode 100644 queries/css/textobjects.scm delete mode 100644 queries/cue/folds.scm delete mode 100644 queries/cue/highlights.scm delete mode 100644 queries/cue/indents.scm delete mode 100644 queries/cue/injections.scm delete mode 100644 queries/cue/locals.scm delete mode 100644 queries/cue/structure.scm delete mode 100644 queries/cue/tags.scm delete mode 100644 queries/cue/textobjects.scm delete mode 100644 queries/d/folds.scm delete mode 100644 queries/d/highlights.scm delete mode 100644 queries/d/indents.scm delete mode 100644 queries/d/injections.scm delete mode 100644 queries/d/locals.scm delete mode 100644 queries/d/structure.scm delete mode 100644 queries/d/tags.scm delete mode 100644 queries/d/textobjects.scm delete mode 100644 queries/dart/folds.scm delete mode 100644 queries/dart/highlights.scm delete mode 100644 queries/dart/indents.scm delete mode 100644 queries/dart/injections.scm delete mode 100644 queries/dart/locals.scm delete mode 100644 queries/dart/structure.scm delete mode 100644 queries/dart/tags.scm delete mode 100644 queries/dart/test.scm delete mode 100644 queries/dart/textobjects.scm delete mode 100644 queries/dhall/folds.scm delete mode 100644 queries/dhall/highlights.scm delete mode 100644 queries/dhall/indents.scm delete mode 100644 queries/dhall/injections.scm delete mode 100644 queries/dhall/locals.scm delete mode 100644 queries/dhall/structure.scm delete mode 100644 queries/dhall/tags.scm delete mode 100644 queries/dhall/textobjects.scm delete mode 100644 queries/diff/folds.scm delete mode 100644 queries/diff/highlights.scm delete mode 100644 queries/diff/indents.scm delete mode 100644 queries/diff/injections.scm delete mode 100644 queries/diff/locals.scm delete mode 100644 queries/diff/structure.scm delete mode 100644 queries/diff/tags.scm delete mode 100644 queries/diff/textobjects.scm delete mode 100644 queries/dockerfile/folds.scm delete mode 100644 queries/dockerfile/highlights.scm delete mode 100644 queries/dockerfile/indents.scm delete mode 100644 queries/dockerfile/injections.scm delete mode 100644 queries/dockerfile/locals.scm delete mode 100644 queries/dockerfile/structure.scm delete mode 100644 queries/dockerfile/tags.scm delete mode 100644 queries/dockerfile/textobjects.scm delete mode 100644 queries/dot/folds.scm delete mode 100644 queries/dot/highlights.scm delete mode 100644 queries/dot/indents.scm delete mode 100644 queries/dot/injections.scm delete mode 100644 queries/dot/locals.scm delete mode 100644 queries/dot/structure.scm delete mode 100644 queries/dot/tags.scm delete mode 100644 queries/dot/textobjects.scm delete mode 100644 queries/elixir/folds.scm delete mode 100644 queries/elixir/highlights.scm delete mode 100644 queries/elixir/indents.scm delete mode 100644 queries/elixir/injections.scm delete mode 100644 queries/elixir/locals.scm delete mode 100644 queries/elixir/structure.scm delete mode 100644 queries/elixir/tags.scm delete mode 100644 queries/elixir/textobjects.scm delete mode 100644 queries/elm/folds.scm delete mode 100644 queries/elm/highlights.scm delete mode 100644 queries/elm/indents.scm delete mode 100644 queries/elm/injections.scm delete mode 100644 queries/elm/locals.scm delete mode 100644 queries/elm/structure.scm delete mode 100644 queries/elm/tags.scm delete mode 100644 queries/elm/textobjects.scm delete mode 100644 queries/erlang/folds.scm delete mode 100644 queries/erlang/highlights.scm delete mode 100644 queries/erlang/indents.scm delete mode 100644 queries/erlang/injections.scm delete mode 100644 queries/erlang/locals.scm delete mode 100644 queries/erlang/structure.scm delete mode 100644 queries/erlang/tags.scm delete mode 100644 queries/erlang/textobjects.scm delete mode 100644 queries/fish/folds.scm delete mode 100644 queries/fish/highlights.scm delete mode 100644 queries/fish/indents.scm delete mode 100644 queries/fish/injections.scm delete mode 100644 queries/fish/locals.scm delete mode 100644 queries/fish/structure.scm delete mode 100644 queries/fish/tags.scm delete mode 100644 queries/fish/textobjects.scm delete mode 100644 queries/fluent/folds.scm delete mode 100644 queries/fluent/highlights.scm delete mode 100644 queries/fluent/indents.scm delete mode 100644 queries/fluent/injections.scm delete mode 100644 queries/fluent/locals.scm delete mode 100644 queries/fluent/structure.scm delete mode 100644 queries/fluent/tags.scm delete mode 100644 queries/fluent/textobjects.scm delete mode 100644 queries/forth/folds.scm delete mode 100644 queries/forth/highlights.scm delete mode 100644 queries/forth/indents.scm delete mode 100644 queries/forth/injections.scm delete mode 100644 queries/forth/locals.scm delete mode 100644 queries/forth/structure.scm delete mode 100644 queries/forth/tags.scm delete mode 100644 queries/forth/textobjects.scm delete mode 100644 queries/fortran/folds.scm delete mode 100644 queries/fortran/highlights.scm delete mode 100644 queries/fortran/indents.scm delete mode 100644 queries/fortran/injections.scm delete mode 100644 queries/fortran/locals.scm delete mode 100644 queries/fortran/structure.scm delete mode 100644 queries/fortran/tags.scm delete mode 100644 queries/fortran/textobjects.scm delete mode 100644 queries/fsharp/folds.scm delete mode 100644 queries/fsharp/highlights.scm delete mode 100644 queries/fsharp/indents.scm delete mode 100644 queries/fsharp/injections.scm delete mode 100644 queries/fsharp/locals.scm delete mode 100644 queries/fsharp/structure.scm delete mode 100644 queries/fsharp/tags.scm delete mode 100644 queries/fsharp/textobjects.scm delete mode 100644 queries/git-commit/folds.scm delete mode 100644 queries/git-commit/highlights.scm delete mode 100644 queries/git-commit/indents.scm delete mode 100644 queries/git-commit/injections.scm delete mode 100644 queries/git-commit/locals.scm delete mode 100644 queries/git-commit/structure.scm delete mode 100644 queries/git-commit/tags.scm delete mode 100644 queries/git-commit/textobjects.scm delete mode 100644 queries/git-config/folds.scm delete mode 100644 queries/git-config/highlights.scm delete mode 100644 queries/git-config/indents.scm delete mode 100644 queries/git-config/injections.scm delete mode 100644 queries/git-config/locals.scm delete mode 100644 queries/git-config/structure.scm delete mode 100644 queries/git-config/tags.scm delete mode 100644 queries/git-config/textobjects.scm delete mode 100644 queries/git-rebase/folds.scm delete mode 100644 queries/git-rebase/highlights.scm delete mode 100644 queries/git-rebase/indents.scm delete mode 100644 queries/git-rebase/injections.scm delete mode 100644 queries/git-rebase/locals.scm delete mode 100644 queries/git-rebase/structure.scm delete mode 100644 queries/git-rebase/tags.scm delete mode 100644 queries/git-rebase/textobjects.scm delete mode 100644 queries/gitattributes/folds.scm delete mode 100644 queries/gitattributes/highlights.scm delete mode 100644 queries/gitattributes/indents.scm delete mode 100644 queries/gitattributes/injections.scm delete mode 100644 queries/gitattributes/locals.scm delete mode 100644 queries/gitattributes/structure.scm delete mode 100644 queries/gitattributes/tags.scm delete mode 100644 queries/gitattributes/textobjects.scm delete mode 100644 queries/gleam/folds.scm delete mode 100644 queries/gleam/highlights.scm delete mode 100644 queries/gleam/indents.scm delete mode 100644 queries/gleam/injections.scm delete mode 100644 queries/gleam/locals.scm delete mode 100644 queries/gleam/structure.scm delete mode 100644 queries/gleam/tags.scm delete mode 100644 queries/gleam/textobjects.scm delete mode 100644 queries/glimmer/folds.scm delete mode 100644 queries/glimmer/highlights.scm delete mode 100644 queries/glimmer/indents.scm delete mode 100644 queries/glimmer/injections.scm delete mode 100644 queries/glimmer/locals.scm delete mode 100644 queries/glimmer/structure.scm delete mode 100644 queries/glimmer/tags.scm delete mode 100644 queries/glimmer/textobjects.scm delete mode 100644 queries/glsl/folds.scm delete mode 100644 queries/glsl/highlights.scm delete mode 100644 queries/glsl/indents.scm delete mode 100644 queries/glsl/injections.scm delete mode 100644 queries/glsl/locals.scm delete mode 100644 queries/glsl/structure.scm delete mode 100644 queries/glsl/tags.scm delete mode 100644 queries/glsl/textobjects.scm delete mode 100644 queries/gn/folds.scm delete mode 100644 queries/gn/highlights.scm delete mode 100644 queries/gn/indents.scm delete mode 100644 queries/gn/injections.scm delete mode 100644 queries/gn/locals.scm delete mode 100644 queries/gn/structure.scm delete mode 100644 queries/gn/tags.scm delete mode 100644 queries/gn/textobjects.scm delete mode 100644 queries/go-mod/folds.scm delete mode 100644 queries/go-mod/highlights.scm delete mode 100644 queries/go-mod/indents.scm delete mode 100644 queries/go-mod/injections.scm delete mode 100644 queries/go-mod/locals.scm delete mode 100644 queries/go-mod/structure.scm delete mode 100644 queries/go-mod/tags.scm delete mode 100644 queries/go-mod/textobjects.scm delete mode 100644 queries/go-template/folds.scm delete mode 100644 queries/go-template/highlights.scm delete mode 100644 queries/go-template/indents.scm delete mode 100644 queries/go-template/injections.scm delete mode 100644 queries/go-template/locals.scm delete mode 100644 queries/go-template/structure.scm delete mode 100644 queries/go-template/tags.scm delete mode 100644 queries/go-template/textobjects.scm delete mode 100644 queries/go-work/folds.scm delete mode 100644 queries/go-work/highlights.scm delete mode 100644 queries/go-work/indents.scm delete mode 100644 queries/go-work/injections.scm delete mode 100644 queries/go-work/locals.scm delete mode 100644 queries/go-work/structure.scm delete mode 100644 queries/go-work/tags.scm delete mode 100644 queries/go-work/textobjects.scm delete mode 100644 queries/go/folds.scm delete mode 100644 queries/go/highlights.scm delete mode 100644 queries/go/indents.scm delete mode 100644 queries/go/injections.scm delete mode 100644 queries/go/locals.scm delete mode 100644 queries/go/structure.scm delete mode 100644 queries/go/tags.scm delete mode 100644 queries/go/textobjects.scm delete mode 100644 queries/graphql/folds.scm delete mode 100644 queries/graphql/highlights.scm delete mode 100644 queries/graphql/indents.scm delete mode 100644 queries/graphql/injections.scm delete mode 100644 queries/graphql/locals.scm delete mode 100644 queries/graphql/structure.scm delete mode 100644 queries/graphql/tags.scm delete mode 100644 queries/graphql/textobjects.scm delete mode 100644 queries/groovy/folds.scm delete mode 100644 queries/groovy/highlights.scm delete mode 100644 queries/groovy/indents.scm delete mode 100644 queries/groovy/injections.scm delete mode 100644 queries/groovy/locals.scm delete mode 100644 queries/groovy/structure.scm delete mode 100644 queries/groovy/tags.scm delete mode 100644 queries/groovy/textobjects.scm delete mode 100644 queries/haskell/folds.scm delete mode 100644 queries/haskell/highlights.scm delete mode 100644 queries/haskell/indents.scm delete mode 100644 queries/haskell/injections.scm delete mode 100644 queries/haskell/locals.scm delete mode 100644 queries/haskell/structure.scm delete mode 100644 queries/haskell/tags.scm delete mode 100644 queries/haskell/textobjects.scm delete mode 100644 queries/haxe/folds.scm delete mode 100644 queries/haxe/highlights.scm delete mode 100644 queries/haxe/indents.scm delete mode 100644 queries/haxe/injections.scm delete mode 100644 queries/haxe/locals.scm delete mode 100644 queries/haxe/structure.scm delete mode 100644 queries/haxe/tags.scm delete mode 100644 queries/haxe/textobjects.scm delete mode 100644 queries/hcl/folds.scm delete mode 100644 queries/hcl/highlights.scm delete mode 100644 queries/hcl/indents.scm delete mode 100644 queries/hcl/injections.scm delete mode 100644 queries/hcl/locals.scm delete mode 100644 queries/hcl/structure.scm delete mode 100644 queries/hcl/tags.scm delete mode 100644 queries/hcl/textobjects.scm delete mode 100644 queries/hosts/folds.scm delete mode 100644 queries/hosts/highlights.scm delete mode 100644 queries/hosts/indents.scm delete mode 100644 queries/hosts/injections.scm delete mode 100644 queries/hosts/locals.scm delete mode 100644 queries/hosts/structure.scm delete mode 100644 queries/hosts/tags.scm delete mode 100644 queries/hosts/textobjects.scm delete mode 100644 queries/html/folds.scm delete mode 100644 queries/html/highlights.scm delete mode 100644 queries/html/indents.scm delete mode 100644 queries/html/injections.scm delete mode 100644 queries/html/locals.scm delete mode 100644 queries/html/structure.scm delete mode 100644 queries/html/tags.scm delete mode 100644 queries/html/textobjects.scm delete mode 100644 queries/ini/folds.scm delete mode 100644 queries/ini/highlights.scm delete mode 100644 queries/ini/indents.scm delete mode 100644 queries/ini/injections.scm delete mode 100644 queries/ini/locals.scm delete mode 100644 queries/ini/structure.scm delete mode 100644 queries/ini/tags.scm delete mode 100644 queries/ini/textobjects.scm delete mode 100644 queries/java/folds.scm delete mode 100644 queries/java/highlights.scm delete mode 100644 queries/java/indents.scm delete mode 100644 queries/java/injections.scm delete mode 100644 queries/java/locals.scm delete mode 100644 queries/java/structure.scm delete mode 100644 queries/java/tags.scm delete mode 100644 queries/java/textobjects.scm delete mode 100644 queries/javascript/folds.scm delete mode 100644 queries/javascript/highlights.scm delete mode 100644 queries/javascript/indents.scm delete mode 100644 queries/javascript/injections.scm delete mode 100644 queries/javascript/locals.scm delete mode 100644 queries/javascript/structure.scm delete mode 100644 queries/javascript/tags.scm delete mode 100644 queries/javascript/textobjects.scm delete mode 100644 queries/jsdoc/folds.scm delete mode 100644 queries/jsdoc/highlights.scm delete mode 100644 queries/jsdoc/indents.scm delete mode 100644 queries/jsdoc/injections.scm delete mode 100644 queries/jsdoc/locals.scm delete mode 100644 queries/jsdoc/structure.scm delete mode 100644 queries/jsdoc/tags.scm delete mode 100644 queries/jsdoc/textobjects.scm delete mode 100644 queries/json/folds.scm delete mode 100644 queries/json/highlights.scm delete mode 100644 queries/json/indents.scm delete mode 100644 queries/json/injections.scm delete mode 100644 queries/json/locals.scm delete mode 100644 queries/json/structure.scm delete mode 100644 queries/json/tags.scm delete mode 100644 queries/json/textobjects.scm delete mode 100644 queries/json5/folds.scm delete mode 100644 queries/json5/highlights.scm delete mode 100644 queries/json5/indents.scm delete mode 100644 queries/json5/injections.scm delete mode 100644 queries/json5/locals.scm delete mode 100644 queries/json5/structure.scm delete mode 100644 queries/json5/tags.scm delete mode 100644 queries/json5/textobjects.scm delete mode 100644 queries/jsonnet/folds.scm delete mode 100644 queries/jsonnet/highlights.scm delete mode 100644 queries/jsonnet/indents.scm delete mode 100644 queries/jsonnet/injections.scm delete mode 100644 queries/jsonnet/locals.scm delete mode 100644 queries/jsonnet/structure.scm delete mode 100644 queries/jsonnet/tags.scm delete mode 100644 queries/jsonnet/textobjects.scm delete mode 100644 queries/jsx/folds.scm delete mode 100644 queries/jsx/highlights.scm delete mode 100644 queries/jsx/indents.scm delete mode 100644 queries/jsx/injections.scm delete mode 100644 queries/jsx/locals.scm delete mode 100644 queries/jsx/structure.scm delete mode 100644 queries/jsx/tags.scm delete mode 100644 queries/jsx/textobjects.scm delete mode 100644 queries/julia/folds.scm delete mode 100644 queries/julia/highlights.scm delete mode 100644 queries/julia/indents.scm delete mode 100644 queries/julia/injections.scm delete mode 100644 queries/julia/locals.scm delete mode 100644 queries/julia/structure.scm delete mode 100644 queries/julia/tags.scm delete mode 100644 queries/julia/textobjects.scm delete mode 100644 queries/just/folds.scm delete mode 100644 queries/just/highlights.scm delete mode 100644 queries/just/indents.scm delete mode 100644 queries/just/injections.scm delete mode 100644 queries/just/locals.scm delete mode 100644 queries/just/structure.scm delete mode 100644 queries/just/tags.scm delete mode 100644 queries/just/textobjects.scm delete mode 100644 queries/kdl/folds.scm delete mode 100644 queries/kdl/highlights.scm delete mode 100644 queries/kdl/indents.scm delete mode 100644 queries/kdl/injections.scm delete mode 100644 queries/kdl/locals.scm delete mode 100644 queries/kdl/structure.scm delete mode 100644 queries/kdl/tags.scm delete mode 100644 queries/kdl/textobjects.scm delete mode 100644 queries/kotlin/folds.scm delete mode 100644 queries/kotlin/highlights.scm delete mode 100644 queries/kotlin/indents.scm delete mode 100644 queries/kotlin/injections.scm delete mode 100644 queries/kotlin/locals.scm delete mode 100644 queries/kotlin/structure.scm delete mode 100644 queries/kotlin/tags.scm delete mode 100644 queries/kotlin/textobjects.scm delete mode 100644 queries/latex/folds.scm delete mode 100644 queries/latex/highlights.scm delete mode 100644 queries/latex/indents.scm delete mode 100644 queries/latex/injections.scm delete mode 100644 queries/latex/locals.scm delete mode 100644 queries/latex/structure.scm delete mode 100644 queries/latex/tags.scm delete mode 100644 queries/latex/textobjects.scm delete mode 100644 queries/ld/folds.scm delete mode 100644 queries/ld/highlights.scm delete mode 100644 queries/ld/indents.scm delete mode 100644 queries/ld/injections.scm delete mode 100644 queries/ld/locals.scm delete mode 100644 queries/ld/structure.scm delete mode 100644 queries/ld/tags.scm delete mode 100644 queries/ld/textobjects.scm delete mode 100644 queries/llvm-mir/folds.scm delete mode 100644 queries/llvm-mir/highlights.scm delete mode 100644 queries/llvm-mir/indents.scm delete mode 100644 queries/llvm-mir/injections.scm delete mode 100644 queries/llvm-mir/locals.scm delete mode 100644 queries/llvm-mir/structure.scm delete mode 100644 queries/llvm-mir/tags.scm delete mode 100644 queries/llvm-mir/textobjects.scm delete mode 100644 queries/llvm/folds.scm delete mode 100644 queries/llvm/highlights.scm delete mode 100644 queries/llvm/indents.scm delete mode 100644 queries/llvm/injections.scm delete mode 100644 queries/llvm/locals.scm delete mode 100644 queries/llvm/structure.scm delete mode 100644 queries/llvm/tags.scm delete mode 100644 queries/llvm/textobjects.scm delete mode 100644 queries/log/folds.scm delete mode 100644 queries/log/highlights.scm delete mode 100644 queries/log/indents.scm delete mode 100644 queries/log/injections.scm delete mode 100644 queries/log/locals.scm delete mode 100644 queries/log/structure.scm delete mode 100644 queries/log/tags.scm delete mode 100644 queries/log/textobjects.scm delete mode 100644 queries/lua/folds.scm delete mode 100644 queries/lua/highlights.scm delete mode 100644 queries/lua/indents.scm delete mode 100644 queries/lua/injections.scm delete mode 100644 queries/lua/locals.scm delete mode 100644 queries/lua/structure.scm delete mode 100644 queries/lua/tags.scm delete mode 100644 queries/lua/textobjects.scm delete mode 100644 queries/make/folds.scm delete mode 100644 queries/make/highlights.scm delete mode 100644 queries/make/indents.scm delete mode 100644 queries/make/injections.scm delete mode 100644 queries/make/locals.scm delete mode 100644 queries/make/structure.scm delete mode 100644 queries/make/tags.scm delete mode 100644 queries/make/textobjects.scm delete mode 100644 queries/markdown.inline/folds.scm delete mode 100644 queries/markdown.inline/highlights.scm delete mode 100644 queries/markdown.inline/indents.scm delete mode 100644 queries/markdown.inline/injections.scm delete mode 100644 queries/markdown.inline/locals.scm delete mode 100644 queries/markdown.inline/structure.scm delete mode 100644 queries/markdown.inline/tags.scm delete mode 100644 queries/markdown.inline/textobjects.scm delete mode 100644 queries/markdown/folds.scm delete mode 100644 queries/markdown/highlights.scm delete mode 100644 queries/markdown/indents.scm delete mode 100644 queries/markdown/injections.scm delete mode 100644 queries/markdown/locals.scm delete mode 100644 queries/markdown/structure.scm delete mode 100644 queries/markdown/tags.scm delete mode 100644 queries/markdown/textobjects.scm delete mode 100644 queries/meson/folds.scm delete mode 100644 queries/meson/highlights.scm delete mode 100644 queries/meson/indents.scm delete mode 100644 queries/meson/injections.scm delete mode 100644 queries/meson/locals.scm delete mode 100644 queries/meson/structure.scm delete mode 100644 queries/meson/tags.scm delete mode 100644 queries/meson/textobjects.scm delete mode 100644 queries/nasm/folds.scm delete mode 100644 queries/nasm/highlights.scm delete mode 100644 queries/nasm/indents.scm delete mode 100644 queries/nasm/injections.scm delete mode 100644 queries/nasm/locals.scm delete mode 100644 queries/nasm/structure.scm delete mode 100644 queries/nasm/tags.scm delete mode 100644 queries/nasm/textobjects.scm delete mode 100644 queries/nix/folds.scm delete mode 100644 queries/nix/highlights.scm delete mode 100644 queries/nix/indents.scm delete mode 100644 queries/nix/injections.scm delete mode 100644 queries/nix/locals.scm delete mode 100644 queries/nix/structure.scm delete mode 100644 queries/nix/tags.scm delete mode 100644 queries/nix/textobjects.scm delete mode 100644 queries/nu/folds.scm delete mode 100644 queries/nu/highlights.scm delete mode 100644 queries/nu/indents.scm delete mode 100644 queries/nu/injections.scm delete mode 100644 queries/nu/locals.scm delete mode 100644 queries/nu/structure.scm delete mode 100644 queries/nu/tags.scm delete mode 100644 queries/nu/textobjects.scm delete mode 100644 queries/ocaml/folds.scm delete mode 100644 queries/ocaml/highlights.scm delete mode 100644 queries/ocaml/indents.scm delete mode 100644 queries/ocaml/injections.scm delete mode 100644 queries/ocaml/locals.scm delete mode 100644 queries/ocaml/structure.scm delete mode 100644 queries/ocaml/tags.scm delete mode 100644 queries/ocaml/textobjects.scm delete mode 100644 queries/odin/folds.scm delete mode 100644 queries/odin/highlights.scm delete mode 100644 queries/odin/indents.scm delete mode 100644 queries/odin/injections.scm delete mode 100644 queries/odin/locals.scm delete mode 100644 queries/odin/structure.scm delete mode 100644 queries/odin/tags.scm delete mode 100644 queries/odin/textobjects.scm delete mode 100644 queries/opencl/folds.scm delete mode 100644 queries/opencl/highlights.scm delete mode 100644 queries/opencl/indents.scm delete mode 100644 queries/opencl/injections.scm delete mode 100644 queries/opencl/locals.scm delete mode 100644 queries/opencl/structure.scm delete mode 100644 queries/opencl/tags.scm delete mode 100644 queries/opencl/textobjects.scm delete mode 100644 queries/pascal/folds.scm delete mode 100644 queries/pascal/highlights.scm delete mode 100644 queries/pascal/indents.scm delete mode 100644 queries/pascal/injections.scm delete mode 100644 queries/pascal/locals.scm delete mode 100644 queries/pascal/structure.scm delete mode 100644 queries/pascal/tags.scm delete mode 100644 queries/pascal/textobjects.scm delete mode 100644 queries/passwd/folds.scm delete mode 100644 queries/passwd/highlights.scm delete mode 100644 queries/passwd/indents.scm delete mode 100644 queries/passwd/injections.scm delete mode 100644 queries/passwd/locals.scm delete mode 100644 queries/passwd/structure.scm delete mode 100644 queries/passwd/tags.scm delete mode 100644 queries/passwd/textobjects.scm delete mode 100644 queries/pem/folds.scm delete mode 100644 queries/pem/highlights.scm delete mode 100644 queries/pem/indents.scm delete mode 100644 queries/pem/injections.scm delete mode 100644 queries/pem/locals.scm delete mode 100644 queries/pem/structure.scm delete mode 100644 queries/pem/tags.scm delete mode 100644 queries/pem/textobjects.scm delete mode 100644 queries/php/folds.scm delete mode 100644 queries/php/highlights.scm delete mode 100644 queries/php/indents.scm delete mode 100644 queries/php/injections.scm delete mode 100644 queries/php/locals.scm delete mode 100644 queries/php/structure.scm delete mode 100644 queries/php/tags.scm delete mode 100644 queries/php/textobjects.scm delete mode 100644 queries/pkl/folds.scm delete mode 100644 queries/pkl/highlights.scm delete mode 100644 queries/pkl/indents.scm delete mode 100644 queries/pkl/injections.scm delete mode 100644 queries/pkl/locals.scm delete mode 100644 queries/pkl/structure.scm delete mode 100644 queries/pkl/tags.scm delete mode 100644 queries/pkl/textobjects.scm delete mode 100644 queries/powershell/folds.scm delete mode 100644 queries/powershell/highlights.scm delete mode 100644 queries/powershell/indents.scm delete mode 100644 queries/powershell/injections.scm delete mode 100644 queries/powershell/locals.scm delete mode 100644 queries/powershell/structure.scm delete mode 100644 queries/powershell/tags.scm delete mode 100644 queries/powershell/textobjects.scm delete mode 100644 queries/prisma/folds.scm delete mode 100644 queries/prisma/highlights.scm delete mode 100644 queries/prisma/indents.scm delete mode 100644 queries/prisma/injections.scm delete mode 100644 queries/prisma/locals.scm delete mode 100644 queries/prisma/structure.scm delete mode 100644 queries/prisma/tags.scm delete mode 100644 queries/prisma/textobjects.scm delete mode 100644 queries/protobuf/folds.scm delete mode 100644 queries/protobuf/highlights.scm delete mode 100644 queries/protobuf/indents.scm delete mode 100644 queries/protobuf/injections.scm delete mode 100644 queries/protobuf/locals.scm delete mode 100644 queries/protobuf/structure.scm delete mode 100644 queries/protobuf/tags.scm delete mode 100644 queries/protobuf/textobjects.scm delete mode 100644 queries/python/folds.scm delete mode 100644 queries/python/highlights.scm delete mode 100644 queries/python/indents.scm delete mode 100644 queries/python/injections.scm delete mode 100644 queries/python/locals.scm delete mode 100644 queries/python/structure.scm delete mode 100644 queries/python/tags.scm delete mode 100644 queries/python/textobjects.scm delete mode 100644 queries/ql/folds.scm delete mode 100644 queries/ql/highlights.scm delete mode 100644 queries/ql/indents.scm delete mode 100644 queries/ql/injections.scm delete mode 100644 queries/ql/locals.scm delete mode 100644 queries/ql/structure.scm delete mode 100644 queries/ql/tags.scm delete mode 100644 queries/ql/textobjects.scm delete mode 100644 queries/r/folds.scm delete mode 100644 queries/r/highlights.scm delete mode 100644 queries/r/indents.scm delete mode 100644 queries/r/injections.scm delete mode 100644 queries/r/locals.scm delete mode 100644 queries/r/structure.scm delete mode 100644 queries/r/tags.scm delete mode 100644 queries/r/textobjects.scm delete mode 100644 queries/rcl/folds.scm delete mode 100644 queries/rcl/highlights.scm delete mode 100644 queries/rcl/indents.scm delete mode 100644 queries/rcl/injections.scm delete mode 100644 queries/rcl/locals.scm delete mode 100644 queries/rcl/structure.scm delete mode 100644 queries/rcl/tags.scm delete mode 100644 queries/rcl/textobjects.scm delete mode 100644 queries/regex/folds.scm delete mode 100644 queries/regex/highlights.scm delete mode 100644 queries/regex/indents.scm delete mode 100644 queries/regex/injections.scm delete mode 100644 queries/regex/locals.scm delete mode 100644 queries/regex/structure.scm delete mode 100644 queries/regex/tags.scm delete mode 100644 queries/regex/textobjects.scm delete mode 100644 queries/rego/folds.scm delete mode 100644 queries/rego/highlights.scm delete mode 100644 queries/rego/indents.scm delete mode 100644 queries/rego/injections.scm delete mode 100644 queries/rego/locals.scm delete mode 100644 queries/rego/structure.scm delete mode 100644 queries/rego/tags.scm delete mode 100644 queries/rego/textobjects.scm delete mode 100644 queries/ron/folds.scm delete mode 100644 queries/ron/highlights.scm delete mode 100644 queries/ron/indents.scm delete mode 100644 queries/ron/injections.scm delete mode 100644 queries/ron/locals.scm delete mode 100644 queries/ron/structure.scm delete mode 100644 queries/ron/tags.scm delete mode 100644 queries/ron/textobjects.scm delete mode 100644 queries/rst/folds.scm delete mode 100644 queries/rst/highlights.scm delete mode 100644 queries/rst/indents.scm delete mode 100644 queries/rst/injections.scm delete mode 100644 queries/rst/locals.scm delete mode 100644 queries/rst/structure.scm delete mode 100644 queries/rst/tags.scm delete mode 100644 queries/rst/textobjects.scm delete mode 100644 queries/ruby/folds.scm delete mode 100644 queries/ruby/highlights.scm delete mode 100644 queries/ruby/indents.scm delete mode 100644 queries/ruby/injections.scm delete mode 100644 queries/ruby/locals.scm delete mode 100644 queries/ruby/structure.scm delete mode 100644 queries/ruby/tags.scm delete mode 100644 queries/ruby/textobjects.scm delete mode 100644 queries/rust/folds.scm delete mode 100644 queries/rust/highlights.scm delete mode 100644 queries/rust/indents.scm delete mode 100644 queries/rust/injections.scm delete mode 100644 queries/rust/locals.scm delete mode 100644 queries/rust/structure.scm delete mode 100644 queries/rust/tags.scm delete mode 100644 queries/rust/textobjects.scm delete mode 100644 queries/scala/folds.scm delete mode 100644 queries/scala/highlights.scm delete mode 100644 queries/scala/indents.scm delete mode 100644 queries/scala/injections.scm delete mode 100644 queries/scala/locals.scm delete mode 100644 queries/scala/structure.scm delete mode 100644 queries/scala/tags.scm delete mode 100644 queries/scala/textobjects.scm delete mode 100644 queries/scheme/folds.scm delete mode 100644 queries/scheme/highlights.scm delete mode 100644 queries/scheme/indents.scm delete mode 100644 queries/scheme/injections.scm delete mode 100644 queries/scheme/locals.scm delete mode 100644 queries/scheme/structure.scm delete mode 100644 queries/scheme/tags.scm delete mode 100644 queries/scheme/textobjects.scm delete mode 100644 queries/scss/folds.scm delete mode 100644 queries/scss/highlights.scm delete mode 100644 queries/scss/indents.scm delete mode 100644 queries/scss/injections.scm delete mode 100644 queries/scss/locals.scm delete mode 100644 queries/scss/structure.scm delete mode 100644 queries/scss/tags.scm delete mode 100644 queries/scss/textobjects.scm delete mode 100644 queries/slint/folds.scm delete mode 100644 queries/slint/highlights.scm delete mode 100644 queries/slint/indents.scm delete mode 100644 queries/slint/injections.scm delete mode 100644 queries/slint/locals.scm delete mode 100644 queries/slint/structure.scm delete mode 100644 queries/slint/tags.scm delete mode 100644 queries/slint/textobjects.scm delete mode 100644 queries/smithy/folds.scm delete mode 100644 queries/smithy/highlights.scm delete mode 100644 queries/smithy/indents.scm delete mode 100644 queries/smithy/injections.scm delete mode 100644 queries/smithy/locals.scm delete mode 100644 queries/smithy/structure.scm delete mode 100644 queries/smithy/tags.scm delete mode 100644 queries/smithy/textobjects.scm delete mode 100644 queries/sql/folds.scm delete mode 100644 queries/sql/highlights.scm delete mode 100644 queries/sql/indents.scm delete mode 100644 queries/sql/injections.scm delete mode 100644 queries/sql/locals.scm delete mode 100644 queries/sql/structure.scm delete mode 100644 queries/sql/tags.scm delete mode 100644 queries/sql/textobjects.scm delete mode 100644 queries/ssh-client-config/folds.scm delete mode 100644 queries/ssh-client-config/highlights.scm delete mode 100644 queries/ssh-client-config/indents.scm delete mode 100644 queries/ssh-client-config/injections.scm delete mode 100644 queries/ssh-client-config/locals.scm delete mode 100644 queries/ssh-client-config/structure.scm delete mode 100644 queries/ssh-client-config/tags.scm delete mode 100644 queries/ssh-client-config/textobjects.scm delete mode 100644 queries/strace/folds.scm delete mode 100644 queries/strace/highlights.scm delete mode 100644 queries/strace/indents.scm delete mode 100644 queries/strace/injections.scm delete mode 100644 queries/strace/locals.scm delete mode 100644 queries/strace/structure.scm delete mode 100644 queries/strace/tags.scm delete mode 100644 queries/strace/textobjects.scm delete mode 100644 queries/svelte/folds.scm delete mode 100644 queries/svelte/highlights.scm delete mode 100644 queries/svelte/indents.scm delete mode 100644 queries/svelte/injections.scm delete mode 100644 queries/svelte/locals.scm delete mode 100644 queries/svelte/structure.scm delete mode 100644 queries/svelte/tags.scm delete mode 100644 queries/svelte/textobjects.scm delete mode 100644 queries/sway/folds.scm delete mode 100644 queries/sway/highlights.scm delete mode 100644 queries/sway/indents.scm delete mode 100644 queries/sway/injections.scm delete mode 100644 queries/sway/locals.scm delete mode 100644 queries/sway/structure.scm delete mode 100644 queries/sway/tags.scm delete mode 100644 queries/sway/textobjects.scm delete mode 100644 queries/swift/folds.scm delete mode 100644 queries/swift/highlights.scm delete mode 100644 queries/swift/indents.scm delete mode 100644 queries/swift/injections.scm delete mode 100644 queries/swift/locals.scm delete mode 100644 queries/swift/structure.scm delete mode 100644 queries/swift/tags.scm delete mode 100644 queries/swift/textobjects.scm delete mode 100644 queries/tcl/folds.scm delete mode 100644 queries/tcl/highlights.scm delete mode 100644 queries/tcl/indents.scm delete mode 100644 queries/tcl/injections.scm delete mode 100644 queries/tcl/locals.scm delete mode 100644 queries/tcl/structure.scm delete mode 100644 queries/tcl/tags.scm delete mode 100644 queries/tcl/textobjects.scm delete mode 100644 queries/toml/folds.scm delete mode 100644 queries/toml/highlights.scm delete mode 100644 queries/toml/indents.scm delete mode 100644 queries/toml/injections.scm delete mode 100644 queries/toml/locals.scm delete mode 100644 queries/toml/structure.scm delete mode 100644 queries/toml/tags.scm delete mode 100644 queries/toml/textobjects.scm delete mode 100644 queries/typescript/folds.scm delete mode 100644 queries/typescript/highlights.scm delete mode 100644 queries/typescript/indents.scm delete mode 100644 queries/typescript/injections.scm delete mode 100644 queries/typescript/locals.scm delete mode 100644 queries/typescript/structure.scm delete mode 100644 queries/typescript/tags.scm delete mode 100644 queries/typescript/textobjects.scm delete mode 100644 queries/typst/folds.scm delete mode 100644 queries/typst/highlights.scm delete mode 100644 queries/typst/indents.scm delete mode 100644 queries/typst/injections.scm delete mode 100644 queries/typst/locals.scm delete mode 100644 queries/typst/structure.scm delete mode 100644 queries/typst/tags.scm delete mode 100644 queries/typst/textobjects.scm delete mode 100644 queries/vala/folds.scm delete mode 100644 queries/vala/highlights.scm delete mode 100644 queries/vala/indents.scm delete mode 100644 queries/vala/injections.scm delete mode 100644 queries/vala/locals.scm delete mode 100644 queries/vala/structure.scm delete mode 100644 queries/vala/tags.scm delete mode 100644 queries/vala/textobjects.scm delete mode 100644 queries/verilog/folds.scm delete mode 100644 queries/verilog/highlights.scm delete mode 100644 queries/verilog/indents.scm delete mode 100644 queries/verilog/injections.scm delete mode 100644 queries/verilog/locals.scm delete mode 100644 queries/verilog/structure.scm delete mode 100644 queries/verilog/tags.scm delete mode 100644 queries/verilog/textobjects.scm delete mode 100644 queries/vue/folds.scm delete mode 100644 queries/vue/highlights.scm delete mode 100644 queries/vue/indents.scm delete mode 100644 queries/vue/injections.scm delete mode 100644 queries/vue/locals.scm delete mode 100644 queries/vue/structure.scm delete mode 100644 queries/vue/tags.scm delete mode 100644 queries/vue/textobjects.scm delete mode 100644 queries/wasm/folds.scm delete mode 100644 queries/wasm/highlights.scm delete mode 100644 queries/wasm/indents.scm delete mode 100644 queries/wasm/injections.scm delete mode 100644 queries/wasm/locals.scm delete mode 100644 queries/wasm/structure.scm delete mode 100644 queries/wasm/tags.scm delete mode 100644 queries/wasm/textobjects.scm delete mode 100644 queries/wast/folds.scm delete mode 100644 queries/wast/highlights.scm delete mode 100644 queries/wast/indents.scm delete mode 100644 queries/wast/injections.scm delete mode 100644 queries/wast/locals.scm delete mode 100644 queries/wast/structure.scm delete mode 100644 queries/wast/tags.scm delete mode 100644 queries/wast/textobjects.scm delete mode 100644 queries/wgsl/folds.scm delete mode 100644 queries/wgsl/highlights.scm delete mode 100644 queries/wgsl/indents.scm delete mode 100644 queries/wgsl/injections.scm delete mode 100644 queries/wgsl/locals.scm delete mode 100644 queries/wgsl/structure.scm delete mode 100644 queries/wgsl/tags.scm delete mode 100644 queries/wgsl/textobjects.scm delete mode 100644 queries/wit/folds.scm delete mode 100644 queries/wit/highlights.scm delete mode 100644 queries/wit/indents.scm delete mode 100644 queries/wit/injections.scm delete mode 100644 queries/wit/locals.scm delete mode 100644 queries/wit/structure.scm delete mode 100644 queries/wit/tags.scm delete mode 100644 queries/wit/textobjects.scm delete mode 100644 queries/xml/folds.scm delete mode 100644 queries/xml/highlights.scm delete mode 100644 queries/xml/indents.scm delete mode 100644 queries/xml/injections.scm delete mode 100644 queries/xml/locals.scm delete mode 100644 queries/xml/structure.scm delete mode 100644 queries/xml/tags.scm delete mode 100644 queries/xml/textobjects.scm delete mode 100644 queries/yaml/folds.scm delete mode 100644 queries/yaml/highlights.scm delete mode 100644 queries/yaml/indents.scm delete mode 100644 queries/yaml/injections.scm delete mode 100644 queries/yaml/locals.scm delete mode 100644 queries/yaml/structure.scm delete mode 100644 queries/yaml/tags.scm delete mode 100644 queries/yaml/textobjects.scm delete mode 100644 queries/zig/folds.scm delete mode 100644 queries/zig/highlights.scm delete mode 100644 queries/zig/indents.scm delete mode 100644 queries/zig/injections.scm delete mode 100644 queries/zig/locals.scm delete mode 100644 queries/zig/structure.scm delete mode 100644 queries/zig/tags.scm delete mode 100644 queries/zig/textobjects.scm create mode 100644 src/main.rs diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 5bd6262..0000000 --- a/.gitmodules +++ /dev/null @@ -1,490 +0,0 @@ -[submodule "grammars/tree-sitter-ada"] - path = "grammars/tree-sitter-ada" - url = "git@github.com:briot/tree-sitter-ada.git" - -[submodule "grammars/tree-sitter-adl"] - path = "grammars/tree-sitter-adl" - url = "git@github.com:adl-lang/tree-sitter-adl.git" - -[submodule "grammars/tree-sitter-agda"] - path = "grammars/tree-sitter-agda" - url = "git@github.com:tree-sitter/tree-sitter-agda.git" - -[submodule "grammars/tree-sitter-angular"] - path = "grammars/tree-sitter-angular" - url = "git@github.com:dlvandenberg/tree-sitter-angular.git" - -[submodule "grammars/tree-sitter-astro"] - path = "grammars/tree-sitter-astro" - url = "git@github.com:virchau13/tree-sitter-astro.git" - -[submodule "grammars/tree-sitter-bash"] - path = "grammars/tree-sitter-bash" - url = "git@github.com:tree-sitter/tree-sitter-bash.git" - -[submodule "grammars/tree-sitter-bass"] - path = "grammars/tree-sitter-bass" - url = "git@github.com:vito/tree-sitter-bass.git" - -[submodule "grammars/tree-sitter-beancount"] - path = "grammars/tree-sitter-beancount" - url = "git@github.com:polarmutex/tree-sitter-beancount.git" - -[submodule "grammars/tree-sitter-bibtex"] - path = "grammars/tree-sitter-bibtex" - url = "git@github.com:latex-lsp/tree-sitter-bibtex.git" - -[submodule "grammars/tree-sitter-bitbake"] - path = "grammars/tree-sitter-bitbake" - url = "git@github.com:tree-sitter-grammars/tree-sitter-bitbake.git" - -[submodule "grammars/tree-sitter-blade"] - path = "grammars/tree-sitter-blade" - url = "git@github.com:EmranMR/tree-sitter-blade.git" - -[submodule "grammars/tree-sitter-c"] - path = "grammars/tree-sitter-c" - url = "git@github.com:tree-sitter/tree-sitter-c.git" - -[submodule "grammars/tree-sitter-c-sharp"] - path = "grammars/tree-sitter-c-sharp" - url = "git@github.com:tree-sitter/tree-sitter-c-sharp.git" - url = "git@github.com:panekj/tree-sitter-c-sharp.git" - -[submodule "grammars/tree-sitter-clojure"] - path = "grammars/tree-sitter-clojure" - url = "git@github.com:sogaiu/tree-sitter-clojure.git" - -[submodule "grammars/tree-sitter-cmake"] - path = "grammars/tree-sitter-cmake" - url = "git@github.com:uyha/tree-sitter-cmake.git" - -[submodule "grammars/tree-sitter-comment"] - path = "grammars/tree-sitter-comment" - url = "git@github.com:stsewd/tree-sitter-comment.git" - -[submodule "grammars/tree-sitter-cpp"] - path = "grammars/tree-sitter-cpp" - url = "git@github.com:tree-sitter/tree-sitter-cpp.git" - -[submodule "grammars/tree-sitter-css"] - path = "grammars/tree-sitter-css" - url = "git@github.com:tree-sitter/tree-sitter-css.git" - -[submodule "grammars/tree-sitter-cue"] - path = "grammars/tree-sitter-cue" - url = "git@github.com:eonpatapon/tree-sitter-cue.git" - -[submodule "grammars/tree-sitter-d"] - path = "grammars/tree-sitter-d" - url = "git@github.com:gdamore/tree-sitter-d.git" - -[submodule "grammars/tree-sitter-dart"] - path = "grammars/tree-sitter-dart" - url = "git@github.com:UserNobody14/tree-sitter-dart.git" - -[submodule "grammars/tree-sitter-dhall"] - path = "grammars/tree-sitter-dhall" - url = "git@github.com:jbellerb/tree-sitter-dhall.git" - -[submodule "grammars/tree-sitter-diff"] - path = "grammars/tree-sitter-diff" - url = "git@github.com:the-mikedavis/tree-sitter-diff.git" - -[submodule "grammars/tree-sitter-dockerfile"] - path = "grammars/tree-sitter-dockerfile" - url = "git@github.com:camdencheek/tree-sitter-dockerfile.git" - -[submodule "grammars/tree-sitter-dot"] - path = "grammars/tree-sitter-dot" - url = "git@github.com:rydesun/tree-sitter-dot.git" - -[submodule "grammars/tree-sitter-elixir"] - path = "grammars/tree-sitter-elixir" - url = "git@github.com:elixir-lang/tree-sitter-elixir.git" - -[submodule "grammars/tree-sitter-elm"] - path = "grammars/tree-sitter-elm" - url = "git@github.com:elm-tooling/tree-sitter-elm.git" - -[submodule "grammars/tree-sitter-erlang"] - path = "grammars/tree-sitter-erlang" - url = "git@github.com:WhatsApp/tree-sitter-erlang.git" - -[submodule "grammars/tree-sitter-f-sharp"] - path = "grammars/tree-sitter-f-sharp" - url = "git@github.com:ionide/tree-sitter-fsharp.git" - -[submodule "grammars/tree-sitter-fish"] - path = "grammars/tree-sitter-fish" - url = "git@github.com:ram02z/tree-sitter-fish.git" - -[submodule "grammars/tree-sitter-fluent"] - path = "grammars/tree-sitter-fluent" - url = "git@github.com:tree-sitter/tree-sitter-fluent.git" - -[submodule "grammars/tree-sitter-forth"] - path = "grammars/tree-sitter-forth" - url = "git@github.com:AlexanderBrevig/tree-sitter-forth.git" - -[submodule "grammars/tree-sitter-fortran"] - path = "grammars/tree-sitter-fortran" - url = "git@github.com:stadelmanma/tree-sitter-fortran.git" - -[submodule "grammars/tree-sitter-git-commit"] - path = "grammars/tree-sitter-git-commit" - url = "git@github.com:the-mikedavis/tree-sitter-git-commit.git" - -[submodule "grammars/tree-sitter-git-config"] - path = "grammars/tree-sitter-git-config" - url = "git@github.com:the-mikedavis/tree-sitter-git-config.git" - -[submodule "grammars/tree-sitter-git-rebase"] - path = "grammars/tree-sitter-git-rebase" - url = "git@github.com:the-mikedavis/tree-sitter-git-rebase.git" - -[submodule "grammars/tree-sitter-gitattributes"] - path = "grammars/tree-sitter-gitattributes" - url = "git@github.com:mtoohey31/tree-sitter-gitattributes.git" - -[submodule "grammars/tree-sitter-gleam"] - path = "grammars/tree-sitter-gleam" - url = "git@github.com:gleam-lang/tree-sitter-gleam.git" - -[submodule "grammars/tree-sitter-glimmer"] - path = "grammars/tree-sitter-glimmer" - url = "git@github.com:ember-tooling/tree-sitter-glimmer.git" - -[submodule "grammars/tree-sitter-glsl"] - path = "grammars/tree-sitter-glsl" - url = "git@github.com:tree-sitter-grammars/tree-sitter-glsl.git" - -[submodule "grammars/tree-sitter-gn"] - path = "grammars/tree-sitter-gn" - url = "git@github.com:willcassella/tree-sitter-gn.git" - -[submodule "grammars/tree-sitter-go"] - path = "grammars/tree-sitter-go" - url = "git@github.com:tree-sitter/tree-sitter-go.git" - -[submodule "grammars/tree-sitter-go-mod"] - path = "grammars/tree-sitter-go-mod" - url = "git@github.com:camdencheek/tree-sitter-go-mod.git" - -[submodule "grammars/tree-sitter-go-template"] - path = "grammars/tree-sitter-go-template" - url = "git@github.com:ngalaiko/tree-sitter-go-template.git" - -[submodule "grammars/tree-sitter-go-work"] - path = "grammars/tree-sitter-go-work" - url = "git@github.com:omertuc/tree-sitter-go-work.git" - -[submodule "grammars/tree-sitter-graphql"] - path = "grammars/tree-sitter-graphql" - url = "git@github.com:bkegley/tree-sitter-graphql.git" - -[submodule "grammars/tree-sitter-groovy"] - path = "grammars/tree-sitter-groovy" - url = "git@github.com:murtaza64/tree-sitter-groovy.git" - -[submodule "grammars/tree-sitter-haskell"] - path = "grammars/tree-sitter-haskell" - url = "git@github.com:tree-sitter/tree-sitter-haskell.git" - -[submodule "grammars/tree-sitter-haxe"] - path = "grammars/tree-sitter-haxe" - url = "git@github.com:vantreeseba/tree-sitter-haxe.git" - -[submodule "grammars/tree-sitter-hcl"] - path = "grammars/tree-sitter-hcl" - url = "git@github.com:tree-sitter-grammars/tree-sitter-hcl.git" - -[submodule "grammars/tree-sitter-hosts"] - path = "grammars/tree-sitter-hosts" - url = "git@github.com:ath3/tree-sitter-hosts.git" - -[submodule "grammars/tree-sitter-html"] - path = "grammars/tree-sitter-html" - url = "git@github.com:tree-sitter/tree-sitter-html.git" - -[submodule "grammars/tree-sitter-ini"] - path = "grammars/tree-sitter-ini" - url = "git@github.com:justinmk/tree-sitter-ini.git" - -[submodule "grammars/tree-sitter-java"] - path = "grammars/tree-sitter-java" - url = "git@github.com:tree-sitter/tree-sitter-java.git" - -[submodule "grammars/tree-sitter-javascript"] - path = "grammars/tree-sitter-javascript" - url = "git@github.com:tree-sitter/tree-sitter-javascript.git" - -[submodule "grammars/tree-sitter-jsdoc"] - path = "grammars/tree-sitter-jsdoc" - url = "git@github.com:tree-sitter/tree-sitter-jsdoc.git" - -[submodule "grammars/tree-sitter-json"] - path = "grammars/tree-sitter-json" - url = "git@github.com:tree-sitter/tree-sitter-json.git" - -[submodule "grammars/tree-sitter-json5"] - path = "grammars/tree-sitter-json5" - url = "git@github.com:Joakker/tree-sitter-json5.git" - -[submodule "grammars/tree-sitter-jsonnet"] - path = "grammars/tree-sitter-jsonnet" - url = "git@github.com:sourcegraph/tree-sitter-jsonnet.git" - -[submodule "grammars/tree-sitter-julia"] - path = "grammars/tree-sitter-julia" - url = "git@github.com:tree-sitter/tree-sitter-julia.git" - -[submodule "grammars/tree-sitter-just"] - path = "grammars/tree-sitter-just" - url = "git@github.com:IndianBoy42/tree-sitter-just.git" - -[submodule "grammars/tree-sitter-kdl"] - path = "grammars/tree-sitter-kdl" - url = "git@github.com:tree-sitter-grammars/tree-sitter-kdl.git" - -[submodule "grammars/tree-sitter-kotlin"] - path = "grammars/tree-sitter-kotlin" - url = "git@github.com:fwcd/tree-sitter-kotlin.git" - -[submodule "grammars/tree-sitter-latex"] - path = "grammars/tree-sitter-latex" - url = "git@github.com:latex-lsp/tree-sitter-latex.git" - -[submodule "grammars/tree-sitter-ld"] - path = "grammars/tree-sitter-ld" - url = "git@github.com:mtoohey31/tree-sitter-ld.git" - -[submodule "grammars/tree-sitter-llvm"] - path = "grammars/tree-sitter-llvm" - url = "git@github.com:benwilliamgraham/tree-sitter-llvm.git" - -[submodule "grammars/tree-sitter-llvm-mir"] - path = "grammars/tree-sitter-llvm-mir" - url = "git@github.com:Flakebi/tree-sitter-llvm-mir.git" - -[submodule "grammars/tree-sitter-log"] - path = "grammars/tree-sitter-log" - url = "git@github.com:Tudyx/tree-sitter-log.git" - -[submodule "grammars/tree-sitter-lua"] - path = "grammars/tree-sitter-lua" - url = "git@github.com:tree-sitter-grammars/tree-sitter-lua.git" - -[submodule "grammars/tree-sitter-make"] - path = "grammars/tree-sitter-make" - url = "git@github.com:alemuller/tree-sitter-make.git" - -[submodule "grammars/tree-sitter-markdown"] - path = "grammars/tree-sitter-markdown" - url = "git@github.com:tree-sitter-grammars/tree-sitter-markdown.git" - -[submodule "grammars/tree-sitter-meson"] - path = "grammars/tree-sitter-meson" - url = "git@github.com:staysail/tree-sitter-meson.git" - -[submodule "grammars/tree-sitter-nasm"] - path = "grammars/tree-sitter-nasm" - url = "git@github.com:naclsn/tree-sitter-nasm.git" - -[submodule "grammars/tree-sitter-nix"] - path = "grammars/tree-sitter-nix" - url = "git@github.com:nix-community/tree-sitter-nix.git" - -[submodule "grammars/tree-sitter-nu"] - path = "grammars/tree-sitter-nu" - url = "git@github.com:nushell/tree-sitter-nu.git" - -[submodule "grammars/tree-sitter-ocaml"] - path = "grammars/tree-sitter-ocaml" - url = "git@github.com:tree-sitter/tree-sitter-ocaml.git" - -[submodule "grammars/tree-sitter-odin"] - path = "grammars/tree-sitter-odin" - url = "git@github.com:ap29600/tree-sitter-odin.git" - -[submodule "grammars/tree-sitter-opencl"] - path = "grammars/tree-sitter-opencl" - url = "git@github.com:lefp/tree-sitter-opencl.git" - -[submodule "grammars/tree-sitter-pascal"] - path = "grammars/tree-sitter-pascal" - url = "git@github.com:Isopod/tree-sitter-pascal.git" - -[submodule "grammars/tree-sitter-passwd"] - path = "grammars/tree-sitter-passwd" - url = "git@github.com:ath3/tree-sitter-passwd.git" - -[submodule "grammars/tree-sitter-pem"] - path = "grammars/tree-sitter-pem" - url = "git@github.com:mtoohey31/tree-sitter-pem.git" - -[submodule "grammars/tree-sitter-php"] - path = "grammars/tree-sitter-php" - url = "git@github.com:tree-sitter/tree-sitter-php.git" - -[submodule "grammars/tree-sitter-pkl"] - path = "grammars/tree-sitter-pkl" - url = "git@github.com:apple/tree-sitter-pkl.git" - -[submodule "grammars/tree-sitter-powershell"] - path = "grammars/tree-sitter-powershell" - url = "git@github.com:airbus-cert/tree-sitter-powershell.git" - -[submodule "grammars/tree-sitter-prisma"] - path = "grammars/tree-sitter-prisma" - url = "git@github.com:victorhqc/tree-sitter-prisma.git" - -[submodule "grammars/tree-sitter-protobuf"] - path = "grammars/tree-sitter-protobuf" - url = "git@github.com:yusdacra/tree-sitter-protobuf.git" - -[submodule "grammars/tree-sitter-python"] - path = "grammars/tree-sitter-python" - url = "git@github.com:tree-sitter/tree-sitter-python.git" - -[submodule "grammars/tree-sitter-ql"] - path = "grammars/tree-sitter-ql" - url = "git@github.com:tree-sitter/tree-sitter-ql.git" - -[submodule "grammars/tree-sitter-r"] - path = "grammars/tree-sitter-r" - url = "git@github.com:r-lib/tree-sitter-r.git" - -[submodule "grammars/tree-sitter-rcl"] - path = "grammars/tree-sitter-rcl" - url = "git@github.com:ruuda/rcl.git" - -[submodule "grammars/tree-sitter-regex"] - path = "grammars/tree-sitter-regex" - url = "git@github.com:tree-sitter/tree-sitter-regex.git" - -[submodule "grammars/tree-sitter-rego"] - path = "grammars/tree-sitter-rego" - url = "git@github.com:FallenAngel97/tree-sitter-rego.git" - -[submodule "grammars/tree-sitter-ron"] - path = "grammars/tree-sitter-ron" - url = "git@github.com:zee-editor/tree-sitter-ron.git" - url = "git@github.com:panekj/tree-sitter-ron.git" - -[submodule "grammars/tree-sitter-rst"] - path = "grammars/tree-sitter-rst" - url = "git@github.com:stsewd/tree-sitter-rst.git" - -[submodule "grammars/tree-sitter-ruby"] - path = "grammars/tree-sitter-ruby" - url = "git@github.com:tree-sitter/tree-sitter-ruby.git" - -[submodule "grammars/tree-sitter-rust"] - path = "grammars/tree-sitter-rust" - url = "git@github.com:tree-sitter/tree-sitter-rust.git" - -[submodule "grammars/tree-sitter-scala"] - path = "grammars/tree-sitter-scala" - url = "git@github.com:tree-sitter/tree-sitter-scala.git" - -[submodule "grammars/tree-sitter-scheme"] - path = "grammars/tree-sitter-scheme" - url = "git@github.com:6cdh/tree-sitter-scheme.git" - -[submodule "grammars/tree-sitter-scss"] - path = "grammars/tree-sitter-scss" - url = "git@github.com:serenadeai/tree-sitter-scss.git" - -[submodule "grammars/tree-sitter-slint"] - path = "grammars/tree-sitter-slint" - url = "git@github.com:slint-ui/tree-sitter-slint.git" - -[submodule "grammars/tree-sitter-smithy"] - path = "grammars/tree-sitter-smithy" - url = "git@github.com:indoorvivants/tree-sitter-smithy.git" - -[submodule "grammars/tree-sitter-sql"] - path = "grammars/tree-sitter-sql" - url = "git@github.com:DerekStride/tree-sitter-sql.git" - -[submodule "grammars/tree-sitter-ssh-client-config"] - path = "grammars/tree-sitter-ssh-client-config" - url = "git@github.com:metio/tree-sitter-ssh-client-config.git" - -[submodule "grammars/tree-sitter-strace"] - path = "grammars/tree-sitter-strace" - url = "git@github.com:sigmaSd/tree-sitter-strace.git" - -[submodule "grammars/tree-sitter-svelte"] - path = "grammars/tree-sitter-svelte" - url = "git@github.com:Himujjal/tree-sitter-svelte.git" - -[submodule "grammars/tree-sitter-sway"] - path = "grammars/tree-sitter-sway" - url = "git@github.com:FuelLabs/tree-sitter-sway.git" - url = "git@github.com:panekj/tree-sitter-sway.git" - -[submodule "grammars/tree-sitter-swift"] - path = "grammars/tree-sitter-swift" - url = "git@github.com:alex-pinkus/tree-sitter-swift.git" - url = "git@github.com:panekj/tree-sitter-swift.git" - -[submodule "grammars/tree-sitter-tcl"] - path = "grammars/tree-sitter-tcl" - url = "git@github.com:tree-sitter-grammars/tree-sitter-tcl.git" - -[submodule "grammars/tree-sitter-toml"] - path = "grammars/tree-sitter-toml" - url = "git@github.com:Mathspy/tree-sitter-toml.git" - -[submodule "grammars/tree-sitter-typescript"] - path = "grammars/tree-sitter-typescript" - url = "git@github.com:tree-sitter/tree-sitter-typescript.git" - -[submodule "grammars/tree-sitter-typst"] - path = "grammars/tree-sitter-typst" - url = "git@github.com:uben0/tree-sitter-typst.git" - -[submodule "grammars/tree-sitter-vala"] - path = "grammars/tree-sitter-vala" - url = "git@github.com:vala-lang/tree-sitter-vala.git" - -[submodule "grammars/tree-sitter-verilog"] - path = "grammars/tree-sitter-verilog" - url = "git@github.com:tree-sitter/tree-sitter-verilog.git" - -[submodule "grammars/tree-sitter-vue"] - path = "grammars/tree-sitter-vue" - url = "git@github.com:xiaoxin-sky/tree-sitter-vue.git" - url = "git@github.com:tree-sitter-grammars/tree-sitter-vue.git" - -[submodule "grammars/tree-sitter-wasm"] - path = "grammars/tree-sitter-wasm" - url = "git@github.com:wasm-lsp/tree-sitter-wasm.git" - url = "git@github.com:panekj/tree-sitter-wasm.git" - -[submodule "grammars/tree-sitter-wgsl"] - path = "grammars/tree-sitter-wgsl" - url = "git@github.com:szebniok/tree-sitter-wgsl.git" - -[submodule "grammars/tree-sitter-wit"] - path = "grammars/tree-sitter-wit" - url = "git@github.com:hh9527/tree-sitter-wit.git" - -[submodule "grammars/tree-sitter-xml"] - path = "grammars/tree-sitter-xml" - url = "git@github.com:dorgnarg/tree-sitter-xml.git" - url = "git@github.com:RenjiSann/tree-sitter-xml.git" - -[submodule "grammars/tree-sitter-yaml"] - path = "grammars/tree-sitter-yaml" - url = "git@github.com:tree-sitter-grammars/tree-sitter-yaml.git" - -[submodule "grammars/tree-sitter-zig"] - path = "grammars/tree-sitter-zig" - url = "git@github.com:maxxnino/tree-sitter-zig.git" - -[submodule "queries-helix"] - path = "queries-helix" - url = "https://github.com/helix-editor/helix.git" diff --git a/Cargo.lock b/Cargo.lock index 040f7a2..b855391 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,12 @@ # It is not intended for manual editing. version = 3 +[[package]] +name = "anstyle" +version = "1.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bec1de6f59aedf83baf9ff929c98f2ad654b97c9510f4e70cf6f661d49fd5b1" + [[package]] name = "anyhow" version = "1.0.86" @@ -9,22 +15,83 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" [[package]] -name = "bitflags" -version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1" +name = "build-tree-sitter" +version = "0.1.0" +dependencies = [ + "anyhow", + "cc", + "clap", + "dunce", + "itertools", + "serde", + "toml", + "tracing", + "tracing-subscriber", + "walkdir", +] [[package]] name = "cc" -version = "1.0.98" +version = "1.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26a5c3fd7bfa1ce3897a3a3501d362b2d87b7f2583ebcb4a949ec25911025cbc" + +[[package]] +name = "cfg-if" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" + +[[package]] +name = "clap" +version = "4.5.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41c270e7540d725e65ac7f1b212ac8ce349719624d7bcff99f8e2e488e8cf03f" +checksum = "0fbb260a053428790f3de475e304ff84cdbc4face759ea7a3e64c1edd938a7fc" dependencies = [ - "jobserver", - "libc", - "once_cell", + "clap_builder", + "clap_derive", ] +[[package]] +name = "clap_builder" +version = "4.5.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64b17d7ea74e9f833c7dbf2cbe4fb12ff26783eda4782a8975b72f895c9b4d99" +dependencies = [ + "anstyle", + "clap_lex", +] + +[[package]] +name = "clap_derive" +version = "4.5.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "501d359d5f3dcaf6ecdeee48833ae73ec6e42723a1e52419c79abf9507eec0a0" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "clap_lex" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97" + +[[package]] +name = "dunce" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56ce8c6da7551ec6c462cbaf3bfbc75131ebbfa1c944aeaa9dab51ca1c5f0c3b" + +[[package]] +name = "either" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" + [[package]] name = "equivalent" version = "1.0.1" @@ -32,205 +99,364 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] -name = "form_urlencoded" -version = "1.2.1" +name = "hashbrown" +version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "indexmap" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de3fc2e30ba82dd1b3911c8de1ffc143c74a914a14e99514d7637e3099df5ea0" dependencies = [ - "percent-encoding", + "equivalent", + "hashbrown", ] [[package]] -name = "git2" -version = "0.18.3" +name = "itertools" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "232e6a7bfe35766bf715e55a88b39a700596c0ccfd88cd3680b4cdb40d66ef70" +checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" dependencies = [ - "bitflags", - "libc", - "libgit2-sys", - "log", - "openssl-probe", - "openssl-sys", - "url", + "either", ] [[package]] -name = "hashbrown" -version = "0.14.5" +name = "lazy_static" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" + +[[package]] +name = "memchr" +version = "2.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" [[package]] -name = "helper" -version = "0.0.0" +name = "nu-ansi-term" +version = "0.46.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84" dependencies = [ - "anyhow", - "git2", - "indexmap", - "url", + "overload", + "winapi", ] [[package]] -name = "idna" -version = "0.5.0" +name = "once_cell" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" + +[[package]] +name = "overload" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" + +[[package]] +name = "pin-project-lite" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" +checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" + +[[package]] +name = "proc-macro2" +version = "1.0.86" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" dependencies = [ - "unicode-bidi", - "unicode-normalization", + "unicode-ident", ] [[package]] -name = "indexmap" -version = "2.2.6" +name = "quote" +version = "1.0.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" +checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" dependencies = [ - "equivalent", - "hashbrown", + "proc-macro2", +] + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", ] [[package]] -name = "jobserver" -version = "0.1.31" +name = "serde" +version = "1.0.204" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2b099aaa34a9751c5bf0878add70444e1ed2dd73f347be99003d4577277de6e" +checksum = "bc76f558e0cbb2a839d37354c575f1dc3fdc6546b5be373ba43d95f231bf7c12" dependencies = [ - "libc", + "serde_derive", ] [[package]] -name = "libc" -version = "0.2.155" +name = "serde_derive" +version = "1.0.204" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" +checksum = "e0cd7e117be63d3c3678776753929474f3b04a43a080c744d6b0ae2a8c28e222" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] [[package]] -name = "libgit2-sys" -version = "0.16.2+1.7.2" +name = "serde_spanned" +version = "0.6.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee4126d8b4ee5c9d9ea891dd875cfdc1e9d0950437179104b183d7d8a74d24e8" +checksum = "eb5b1b31579f3811bf615c144393417496f152e12ac8b7663bf664f4a815306d" dependencies = [ - "cc", - "libc", - "libssh2-sys", - "libz-sys", - "openssl-sys", - "pkg-config", + "serde", ] [[package]] -name = "libssh2-sys" -version = "0.3.0" +name = "sharded-slab" +version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dc8a030b787e2119a731f1951d6a773e2280c660f8ec4b0f5e1505a386e71ee" +checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" dependencies = [ - "cc", - "libc", - "libz-sys", - "openssl-sys", - "pkg-config", - "vcpkg", + "lazy_static", ] [[package]] -name = "libz-sys" -version = "1.1.18" +name = "syn" +version = "2.0.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c15da26e5af7e25c90b37a2d75cdbf940cf4a55316de9d84c679c9b8bfabf82e" +checksum = "dc4b9b9bf2add8093d3f2c0204471e951b2285580335de42f9d2534f3ae7a8af" dependencies = [ - "cc", - "libc", - "pkg-config", - "vcpkg", + "proc-macro2", + "quote", + "unicode-ident", ] [[package]] -name = "log" -version = "0.4.21" +name = "thread_local" +version = "1.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" +checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c" +dependencies = [ + "cfg-if", + "once_cell", +] [[package]] -name = "once_cell" -version = "1.19.0" +name = "toml" +version = "0.8.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" +checksum = "a1ed1f98e3fdc28d6d910e6737ae6ab1a93bf1985935a1193e68f93eeb68d24e" +dependencies = [ + "serde", + "serde_spanned", + "toml_datetime", + "toml_edit", +] [[package]] -name = "openssl-probe" -version = "0.1.5" +name = "toml_datetime" +version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" +checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41" +dependencies = [ + "serde", +] [[package]] -name = "openssl-sys" -version = "0.9.102" +name = "toml_edit" +version = "0.22.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c597637d56fbc83893a35eb0dd04b2b8e7a50c91e64e9493e398b5df4fb45fa2" +checksum = "583c44c02ad26b0c3f3066fe629275e50627026c51ac2e595cca4c230ce1ce1d" dependencies = [ - "cc", - "libc", - "pkg-config", - "vcpkg", + "indexmap", + "serde", + "serde_spanned", + "toml_datetime", + "winnow", ] [[package]] -name = "percent-encoding" -version = "2.3.1" +name = "tracing" +version = "0.1.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" +checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" +dependencies = [ + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] [[package]] -name = "pkg-config" -version = "0.3.30" +name = "tracing-attributes" +version = "0.1.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" +checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] [[package]] -name = "tinyvec" -version = "1.6.0" +name = "tracing-core" +version = "0.1.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" +checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" dependencies = [ - "tinyvec_macros", + "once_cell", ] [[package]] -name = "tinyvec_macros" -version = "0.1.1" +name = "tracing-subscriber" +version = "0.3.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" +checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b" +dependencies = [ + "nu-ansi-term", + "sharded-slab", + "thread_local", + "tracing-core", +] [[package]] -name = "unicode-bidi" -version = "0.3.15" +name = "unicode-ident" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" +checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" [[package]] -name = "unicode-normalization" -version = "0.1.23" +name = "walkdir" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" dependencies = [ - "tinyvec", + "same-file", + "winapi-util", ] [[package]] -name = "url" -version = "2.5.0" +name = "winapi" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31e6302e3bb753d46e83516cae55ae196fc0c309407cf11ab35cc51a4c2a4633" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" dependencies = [ - "form_urlencoded", - "idna", - "percent-encoding", + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", ] [[package]] -name = "vcpkg" -version = "0.2.15" +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-util" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" +dependencies = [ + "windows-sys", +] + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_gnullvm", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "winnow" +version = "0.6.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68a9bda4691f099d435ad181000724da8e5899daa10713c2d432552b9ccd3a6f" +dependencies = [ + "memchr", +] diff --git a/Cargo.toml b/Cargo.toml index 2eca242..73192cb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,17 +1,18 @@ -[workspace] -resolver = "2" -members = ["helper"] +[package] +name = "build-tree-sitter" +version = "0.1.0" +edition = "2021" -[workspace.package] -authors = ["panekj"] -license = "Apache-2.0" -edition = "2021" -description = "Helper program to manage tree-sitter grammars submodules" +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html -[workspace.metadata] - -[workspace.dependencies] -anyhow = { version = "1.0" } -git2 = { version = "0.18.3" } -indexmap = { version = "2.2.6" } -url = { version = "2.5.0" } +[dependencies] +anyhow = { version = "1.0" } +cc = { version = "1.0" } +clap = { version = "4.5.1", features = [ "derive", "std", "help" ], default-features = false } +dunce = { version = "1.0.4" } +itertools = "0.12.1" +serde = { version = "1.0.197", features = ["derive"] } +toml = { version = "0.8.12" } +tracing = { version = "0.1.40" } +tracing-subscriber = { version = "0.3.18", default-features = false, features = ["ansi", "fmt"] } +walkdir = { version = "2.5.0" } \ No newline at end of file diff --git a/Justfile b/Justfile deleted file mode 100644 index c478971..0000000 --- a/Justfile +++ /dev/null @@ -1,17 +0,0 @@ -default: build - -# print formatted .gitmodules -print: - cargo run -- print - -# update submodules -update: - cargo run -- update - -# build all grammars -build: - python ./make.py - -# install tree-sitter-cli -tree-sitter: - cargo install tree-sitter-cli@^0.22 --locked diff --git a/Makefile b/Makefile deleted file mode 100644 index 29bbd26..0000000 --- a/Makefile +++ /dev/null @@ -1,12 +0,0 @@ -any: build - -help: ## Print this help message - @grep -E '^[a-zA-Z._-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' - -build: - python ./make.py - -tree-sitter: ## install tree-sitter-cli - cargo install tree-sitter-cli@^0.22 --locked - -.PHONY: any help build diff --git a/grammars/tree-sitter-ada b/grammars/tree-sitter-ada deleted file mode 160000 index e8e2515..0000000 --- a/grammars/tree-sitter-ada +++ /dev/null @@ -1 +0,0 @@ -Subproject commit e8e2515465cc2d7c444498e68bdb9f1d86767f95 diff --git a/grammars/tree-sitter-adl b/grammars/tree-sitter-adl deleted file mode 160000 index 2787d04..0000000 --- a/grammars/tree-sitter-adl +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 2787d04beadfbe154d3f2da6e98dc45a1b134bbf diff --git a/grammars/tree-sitter-agda b/grammars/tree-sitter-agda deleted file mode 160000 index d3dc807..0000000 --- a/grammars/tree-sitter-agda +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d3dc807692e6bca671d4491b3bf5c67eeca8c016 diff --git a/grammars/tree-sitter-angular b/grammars/tree-sitter-angular deleted file mode 160000 index 31182d4..0000000 --- a/grammars/tree-sitter-angular +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 31182d43b062a350d4bd2449f2fc0d5654972be9 diff --git a/grammars/tree-sitter-astro b/grammars/tree-sitter-astro deleted file mode 160000 index 4be1807..0000000 --- a/grammars/tree-sitter-astro +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 4be180759ec13651f72bacee65fa477c64222a1a diff --git a/grammars/tree-sitter-bash b/grammars/tree-sitter-bash deleted file mode 160000 index 2fbd860..0000000 --- a/grammars/tree-sitter-bash +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 2fbd860f802802ca76a6661ce025b3a3bca2d3ed diff --git a/grammars/tree-sitter-bass b/grammars/tree-sitter-bass deleted file mode 160000 index 28dc705..0000000 --- a/grammars/tree-sitter-bass +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 28dc7059722be090d04cd751aed915b2fee2f89a diff --git a/grammars/tree-sitter-beancount b/grammars/tree-sitter-beancount deleted file mode 160000 index 384c55e..0000000 --- a/grammars/tree-sitter-beancount +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 384c55ede2a1f13e83d8e18dbef8f11304c379c2 diff --git a/grammars/tree-sitter-bibtex b/grammars/tree-sitter-bibtex deleted file mode 160000 index ccfd77d..0000000 --- a/grammars/tree-sitter-bibtex +++ /dev/null @@ -1 +0,0 @@ -Subproject commit ccfd77db0ed799b6c22c214fe9d2937f47bc8b34 diff --git a/grammars/tree-sitter-bitbake b/grammars/tree-sitter-bitbake deleted file mode 160000 index a5d04fd..0000000 --- a/grammars/tree-sitter-bitbake +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a5d04fdb5a69a02b8fa8eb5525a60dfb5309b73b diff --git a/grammars/tree-sitter-blade b/grammars/tree-sitter-blade deleted file mode 160000 index dead019..0000000 --- a/grammars/tree-sitter-blade +++ /dev/null @@ -1 +0,0 @@ -Subproject commit dead019eeabe612da7fb325caf72fdc7c744d19a diff --git a/grammars/tree-sitter-c b/grammars/tree-sitter-c deleted file mode 160000 index be23d2c..0000000 --- a/grammars/tree-sitter-c +++ /dev/null @@ -1 +0,0 @@ -Subproject commit be23d2c9d8e5b550e713ef0f86126a248462ca6e diff --git a/grammars/tree-sitter-c-sharp b/grammars/tree-sitter-c-sharp deleted file mode 160000 index 8d88b61..0000000 --- a/grammars/tree-sitter-c-sharp +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 8d88b61d733ee7549799dad1b52cf5cd78077aa1 diff --git a/grammars/tree-sitter-clojure b/grammars/tree-sitter-clojure deleted file mode 160000 index f4236d4..0000000 --- a/grammars/tree-sitter-clojure +++ /dev/null @@ -1 +0,0 @@ -Subproject commit f4236d4da8aa92bc105d9c118746474c608e6af7 diff --git a/grammars/tree-sitter-cmake b/grammars/tree-sitter-cmake deleted file mode 160000 index 69d7a8b..0000000 --- a/grammars/tree-sitter-cmake +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 69d7a8b0f7493b0dbb07d54e8fea96c5421e8a71 diff --git a/grammars/tree-sitter-comment b/grammars/tree-sitter-comment deleted file mode 160000 index 5d8b29f..0000000 --- a/grammars/tree-sitter-comment +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 5d8b29f6ef3bf64d59430dcfe76b31cc44b5abfd diff --git a/grammars/tree-sitter-cpp b/grammars/tree-sitter-cpp deleted file mode 160000 index 0b4aa47..0000000 --- a/grammars/tree-sitter-cpp +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0b4aa47f07d958a49260aadc87e8474b03897c23 diff --git a/grammars/tree-sitter-css b/grammars/tree-sitter-css deleted file mode 160000 index f6be52c..0000000 --- a/grammars/tree-sitter-css +++ /dev/null @@ -1 +0,0 @@ -Subproject commit f6be52c3d1cdb1c5e4dd7d8bce0a57497f55d6af diff --git a/grammars/tree-sitter-cue b/grammars/tree-sitter-cue deleted file mode 160000 index 8a5f273..0000000 --- a/grammars/tree-sitter-cue +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 8a5f273bfa281c66354da562f2307c2d394b6c81 diff --git a/grammars/tree-sitter-d b/grammars/tree-sitter-d deleted file mode 160000 index 750dde9..0000000 --- a/grammars/tree-sitter-d +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 750dde90ed9cdbd82493bc28478d8ab1976b0e9f diff --git a/grammars/tree-sitter-dart b/grammars/tree-sitter-dart deleted file mode 160000 index ac0bb84..0000000 --- a/grammars/tree-sitter-dart +++ /dev/null @@ -1 +0,0 @@ -Subproject commit ac0bb849ccd1a923963af47573b5e396736ff582 diff --git a/grammars/tree-sitter-dhall b/grammars/tree-sitter-dhall deleted file mode 160000 index affb6ee..0000000 --- a/grammars/tree-sitter-dhall +++ /dev/null @@ -1 +0,0 @@ -Subproject commit affb6ee38d629c9296749767ab832d69bb0d9ea8 diff --git a/grammars/tree-sitter-diff b/grammars/tree-sitter-diff deleted file mode 160000 index 19dd5aa..0000000 --- a/grammars/tree-sitter-diff +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 19dd5aa52fe339a1d974768a09ee2537303e8ca5 diff --git a/grammars/tree-sitter-dockerfile b/grammars/tree-sitter-dockerfile deleted file mode 160000 index 087daa2..0000000 --- a/grammars/tree-sitter-dockerfile +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 087daa20438a6cc01fa5e6fe6906d77c869d19fe diff --git a/grammars/tree-sitter-dot b/grammars/tree-sitter-dot deleted file mode 160000 index 9ab8555..0000000 --- a/grammars/tree-sitter-dot +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 9ab85550c896d8b294d9b9ca1e30698736f08cea diff --git a/grammars/tree-sitter-elixir b/grammars/tree-sitter-elixir deleted file mode 160000 index c7ae8b7..0000000 --- a/grammars/tree-sitter-elixir +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c7ae8b77e2749826dcf23df6514f08fdd68c66a3 diff --git a/grammars/tree-sitter-elm b/grammars/tree-sitter-elm deleted file mode 160000 index 09dbf22..0000000 --- a/grammars/tree-sitter-elm +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 09dbf221d7491dc8d8839616b27c21b9c025c457 diff --git a/grammars/tree-sitter-erlang b/grammars/tree-sitter-erlang deleted file mode 160000 index 19ca500..0000000 --- a/grammars/tree-sitter-erlang +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 19ca500fa5a17ab58dc18aa03b50e2db305e7a8a diff --git a/grammars/tree-sitter-f-sharp b/grammars/tree-sitter-f-sharp deleted file mode 160000 index 53afb0c..0000000 --- a/grammars/tree-sitter-f-sharp +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 53afb0c135716e9c503ffd4bbd7c6a8d16032ec9 diff --git a/grammars/tree-sitter-fish b/grammars/tree-sitter-fish deleted file mode 160000 index a78aef9..0000000 --- a/grammars/tree-sitter-fish +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a78aef9abc395c600c38a037ac779afc7e3cc9e0 diff --git a/grammars/tree-sitter-fluent b/grammars/tree-sitter-fluent deleted file mode 160000 index 858fdd6..0000000 --- a/grammars/tree-sitter-fluent +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 858fdd6f1e81992e00d3541bfb31bac9365d7a47 diff --git a/grammars/tree-sitter-forth b/grammars/tree-sitter-forth deleted file mode 160000 index 9018923..0000000 --- a/grammars/tree-sitter-forth +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 90189238385cf636b9ee99ce548b9e5b5e569d48 diff --git a/grammars/tree-sitter-fortran b/grammars/tree-sitter-fortran deleted file mode 160000 index 6b63343..0000000 --- a/grammars/tree-sitter-fortran +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 6b633433fb3f132f21250cf8e8be76d5a6389b7e diff --git a/grammars/tree-sitter-git-commit b/grammars/tree-sitter-git-commit deleted file mode 160000 index 6f193a6..0000000 --- a/grammars/tree-sitter-git-commit +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 6f193a66e9aa872760823dff020960c6cedc37b3 diff --git a/grammars/tree-sitter-git-config b/grammars/tree-sitter-git-config deleted file mode 160000 index 9c2a1b7..0000000 --- a/grammars/tree-sitter-git-config +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 9c2a1b7894e6d9eedfe99805b829b4ecd871375e diff --git a/grammars/tree-sitter-git-rebase b/grammars/tree-sitter-git-rebase deleted file mode 160000 index 274e27e..0000000 --- a/grammars/tree-sitter-git-rebase +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 274e27ea0f09371122ab55b8a812a32d6ef644e8 diff --git a/grammars/tree-sitter-gitattributes b/grammars/tree-sitter-gitattributes deleted file mode 160000 index deb04fd..0000000 --- a/grammars/tree-sitter-gitattributes +++ /dev/null @@ -1 +0,0 @@ -Subproject commit deb04fdbff485310ee5bac74ddc6ab624a602b7b diff --git a/grammars/tree-sitter-gleam b/grammars/tree-sitter-gleam deleted file mode 160000 index 84fa6b0..0000000 --- a/grammars/tree-sitter-gleam +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 84fa6b0d53b6dd9414797e659923719799e3b0a8 diff --git a/grammars/tree-sitter-glimmer b/grammars/tree-sitter-glimmer deleted file mode 160000 index 6b25d26..0000000 --- a/grammars/tree-sitter-glimmer +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 6b25d265c990139353e1f7f97baf84987ebb7bf0 diff --git a/grammars/tree-sitter-glsl b/grammars/tree-sitter-glsl deleted file mode 160000 index ddc3137..0000000 --- a/grammars/tree-sitter-glsl +++ /dev/null @@ -1 +0,0 @@ -Subproject commit ddc3137a2d775aca93084ff997fa13cc1691058a diff --git a/grammars/tree-sitter-gn b/grammars/tree-sitter-gn deleted file mode 160000 index fbaa7b3..0000000 --- a/grammars/tree-sitter-gn +++ /dev/null @@ -1 +0,0 @@ -Subproject commit fbaa7b3d52b958e3ac06e15416e1785138bde063 diff --git a/grammars/tree-sitter-go b/grammars/tree-sitter-go deleted file mode 160000 index 7ee8d92..0000000 --- a/grammars/tree-sitter-go +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 7ee8d928db5202f6831a78f8112fd693bf69f98b diff --git a/grammars/tree-sitter-go-mod b/grammars/tree-sitter-go-mod deleted file mode 160000 index bbe2fe3..0000000 --- a/grammars/tree-sitter-go-mod +++ /dev/null @@ -1 +0,0 @@ -Subproject commit bbe2fe3be4b87e06a613e685250f473d2267f430 diff --git a/grammars/tree-sitter-go-template b/grammars/tree-sitter-go-template deleted file mode 160000 index 9d3f6e5..0000000 --- a/grammars/tree-sitter-go-template +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 9d3f6e526dd074b9edae9070b7bb778f00e87a5b diff --git a/grammars/tree-sitter-go-work b/grammars/tree-sitter-go-work deleted file mode 160000 index 949a8a4..0000000 --- a/grammars/tree-sitter-go-work +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 949a8a470559543857a62102c84700d291fc984c diff --git a/grammars/tree-sitter-graphql b/grammars/tree-sitter-graphql deleted file mode 160000 index 5e66e96..0000000 --- a/grammars/tree-sitter-graphql +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 5e66e961eee421786bdda8495ed1db045e06b5fe diff --git a/grammars/tree-sitter-groovy b/grammars/tree-sitter-groovy deleted file mode 160000 index f361500..0000000 --- a/grammars/tree-sitter-groovy +++ /dev/null @@ -1 +0,0 @@ -Subproject commit f3615006429251a966d7452bd46a0171364bcb7b diff --git a/grammars/tree-sitter-haskell b/grammars/tree-sitter-haskell deleted file mode 160000 index a4d4e60..0000000 --- a/grammars/tree-sitter-haskell +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a4d4e60d46fff56b61e60305c1e5096ff884c789 diff --git a/grammars/tree-sitter-haxe b/grammars/tree-sitter-haxe deleted file mode 160000 index 626c534..0000000 --- a/grammars/tree-sitter-haxe +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 626c53473d2dc598ca51c57111ebc52a2955dcab diff --git a/grammars/tree-sitter-hcl b/grammars/tree-sitter-hcl deleted file mode 160000 index 9e3ec98..0000000 --- a/grammars/tree-sitter-hcl +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 9e3ec9848f28d26845ba300fd73c740459b83e9b diff --git a/grammars/tree-sitter-hosts b/grammars/tree-sitter-hosts deleted file mode 160000 index 301b937..0000000 --- a/grammars/tree-sitter-hosts +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 301b9379ce7dfc8bdbe2c2699a6887dcb73953f9 diff --git a/grammars/tree-sitter-html b/grammars/tree-sitter-html deleted file mode 160000 index e4d834e..0000000 --- a/grammars/tree-sitter-html +++ /dev/null @@ -1 +0,0 @@ -Subproject commit e4d834eb4918df01dcad5c27d1b15d56e3bd94cd diff --git a/grammars/tree-sitter-ini b/grammars/tree-sitter-ini deleted file mode 160000 index 87176e5..0000000 --- a/grammars/tree-sitter-ini +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 87176e524f0a98f5be75fa44f4f0ff5c6eac069c diff --git a/grammars/tree-sitter-java b/grammars/tree-sitter-java deleted file mode 160000 index 953abfc..0000000 --- a/grammars/tree-sitter-java +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 953abfc8bb3eb2f578e1f461edba4a9885f974b8 diff --git a/grammars/tree-sitter-javascript b/grammars/tree-sitter-javascript deleted file mode 160000 index a92640f..0000000 --- a/grammars/tree-sitter-javascript +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a92640f158c208ca3be28b560b838b2bd60e8eac diff --git a/grammars/tree-sitter-jsdoc b/grammars/tree-sitter-jsdoc deleted file mode 160000 index 49fde20..0000000 --- a/grammars/tree-sitter-jsdoc +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 49fde205b59a1d9792efc21ee0b6d50bbd35ff14 diff --git a/grammars/tree-sitter-json b/grammars/tree-sitter-json deleted file mode 160000 index 94f5c52..0000000 --- a/grammars/tree-sitter-json +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 94f5c527b2965465956c2000ed6134dd24daf2a7 diff --git a/grammars/tree-sitter-json5 b/grammars/tree-sitter-json5 deleted file mode 160000 index ab0ba82..0000000 --- a/grammars/tree-sitter-json5 +++ /dev/null @@ -1 +0,0 @@ -Subproject commit ab0ba8229d639ec4f3fa5f674c9133477f4b77bd diff --git a/grammars/tree-sitter-jsonnet b/grammars/tree-sitter-jsonnet deleted file mode 160000 index 15ef844..0000000 --- a/grammars/tree-sitter-jsonnet +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 15ef8441a8773bc4779590c22dc29a95bb674f35 diff --git a/grammars/tree-sitter-julia b/grammars/tree-sitter-julia deleted file mode 160000 index f1baa5f..0000000 --- a/grammars/tree-sitter-julia +++ /dev/null @@ -1 +0,0 @@ -Subproject commit f1baa5f8e271109d01cc8ff7473c11df2d8a9aee diff --git a/grammars/tree-sitter-just b/grammars/tree-sitter-just deleted file mode 160000 index 379fbe3..0000000 --- a/grammars/tree-sitter-just +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 379fbe36d1e441bc9414ea050ad0c85c9d6935ea diff --git a/grammars/tree-sitter-kdl b/grammars/tree-sitter-kdl deleted file mode 160000 index b37e3d5..0000000 --- a/grammars/tree-sitter-kdl +++ /dev/null @@ -1 +0,0 @@ -Subproject commit b37e3d58e5c5cf8d739b315d6114e02d42e66664 diff --git a/grammars/tree-sitter-kotlin b/grammars/tree-sitter-kotlin deleted file mode 160000 index c9cb850..0000000 --- a/grammars/tree-sitter-kotlin +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c9cb8504b81684375e7beb8907517dbd6947a1be diff --git a/grammars/tree-sitter-latex b/grammars/tree-sitter-latex deleted file mode 160000 index 12523bd..0000000 --- a/grammars/tree-sitter-latex +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 12523bd1ffd2c428b2dad177e2b4555574d90973 diff --git a/grammars/tree-sitter-ld b/grammars/tree-sitter-ld deleted file mode 160000 index 0e9695a..0000000 --- a/grammars/tree-sitter-ld +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0e9695ae0ede47b8744a8e2ad44d4d40c5d4e4c9 diff --git a/grammars/tree-sitter-llvm b/grammars/tree-sitter-llvm deleted file mode 160000 index 1b96e58..0000000 --- a/grammars/tree-sitter-llvm +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 1b96e58faf558ce057d4dc664b904528aee743cb diff --git a/grammars/tree-sitter-llvm-mir b/grammars/tree-sitter-llvm-mir deleted file mode 160000 index 06fabca..0000000 --- a/grammars/tree-sitter-llvm-mir +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 06fabca19454b2dc00c1b211a7cb7ad0bc2585f1 diff --git a/grammars/tree-sitter-log b/grammars/tree-sitter-log deleted file mode 160000 index 62cfe30..0000000 --- a/grammars/tree-sitter-log +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 62cfe307e942af3417171243b599cc7deac5eab9 diff --git a/grammars/tree-sitter-lua b/grammars/tree-sitter-lua deleted file mode 160000 index a24dab1..0000000 --- a/grammars/tree-sitter-lua +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a24dab177e58c9c6832f96b9a73102a0cfbced4a diff --git a/grammars/tree-sitter-make b/grammars/tree-sitter-make deleted file mode 160000 index a4b9187..0000000 --- a/grammars/tree-sitter-make +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a4b9187417d6be349ee5fd4b6e77b4172c6827dd diff --git a/grammars/tree-sitter-markdown b/grammars/tree-sitter-markdown deleted file mode 160000 index 7fe453b..0000000 --- a/grammars/tree-sitter-markdown +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 7fe453beacecf02c86f7736439f238f5bb8b5c9b diff --git a/grammars/tree-sitter-meson b/grammars/tree-sitter-meson deleted file mode 160000 index 1a497ee..0000000 --- a/grammars/tree-sitter-meson +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 1a497eecfb1b840ab12caf28f0ef45d4a5e26d28 diff --git a/grammars/tree-sitter-nasm b/grammars/tree-sitter-nasm deleted file mode 160000 index 570f3d7..0000000 --- a/grammars/tree-sitter-nasm +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 570f3d7be01fffc751237f4cfcf52d04e20532d1 diff --git a/grammars/tree-sitter-nix b/grammars/tree-sitter-nix deleted file mode 160000 index 0fdada1..0000000 --- a/grammars/tree-sitter-nix +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0fdada10f1f845ca9116e279ad8f5d0ca93e9949 diff --git a/grammars/tree-sitter-nu b/grammars/tree-sitter-nu deleted file mode 160000 index 0bb9a60..0000000 --- a/grammars/tree-sitter-nu +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0bb9a602d9bc94b66fab96ce51d46a5a227ab76c diff --git a/grammars/tree-sitter-ocaml b/grammars/tree-sitter-ocaml deleted file mode 160000 index 036226e..0000000 --- a/grammars/tree-sitter-ocaml +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 036226e5edb410aec004cc7ac0f4b2014dd04a0e diff --git a/grammars/tree-sitter-odin b/grammars/tree-sitter-odin deleted file mode 160000 index 4d6b644..0000000 --- a/grammars/tree-sitter-odin +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 4d6b6444471ffac5ce3dc493ea4961fc672d934f diff --git a/grammars/tree-sitter-opencl b/grammars/tree-sitter-opencl deleted file mode 160000 index 8e1d24a..0000000 --- a/grammars/tree-sitter-opencl +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 8e1d24a57066b3cd1bb9685bbc1ca9de5c1b78fb diff --git a/grammars/tree-sitter-pascal b/grammars/tree-sitter-pascal deleted file mode 160000 index a9ee969..0000000 --- a/grammars/tree-sitter-pascal +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a9ee969dec5b2e3b2ccccc5954fec04100c7619e diff --git a/grammars/tree-sitter-passwd b/grammars/tree-sitter-passwd deleted file mode 160000 index 2023939..0000000 --- a/grammars/tree-sitter-passwd +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 20239395eacdc2e0923a7e5683ad3605aee7b716 diff --git a/grammars/tree-sitter-pem b/grammars/tree-sitter-pem deleted file mode 160000 index 62842ea..0000000 --- a/grammars/tree-sitter-pem +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 62842ea106ff66876f9af4cccdf87913d1ed912e diff --git a/grammars/tree-sitter-php b/grammars/tree-sitter-php deleted file mode 160000 index 575a080..0000000 --- a/grammars/tree-sitter-php +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 575a0801f430c8672db70b73493c033a9dcfc328 diff --git a/grammars/tree-sitter-pkl b/grammars/tree-sitter-pkl deleted file mode 160000 index 81db61d..0000000 --- a/grammars/tree-sitter-pkl +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 81db61d50258d64bf3452e9dfa44d310750c15e7 diff --git a/grammars/tree-sitter-powershell b/grammars/tree-sitter-powershell deleted file mode 160000 index 804d86f..0000000 --- a/grammars/tree-sitter-powershell +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 804d86fd4ad286bd0cc1c1f0f7b28bd7af6755ad diff --git a/grammars/tree-sitter-prisma b/grammars/tree-sitter-prisma deleted file mode 160000 index eca2596..0000000 --- a/grammars/tree-sitter-prisma +++ /dev/null @@ -1 +0,0 @@ -Subproject commit eca2596a355b1a9952b4f80f8f9caed300a272b5 diff --git a/grammars/tree-sitter-protobuf b/grammars/tree-sitter-protobuf deleted file mode 160000 index 5aef38d..0000000 --- a/grammars/tree-sitter-protobuf +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 5aef38d655f76a6b0d172340eed3766c93b3124c diff --git a/grammars/tree-sitter-python b/grammars/tree-sitter-python deleted file mode 160000 index 0dee05e..0000000 --- a/grammars/tree-sitter-python +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0dee05ef958ba2eae88d1e65f24b33cad70d4367 diff --git a/grammars/tree-sitter-ql b/grammars/tree-sitter-ql deleted file mode 160000 index 42becd6..0000000 --- a/grammars/tree-sitter-ql +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 42becd6f8f7bae82c818fa3abb1b6ff34b552310 diff --git a/grammars/tree-sitter-r b/grammars/tree-sitter-r deleted file mode 160000 index b1e211f..0000000 --- a/grammars/tree-sitter-r +++ /dev/null @@ -1 +0,0 @@ -Subproject commit b1e211f52ad8f8e1e182bbbcc16dcd5e3688eb7d diff --git a/grammars/tree-sitter-rcl b/grammars/tree-sitter-rcl deleted file mode 160000 index ae0bf72..0000000 --- a/grammars/tree-sitter-rcl +++ /dev/null @@ -1 +0,0 @@ -Subproject commit ae0bf72a29a93931320622e778855dccbe2178aa diff --git a/grammars/tree-sitter-regex b/grammars/tree-sitter-regex deleted file mode 160000 index 47007f1..0000000 --- a/grammars/tree-sitter-regex +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 47007f195752d8e57bda80b0b6cdb2d173a9f7d7 diff --git a/grammars/tree-sitter-rego b/grammars/tree-sitter-rego deleted file mode 160000 index 20b5a59..0000000 --- a/grammars/tree-sitter-rego +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 20b5a5958c837bc9f74b231022a68a594a313f6d diff --git a/grammars/tree-sitter-ron b/grammars/tree-sitter-ron deleted file mode 160000 index 8a397e9..0000000 --- a/grammars/tree-sitter-ron +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 8a397e9698b9d6b12f6d79351e3760f0b15032da diff --git a/grammars/tree-sitter-rst b/grammars/tree-sitter-rst deleted file mode 160000 index 5120f6e..0000000 --- a/grammars/tree-sitter-rst +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 5120f6e59284cb8b85b450bd2db0bd352635ba9f diff --git a/grammars/tree-sitter-ruby b/grammars/tree-sitter-ruby deleted file mode 160000 index 0ffe457..0000000 --- a/grammars/tree-sitter-ruby +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0ffe457fb6aabf064f173fd30ea356845cef2513 diff --git a/grammars/tree-sitter-rust b/grammars/tree-sitter-rust deleted file mode 160000 index 9c84af0..0000000 --- a/grammars/tree-sitter-rust +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 9c84af007b0f144954adb26b3f336495cbb320a7 diff --git a/grammars/tree-sitter-scala b/grammars/tree-sitter-scala deleted file mode 160000 index a13f2d1..0000000 --- a/grammars/tree-sitter-scala +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a13f2d1ee9609cc5c4c8ffce9640c353b77a24d8 diff --git a/grammars/tree-sitter-scheme b/grammars/tree-sitter-scheme deleted file mode 160000 index 8f9dff3..0000000 --- a/grammars/tree-sitter-scheme +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 8f9dff3d038f09934db5ea113cebc59c74447743 diff --git a/grammars/tree-sitter-scss b/grammars/tree-sitter-scss deleted file mode 160000 index c478c68..0000000 --- a/grammars/tree-sitter-scss +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c478c6868648eff49eb04a4df90d703dc45b312a diff --git a/grammars/tree-sitter-slint b/grammars/tree-sitter-slint deleted file mode 160000 index 4a0558c..0000000 --- a/grammars/tree-sitter-slint +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 4a0558cc0fcd7a6110815b9bbd7cc12d7ab31e74 diff --git a/grammars/tree-sitter-smithy b/grammars/tree-sitter-smithy deleted file mode 160000 index fa898ac..0000000 --- a/grammars/tree-sitter-smithy +++ /dev/null @@ -1 +0,0 @@ -Subproject commit fa898ac0885d1da9a253695c3e0e91f5efc587cd diff --git a/grammars/tree-sitter-sql b/grammars/tree-sitter-sql deleted file mode 160000 index 3f2001f..0000000 --- a/grammars/tree-sitter-sql +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 3f2001f3f4575f2d37472d15f51a876177c1b12d diff --git a/grammars/tree-sitter-ssh-client-config b/grammars/tree-sitter-ssh-client-config deleted file mode 160000 index 86cdf10..0000000 --- a/grammars/tree-sitter-ssh-client-config +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 86cdf10f43bd18b8efbff982ab725d833e96ca69 diff --git a/grammars/tree-sitter-strace b/grammars/tree-sitter-strace deleted file mode 160000 index d819cdd..0000000 --- a/grammars/tree-sitter-strace +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d819cdd5dbe455bd3c859193633c8d91c0df7c36 diff --git a/grammars/tree-sitter-svelte b/grammars/tree-sitter-svelte deleted file mode 160000 index ea528fc..0000000 --- a/grammars/tree-sitter-svelte +++ /dev/null @@ -1 +0,0 @@ -Subproject commit ea528fc9985aed8d93c9f438c185644a33d011af diff --git a/grammars/tree-sitter-sway b/grammars/tree-sitter-sway deleted file mode 160000 index a4e2f95..0000000 --- a/grammars/tree-sitter-sway +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a4e2f954f85d80e9860f71b825b2856cd9e856fd diff --git a/grammars/tree-sitter-swift b/grammars/tree-sitter-swift deleted file mode 160000 index b3dc8cc..0000000 --- a/grammars/tree-sitter-swift +++ /dev/null @@ -1 +0,0 @@ -Subproject commit b3dc8cc5c266effd7bcfde01aa086b83927f2eda diff --git a/grammars/tree-sitter-tcl b/grammars/tree-sitter-tcl deleted file mode 160000 index 8784024..0000000 --- a/grammars/tree-sitter-tcl +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 8784024358c233efd0f3a6fd9e7a3c5852e628bc diff --git a/grammars/tree-sitter-toml b/grammars/tree-sitter-toml deleted file mode 160000 index 16a30c8..0000000 --- a/grammars/tree-sitter-toml +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 16a30c83ce427385b8d14939c45c137fcfca6c42 diff --git a/grammars/tree-sitter-typescript b/grammars/tree-sitter-typescript deleted file mode 160000 index 198d035..0000000 --- a/grammars/tree-sitter-typescript +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 198d03553f43a45b92ac5d0ee167db3fec6a6fd6 diff --git a/grammars/tree-sitter-typst b/grammars/tree-sitter-typst deleted file mode 160000 index 90f6af2..0000000 --- a/grammars/tree-sitter-typst +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 90f6af21271dee246a9cafe109e2b456c5bc10a6 diff --git a/grammars/tree-sitter-vala b/grammars/tree-sitter-vala deleted file mode 160000 index 8f690bf..0000000 --- a/grammars/tree-sitter-vala +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 8f690bfa639f2b83d1fb938ed3dd98a7ba453e8b diff --git a/grammars/tree-sitter-verilog b/grammars/tree-sitter-verilog deleted file mode 160000 index 075ebfc..0000000 --- a/grammars/tree-sitter-verilog +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 075ebfc84543675f12e79a955f79d717772dcef3 diff --git a/grammars/tree-sitter-vue b/grammars/tree-sitter-vue deleted file mode 160000 index 7e48557..0000000 --- a/grammars/tree-sitter-vue +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 7e48557b903a9db9c38cea3b7839ef7e1f36c693 diff --git a/grammars/tree-sitter-wasm b/grammars/tree-sitter-wasm deleted file mode 160000 index 4d8e576..0000000 --- a/grammars/tree-sitter-wasm +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 4d8e576dcb569696a722add408678e5b98d2dcb6 diff --git a/grammars/tree-sitter-wgsl b/grammars/tree-sitter-wgsl deleted file mode 160000 index 40259f3..0000000 --- a/grammars/tree-sitter-wgsl +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 40259f3c77ea856841a4e0c4c807705f3e4a2b65 diff --git a/grammars/tree-sitter-wit b/grammars/tree-sitter-wit deleted file mode 160000 index c917790..0000000 --- a/grammars/tree-sitter-wit +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c917790ab9aec50c5fd664cbfad8dd45110cfff3 diff --git a/grammars/tree-sitter-xml b/grammars/tree-sitter-xml deleted file mode 160000 index 36dd54f..0000000 --- a/grammars/tree-sitter-xml +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 36dd54f701e3b3e030412a854295af971cf74ad1 diff --git a/grammars/tree-sitter-yaml b/grammars/tree-sitter-yaml deleted file mode 160000 index 7b03fee..0000000 --- a/grammars/tree-sitter-yaml +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 7b03feefd36b5f155465ca736c6304aca983b267 diff --git a/grammars/tree-sitter-zig b/grammars/tree-sitter-zig deleted file mode 160000 index 2bac4cc..0000000 --- a/grammars/tree-sitter-zig +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 2bac4cc6c697d46a193905fef6d003bfa0bfabfd diff --git a/helper/Cargo.toml b/helper/Cargo.toml deleted file mode 100644 index 2449690..0000000 --- a/helper/Cargo.toml +++ /dev/null @@ -1,10 +0,0 @@ -[package] -name = "helper" -description = "git submodule helper" -edition = { workspace = true } - -[dependencies] -anyhow = { workspace = true } -git2 = { workspace = true } -indexmap = { workspace = true } -url = { workspace = true } diff --git a/helper/src/main.rs b/helper/src/main.rs deleted file mode 100644 index 08a6f8d..0000000 --- a/helper/src/main.rs +++ /dev/null @@ -1,193 +0,0 @@ -use std::path::Path; - -use anyhow::{anyhow, Result}; -use git2::{ - ConfigEntry, FetchOptions, RemoteCallbacks, Repository, SubmoduleUpdateOptions, -}; -use indexmap::{IndexMap, IndexSet}; - -#[derive(Debug, Clone, Default)] -struct Module { - _name: String, - path: String, - branch: String, - url: IndexSet, -} - -fn set_val(submod: &mut Module, key: &str, entry: &ConfigEntry) { - match key { - "branch" => { - submod.branch = entry.value().unwrap().to_string(); - } - "path" => { - submod.path = entry.value().unwrap().to_string(); - } - "url" => { - submod.url.insert(entry.value().unwrap().to_string()); - } - _ => { - eprintln!("Unknown entry type: {key}") - } - } -} - -fn main() -> Result<()> { - let arg1 = std::env::args().nth(1); - - let cfg = git2::Config::open(Path::new(".gitmodules"))?; - - let mut config: IndexMap = IndexMap::new(); - - let mut entries = cfg.entries(None)?; - while let Some(entry) = entries.next() { - let entry = entry?; - - // println!("{} => {}", entry.name().unwrap(), entry.value().unwrap()); - - let mut entry_key = entry.name().unwrap().split('.'); - let _entry_type = entry_key.next().unwrap(); - let entry_name = entry_key.next().unwrap(); - let entry_key = entry_key.next().unwrap(); - - match config.get_mut(entry_name) { - Some(submod) => { - set_val(submod, entry_key, entry); - } - None => { - let mut submod = Module::default(); - - set_val(&mut submod, entry_key, entry); - - config.insert(entry_name.to_string(), submod); - } - } - } - - config.sort_unstable_keys(); - - match arg1.as_deref() { - Some("print") => { - for (name, submod) in config { - println!("[submodule \"{name}\"]"); - if !submod.branch.is_empty() { - println!("\tbranch = \"{}\"", submod.branch); - } - if !submod.path.is_empty() { - println!("\tpath = \"{}\"", submod.path); - } - if !submod.url.is_empty() { - for url in submod.url { - println!("\turl = \"{url}\""); - } - } - println!(); - } - } - - Some("update") => { - let repo = git2::Repository::open(".")?; - - let modules = repo.submodules()?; - - for mut module in modules { - eprintln!("Submodule: {}", module.name().unwrap()); - - if let Some(submod) = config.get(module.name().unwrap()) { - let module = match module.open() { - Ok(v) => v, - Err(e) => { - eprintln!("\tFailed to open module: {e}"); - if e.code() == git2::ErrorCode::NotFound { - if let Err(e) = module.repo_init(false) { - eprintln!("\tFailed to repo init module: {e}"); - }; - - let mut cb = RemoteCallbacks::new(); - cb.credentials( - |_url, username_from_url: Option<&str>, _allowed_types| { - git2::Cred::ssh_key_from_agent(username_from_url.unwrap()) - }, - ); - - let mut fo = FetchOptions::new(); - fo.remote_callbacks(cb); - - if let Err(e) = module.clone(Some( - SubmoduleUpdateOptions::new().fetch(fo), - )) { - eprintln!("Failed to update module: {e}"); - }; - - match module.open() { - Ok(v) => v, - Err(e) => { - return Err(anyhow!( - "Failed to open module AGAIN: {e}" - )); - } - } - } else { - panic!("\tDiff err") - } - } - }; - - // Create remotes for all URLs defined for submodule - // First URL should be that of an upstream and will be created additionally under that name - // Last URL should be an origin, which will be created for that name - for i in 0..submod.url.len() { - let remote = submod.url.get_index(i).unwrap(); - let remote_name = get_remote_name_from_url(remote); - create_remote(&module, remote_name, remote)?; - if i == 0 { - create_remote(&module, "upstream", remote)?; - } - if i == submod.url.len() { - create_remote(&module, "origin", remote)?; - } - } - } - } - } - - v => { - eprintln!("Unknown action: {v:?}"); - } - } - - Ok(()) -} - -fn get_remote_name_from_url(url: &str) -> &str { - let mut url = url.split(':'); - url.next(); - url.next().unwrap().split('/').take(1).next().unwrap() -} - -fn create_remote(module: &Repository, name: &str, url: &str) -> Result<()> { - match module.find_remote(name) { - Ok(r) => { - if r.url().unwrap_or_default() != url { - if let Err(e) = module.remote_set_url(name, url) { - eprintln!("\tFailed to update remote `{name}`: {e}"); - } else { - eprintln!("\tRemote `{name}` updated."); - }; - } else { - eprintln!("\tRemote `{name}` found."); - } - return Ok(()); - } - Err(e) => { - if e.code() == git2::ErrorCode::NotFound { - eprintln!("\tRemote `{name}` not found. Creating..."); - if let Err(e) = module.remote(name, url) { - eprintln!("\tFailed to create remote `{name}`: {e}"); - }; - } else { - eprintln!("\tFailed to find remote `{name}`: {e}"); - } - } - }; - Ok(()) -} diff --git a/make.py b/make.py deleted file mode 100755 index d9230a8..0000000 --- a/make.py +++ /dev/null @@ -1,283 +0,0 @@ -#!/usr/bin/env python -"""Script to build all grammars""" - -# pylint: disable=missing-class-docstring,missing-function-docstring,invalid-name - -import cmd -import os -import sys -import logging -from pathlib import Path -from platform import system -from shutil import copy -import subprocess - -ci = os.getenv("GITHUB_ACTIONS") - -logger = logging.getLogger(__name__) - -# GitHub Actions log level names -logging.addLevelName(logging.ERROR, "error") -logging.addLevelName(logging.INFO, "info") -logging.addLevelName(logging.WARN, "warning") -logging.addLevelName(logging.DEBUG, "debug") - -if ci is not None: - logging.basicConfig( - stream=sys.stdout, - level=logging.DEBUG, - format="::%(levelname)s title=make.py::%(message)s", - ) -else: - logging.basicConfig( - stream=sys.stderr, - level=logging.DEBUG, - format="%(asctime)s %(levelname)s %(message)s", - ) - - -cwd = Path.cwd().resolve() -logger.info("cwd: %s", cwd) - - -def lib_suffix(): - """Get appropriate dynamic library suffix for OS type""" - match system(): - case "Windows": - return "dll" - case "Linux": - return "so" - case "Darwin": - return "dylib" - case _: - return "" - - -def run(command: list[str], workdir: Path, err: str): - logger.debug("workdir: %s", workdir) - logger.debug("command: %s", command) - - proc = subprocess.run( - command, - capture_output=True, - check=False, - cwd=workdir, - shell=(system() == "Windows"), - ) - for line in proc.stdout.splitlines(): - logging.info(line.decode()) - for line in proc.stderr.splitlines(): - logging.info(line.decode()) - if proc.returncode != 0: - logging.error(err) - return False - return True - - -def ts_build(grammar: Path, grammar_name: str, output: Path, generate=True, npm=False): - if npm is True: - command = ["npm", "install"] - if ( - run( - command=command, - workdir=grammar.resolve(), - err=f"Failed to execute {command} for {grammar}", - ) - is False - ): - return False - if generate is True: - command = ["tree-sitter", "generate", "--no-bindings"] - if ( - run( - command=command, - workdir=grammar.resolve(), - err=f"Failed to execute {command} for {grammar}", - ) - is False - ): - return False - - command = [ - "tree-sitter", - "build", - "--output", - output.joinpath(f"lib{grammar_name}.{lib_suffix()}"), - ".", - ] - if ( - run( - command=command, - workdir=grammar, - err=f"Failed to execute {command} for {grammar}", - ) - is False - ): - return False - return True - - -def build(output: Path, grammars: list[Path]): - """Build entrypoint""" - if len(grammars) == 0: - grammars = sorted(cwd.joinpath("grammars").iterdir()) - - for grammar in grammars: - if grammar.is_dir() is False: - logger.info("skipping path: %s", grammar) - continue - - grammar_name = grammar.name - if ci is not None: - print(f"::group::Build {grammar_name}") - else: - print("---") - logger.info("building grammar: %s", grammar_name) - - # # Skip built grammars - # if next(grammar.glob(f"**/libtree-sitter-*.{lib_suffix()}"), False) is False: - # continue - - # pylint: disable=cell-var-from-loop - def _symlink_module(mod: str): - if grammar.joinpath("node_modules").resolve().exists() is False: - os.mkdir(grammar.joinpath("node_modules").resolve()) - os.symlink( - grammar.joinpath("..", mod).resolve(), - grammar.joinpath("node_modules", mod).resolve(), - ) - - # Prep phase - - match grammar_name: - case "tree-sitter-adl": - logging.warning("%s: skip building: %s", grammar_name, "bad licence") - continue - case ( - "tree-sitter-glimmer" - ): # https://github.com/ember-tooling/tree-sitter-glimmer/issues/139 - logging.warning("%s: skip building: %s", grammar_name, "bad licence") - continue - case "tree-sitter-odin": - logging.warning("%s: skip building: %s", grammar_name, "unknown issue") - continue - case "tree-sitter-rcl": # monorepo - grammar = grammar.joinpath("grammar").joinpath("tree-sitter-rcl") - - def _build_multi(dirs: list, generate=False, npm=False): - for subdir in dirs: - # pylint: disable-next=cell-var-from-loop - if ts_build(grammar.joinpath(subdir), grammar_name, output, generate, npm) is False: - continue - - # Build phase - - match grammar_name: - case "tree-sitter-angular": - if ts_build(grammar, grammar_name, output, npm=True) is False: - continue - case "tree-sitter-astro": - if ts_build(grammar, grammar_name, output, npm=True) is False: - continue - case "tree-sitter-cpp": - if ts_build(grammar, grammar_name, output, npm=True) is False: - continue - case "tree-sitter-c-sharp": - if ts_build(grammar, grammar_name, output, generate=False) is False: - continue - case "tree-sitter-glsl": - if ts_build(grammar, grammar_name, output, npm=True) is False: - continue - case "tree-sitter-markdown": - _build_multi(["tree-sitter-markdown", "tree-sitter-markdown-inline"]) - case "tree-sitter-ocaml": - _build_multi(["grammars/ocaml", "grammars/interface", "grammars/type"]) - case "tree-sitter-php": - _build_multi(["php", "php_only"]) - case "tree-sitter-typescript": - _build_multi(["tsx", "typescript"], npm=True) - case "tree-sitter-wasm": - _build_multi(["wast", "wat"]) - case _: - if ts_build(grammar, grammar_name, output) is False: - continue - - # License phase - - def _copy_lic(src_lic_path: Path): - logging.info("copying '%s'", src_lic_path) - # pylint: disable-next=cell-var-from-loop - copy(src_lic_path, output.joinpath(f"{grammar_name}.LICENSE")) - - match grammar_name: - case "tree-sitter-dhall": - _copy_lic(grammar.joinpath("LICENSE")) - case "tree-sitter-rcl": - _copy_lic(grammar.joinpath("..", "..", "LICENSE").resolve()) - case "tree-sitter-ron": - _copy_lic(grammar.joinpath("LICENSE-APACHE")) - case "tree-sitter-slint": - _copy_lic(grammar.joinpath("LICENSES", "MIT.txt")) - case _: - # Grab all LICENSE files - licg = grammar.glob("LICENSE*") - copg = grammar.glob("COPYING*") - # Get first one - lic = next(copg, next(licg, "")) - - if lic != "" and lic.exists() is True: - suffix = "LICENSE" - if lic.name.startswith("COPYING"): - suffix = "COPYING" - logging.info("copying '%s'", lic) - copy(lic, output.joinpath(f"{grammar_name}.{suffix}")) - else: - logging.error("%s: No licence found!!!", grammar_name) - - if ci is not None: - print("\n::endgroup::") - - -class TreeSitterMake(cmd.Cmd): - intro = "tree-sitter-grammars shell: type help or ? to list commands.\n" - prompt = "(ts-grammars) " - - def do_build(self, arg): - paths = [] - for path in parse(arg): - paths.append(Path(path)) - build(output_dir(), paths) - - def do_return(self, _arg): - return True - - def do_quit(self, _arg): - return True - - def do_exit(self, _arg): - return True - - def do_EOF(self, _arg): - return True - - -def parse(arg): - "Make args into tuple" - return tuple(map(str, arg.split())) - - -def output_dir(): - "Get artefact output dir" - output = cwd.joinpath("output") - logging.info("output dir: %s", output) - if output.exists() is False: - logging.info("Creating 'output' dir") - output.mkdir(mode=0o755, parents=True, exist_ok=True) - return output - - -if __name__ == "__main__": - make = TreeSitterMake() - if len(sys.argv) == 1: - make.cmdqueue = ["build", "return"] - make.cmdloop() diff --git a/queries/ada/folds.scm b/queries/ada/folds.scm deleted file mode 100644 index 2839316..0000000 --- a/queries/ada/folds.scm +++ /dev/null @@ -1,15 +0,0 @@ -;; Support for folding in Ada -;; za toggles folding a package, subprogram, if statement or loop - -[ - (package_declaration) - (generic_package_declaration) - (package_body) - (subprogram_declaration) - (subprogram_body) - (block_statement) - (if_statement) - (loop_statement) - (gnatprep_declarative_if_statement) - (gnatprep_if_statement) -] @fold diff --git a/queries/ada/highlights.scm b/queries/ada/highlights.scm deleted file mode 100644 index a350d31..0000000 --- a/queries/ada/highlights.scm +++ /dev/null @@ -1,196 +0,0 @@ -;; highlight queries. -;; See the syntax at https://tree-sitter.github.io/tree-sitter/using-parsers#pattern-matching-with-queries -;; See also https://github.com/nvim-treesitter/nvim-treesitter/blob/master/CONTRIBUTING.md#parser-configurations -;; for a list of recommended @ tags, though not all of them have matching -;; highlights in neovim. - -[ - "abort" - "abs" - "abstract" - "accept" - "access" - "all" - "array" - "at" - "begin" - "declare" - "delay" - "delta" - "digits" - "do" - "end" - "entry" - "exit" - "generic" - "interface" - "is" - "limited" - "null" - "of" - "others" - "out" - "pragma" - "private" - "range" - "synchronized" - "tagged" - "task" - "terminate" - "until" - "when" -] @keyword -[ - "aliased" - "constant" - "renames" -] @storageclass -[ - "mod" - "new" - "protected" - "record" - "subtype" - "type" -] @keyword.type -[ - "with" - "use" -] @include -[ - "body" - "function" - "overriding" - "procedure" - "package" - "separate" -] @keyword.function -[ - "and" - "in" - "not" - "or" - "xor" -] @keyword.operator -[ - "while" - "loop" - "for" - "parallel" - "reverse" - "some" -] @repeat -[ - "return" -] @keyword.return -[ - "case" - "if" - "else" - "then" - "elsif" - "select" -] @conditional -[ - "exception" - "raise" -] @exception -(comment) @comment @spell -(string_literal) @string -(character_literal) @string -(numeric_literal) @number - -;; Highlight the name of subprograms -(procedure_specification name: (_) @function) -(function_specification name: (_) @function) -(package_declaration name: (_) @function) -(package_body name: (_) @function) -(generic_instantiation name: (_) @function) -(entry_declaration . (identifier) @function) - -;; Some keywords should take different categories depending on the context -(use_clause "use" @include "type" @include) -(with_clause "private" @include) -(with_clause "limited" @include) -(use_clause (_) @namespace) -(with_clause (_) @namespace) - -(loop_statement "end" @keyword.repeat) -(if_statement "end" @conditional) -(loop_parameter_specification "in" @keyword.repeat) -(loop_parameter_specification "in" @keyword.repeat) -(iterator_specification ["in" "of"] @keyword.repeat) -(range_attribute_designator "range" @keyword.repeat) - -(raise_statement "with" @exception) - -(gnatprep_declarative_if_statement) @preproc -(gnatprep_if_statement) @preproc -(gnatprep_identifier) @preproc - -(subprogram_declaration "is" @keyword.function "abstract" @keyword.function) -(aspect_specification "with" @keyword.function) - -(full_type_declaration "is" @keyword.type) -(subtype_declaration "is" @keyword.type) -(record_definition "end" @keyword.type) -(full_type_declaration (_ "access" @keyword.type)) -(array_type_definition "array" @keyword.type "of" @keyword.type) -(access_to_object_definition "access" @keyword.type) -(access_to_object_definition "access" @keyword.type - [ - (general_access_modifier "constant" @keyword.type) - (general_access_modifier "all" @keyword.type) - ] -) -(range_constraint "range" @keyword.type) -(signed_integer_type_definition "range" @keyword.type) -(index_subtype_definition "range" @keyword.type) -(record_type_definition "abstract" @keyword.type) -(record_type_definition "tagged" @keyword.type) -(record_type_definition "limited" @keyword.type) -(record_type_definition (record_definition "null" @keyword.type)) -(private_type_declaration "is" @keyword.type "private" @keyword.type) -(private_type_declaration "tagged" @keyword.type) -(private_type_declaration "limited" @keyword.type) -(task_type_declaration "task" @keyword.type "is" @keyword.type) - -;; Gray the body of expression functions -(expression_function_declaration - (function_specification) - "is" - (_) @attribute -) -(subprogram_declaration (aspect_specification) @attribute) - -;; Highlight full subprogram specifications -;(subprogram_body -; [ -; (procedure_specification) -; (function_specification) -; ] @function.spec -;) - -((comment) @comment.documentation - . [ - (entry_declaration) - (subprogram_declaration) - (parameter_specification) - ]) - -(compilation_unit - . (comment) @comment.documentation) - -(component_list - (component_declaration) - . (comment) @comment.documentation) - -(enumeration_type_definition - (identifier) - . (comment) @comment.documentation) - -;; Highlight errors in red. This is not very useful in practice, as text will -;; be highlighted as user types, and the error could be elsewhere in the code. -;; This also requires defining :hi @error guifg=Red for instance. -(ERROR) @error - diff --git a/queries/ada/indents.scm b/queries/ada/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ada/injections.scm b/queries/ada/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ada/locals.scm b/queries/ada/locals.scm deleted file mode 100644 index eda50c6..0000000 --- a/queries/ada/locals.scm +++ /dev/null @@ -1,33 +0,0 @@ -;; Better highlighting by referencing to the definition, for variable -;; references. However, this is not yet supported by neovim -;; See https://tree-sitter.github.io/tree-sitter/syntax-highlighting#local-variables - -(compilation) @scope -(package_declaration) @scope -(package_body) @scope -(subprogram_declaration) @scope -(subprogram_body) @scope -(block_statement) @scope - -(with_clause (_) @definition.import) -(procedure_specification name: (_) @definition.function) -(function_specification name: (_) @definition.function) -(package_declaration name: (_) @definition.var) -(package_body name: (_) @definition.var) -(generic_instantiation . name: (_) @definition.var) -(component_declaration . (identifier) @definition.var) -(exception_declaration . (identifier) @definition.var) -(formal_object_declaration . (identifier) @definition.var) -(object_declaration . (identifier) @definition.var) -(parameter_specification . (identifier) @definition.var) -(full_type_declaration . (identifier) @definition.type) -(private_type_declaration . (identifier) @definition.type) -(private_extension_declaration . (identifier) @definition.type) -(incomplete_type_declaration . (identifier) @definition.type) -(protected_type_declaration . (identifier) @definition.type) -(formal_complete_type_declaration . (identifier) @definition.type) -(formal_incomplete_type_declaration . (identifier) @definition.type) -(task_type_declaration . (identifier) @definition.type) -(subtype_declaration . (identifier) @definition.type) - -(identifier) @reference diff --git a/queries/ada/structure.scm b/queries/ada/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ada/tags.scm b/queries/ada/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ada/textobjects.scm b/queries/ada/textobjects.scm deleted file mode 100644 index 5d81701..0000000 --- a/queries/ada/textobjects.scm +++ /dev/null @@ -1,23 +0,0 @@ -;; Support for high-level text objects selections. -;; For instance: -;; vaf (v)isually select (a) (f)unction or subprogram -;; vif (v)isually select (i)nside a (f)unction or subprogram -;; vai (v)isually select (a) (i)f statement (or loop) -;; vii (v)isually select (i)nside an (i)f statement (or loop) -;; -;; https://github.com/nvim-treesitter/nvim-treesitter-textobjects/blob/master/README.md - -(subprogram_body) @function.outer -(subprogram_body (non_empty_declarative_part) @function.inner) -(subprogram_body (handled_sequence_of_statements) @function.inner) -(function_specification) @function.outer -(procedure_specification) @function.outer -(package_declaration) @function.outer -(generic_package_declaration) @function.outer -(package_body) @function.outer -(if_statement) @block.outer -(if_statement statements: (_) @block.inner) -(if_statement else_statements: (_) @block.inner) -(elsif_statement_item statements: (_) @block.inner) -(loop_statement) @block.outer -(loop_statement statements: (_) @block.inner) diff --git a/queries/adl/folds.scm b/queries/adl/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/adl/highlights.scm b/queries/adl/highlights.scm deleted file mode 100644 index 88e00ad..0000000 --- a/queries/adl/highlights.scm +++ /dev/null @@ -1,37 +0,0 @@ -; adl - -[ -"module" -"struct" -"union" -"type" -"newtype" -"annotation" -] @keyword - -(adl (scoped_name)) @namespace -(comment) @comment -(doc_comment) @comment.block.documentation -(name) @type - -(fname) @variable.other.member - -(type_expr (scoped_name) @type) - -(type_expr_params (param (scoped_name) @type.parameter)) - -; json -(key) @string.special - -(string) @string - -(number) @constant.numeric - -[ - (null) - (true) - (false) -] @constant.builtin - -(escape_sequence) @constant.character.escape - diff --git a/queries/adl/indents.scm b/queries/adl/indents.scm deleted file mode 100644 index 1200d4d..0000000 --- a/queries/adl/indents.scm +++ /dev/null @@ -1,12 +0,0 @@ -[ - (struct) - (union) - - (array) - (object) -] @indent - -; [ -; "}" -; "]" -; ] @outdent diff --git a/queries/adl/injections.scm b/queries/adl/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/adl/locals.scm b/queries/adl/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/adl/structure.scm b/queries/adl/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/adl/tags.scm b/queries/adl/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/adl/textobjects.scm b/queries/adl/textobjects.scm deleted file mode 100644 index 36e39a2..0000000 --- a/queries/adl/textobjects.scm +++ /dev/null @@ -1 +0,0 @@ -(struct (_) @function.inside) @funtion.around diff --git a/queries/agda/folds.scm b/queries/agda/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/agda/highlights.scm b/queries/agda/highlights.scm deleted file mode 100644 index d81f95e..0000000 --- a/queries/agda/highlights.scm +++ /dev/null @@ -1,81 +0,0 @@ - - -;; Constants -(integer) @constant - -;; Variables and Symbols - -(typed_binding (atom (qid) @variable)) -(untyped_binding) @variable -(typed_binding (expr) @type) - -(id) @function -(bid) @function - -(function_name (atom (qid) @function)) -(field_name) @function - - -[(data_name) (record_name)] @constructor - -; Set -(SetN) @type.builtin - - -;; Imports and Module Declarations - -"import" @include - -(module_name) @namespace - -;; Pragmas and comments - -(pragma) @constant.macro - -(comment) @comment - -;; Keywords -[ - "where" - "data" - "rewrite" - "postulate" - "public" - "private" - "tactic" - "Prop" - "quote" - "renaming" - "open" - "in" - "hiding" - "constructor" - "abstract" - "let" - "field" - "mutual" - "module" - "infix" - "infixl" - "infixr" - "record" - "forall" - "∀" - "->" - "→" - "\\" - "λ" - "..." - "…" -] @keyword - -;; Brackets - -[ - "(" - ")" - "{" - "}"] -@punctuation.bracket - - diff --git a/queries/agda/indents.scm b/queries/agda/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/agda/injections.scm b/queries/agda/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/agda/locals.scm b/queries/agda/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/agda/structure.scm b/queries/agda/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/agda/tags.scm b/queries/agda/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/agda/textobjects.scm b/queries/agda/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/angular/folds.scm b/queries/angular/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/angular/highlights.scm b/queries/angular/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/angular/indents.scm b/queries/angular/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/angular/injections.scm b/queries/angular/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/angular/locals.scm b/queries/angular/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/angular/structure.scm b/queries/angular/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/angular/tags.scm b/queries/angular/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/angular/textobjects.scm b/queries/angular/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/astro/folds.scm b/queries/astro/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/astro/highlights.scm b/queries/astro/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/astro/indents.scm b/queries/astro/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/astro/injections.scm b/queries/astro/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/astro/locals.scm b/queries/astro/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/astro/structure.scm b/queries/astro/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/astro/tags.scm b/queries/astro/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/astro/textobjects.scm b/queries/astro/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bash/folds.scm b/queries/bash/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bash/highlights.scm b/queries/bash/highlights.scm deleted file mode 100644 index 3f2df63..0000000 --- a/queries/bash/highlights.scm +++ /dev/null @@ -1,55 +0,0 @@ -[ - (string) - (raw_string) - (heredoc_body) - (heredoc_start) -] @string - -(command_name) @function - -(variable_name) @variable.other.member - -[ - "case" - "do" - "done" - "elif" - "else" - "esac" - "export" - "fi" - "for" - "function" - "if" - "in" - "unset" - "while" - "then" -] @keyword - -(comment) @comment - -(function_definition name: (word) @function) - -(file_descriptor) @constant.numeric.integer - -[ - (command_substitution) - (process_substitution) - (expansion) -]@embedded - -[ - "$" - "&&" - ">" - ">>" - "<" - "|" - (expansion_flags) -] @operator - -( - (command (_) @constant) - (#match? @constant "^-") -) diff --git a/queries/bash/indents.scm b/queries/bash/indents.scm deleted file mode 100644 index 7dbf46c..0000000 --- a/queries/bash/indents.scm +++ /dev/null @@ -1,12 +0,0 @@ -[ - (function_definition) - (if_statement) - (for_statement) - (while_statement) - (case_statement) - (pipeline) -] @indent - -[ - "}" -] @outdent diff --git a/queries/bash/injections.scm b/queries/bash/injections.scm deleted file mode 100644 index 0fddb10..0000000 --- a/queries/bash/injections.scm +++ /dev/null @@ -1,8 +0,0 @@ -((comment) @injection.content - (#set! injection.language "comment")) - -(command - name: (command_name (word) @_command) - argument: (raw_string) @injection.content - (#match? @_command "^[gnm]?awk$") - (#set! injection.language "awk")) \ No newline at end of file diff --git a/queries/bash/locals.scm b/queries/bash/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bash/structure.scm b/queries/bash/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bash/tags.scm b/queries/bash/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bash/textobjects.scm b/queries/bash/textobjects.scm deleted file mode 100644 index 59983b3..0000000 --- a/queries/bash/textobjects.scm +++ /dev/null @@ -1,9 +0,0 @@ -(function_definition - body: (_) @function.inside) @function.around - -(command - argument: (_) @parameter.inside) - -(comment) @comment.inside - -(comment)+ @comment.around diff --git a/queries/bass/folds.scm b/queries/bass/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bass/highlights.scm b/queries/bass/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bass/indents.scm b/queries/bass/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bass/injections.scm b/queries/bass/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bass/locals.scm b/queries/bass/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bass/structure.scm b/queries/bass/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bass/tags.scm b/queries/bass/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bass/textobjects.scm b/queries/bass/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/beancount/folds.scm b/queries/beancount/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/beancount/highlights.scm b/queries/beancount/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/beancount/indents.scm b/queries/beancount/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/beancount/injections.scm b/queries/beancount/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/beancount/locals.scm b/queries/beancount/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/beancount/structure.scm b/queries/beancount/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/beancount/tags.scm b/queries/beancount/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/beancount/textobjects.scm b/queries/beancount/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bibtex/folds.scm b/queries/bibtex/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bibtex/highlights.scm b/queries/bibtex/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bibtex/indents.scm b/queries/bibtex/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bibtex/injections.scm b/queries/bibtex/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bibtex/locals.scm b/queries/bibtex/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bibtex/structure.scm b/queries/bibtex/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bibtex/tags.scm b/queries/bibtex/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bibtex/textobjects.scm b/queries/bibtex/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bitbake/folds.scm b/queries/bitbake/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bitbake/highlights.scm b/queries/bitbake/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bitbake/indents.scm b/queries/bitbake/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bitbake/injections.scm b/queries/bitbake/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bitbake/locals.scm b/queries/bitbake/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bitbake/structure.scm b/queries/bitbake/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bitbake/tags.scm b/queries/bitbake/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/bitbake/textobjects.scm b/queries/bitbake/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/blade/folds.scm b/queries/blade/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/blade/highlights.scm b/queries/blade/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/blade/indents.scm b/queries/blade/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/blade/injections.scm b/queries/blade/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/blade/locals.scm b/queries/blade/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/blade/structure.scm b/queries/blade/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/blade/tags.scm b/queries/blade/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/blade/textobjects.scm b/queries/blade/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/c/folds.scm b/queries/c/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/c/highlights.scm b/queries/c/highlights.scm deleted file mode 100644 index d01f6ed..0000000 --- a/queries/c/highlights.scm +++ /dev/null @@ -1,145 +0,0 @@ -; source: https://github.com/helix-editor/helix/blob/master/runtime/queries/c/highlights.scm -; licence: https://github.com/helix-editor/helix/blob/master/LICENSE -; spdx: MPL-2.0 - -"sizeof" @keyword - -[ - "enum" - "struct" - "typedef" - "union" -] @keyword.storage.type - -[ - "extern" - "register" - (type_qualifier) - (storage_class_specifier) -] @keyword.storage.modifier - -[ - "goto" - "break" - "continue" -] @keyword.control - -[ - "do" - "for" - "while" -] @keyword.control.repeat - -[ - "if" - "else" - "switch" - "case" - "default" -] @keyword.control.conditional - -"return" @keyword.control.return - -[ - "defined" - "#define" - "#elif" - "#else" - "#endif" - "#if" - "#ifdef" - "#ifndef" - "#include" - (preproc_directive) -] @keyword.directive - -(pointer_declarator "*" @type.builtin) -(abstract_pointer_declarator "*" @type.builtin) - -[ - "+" - "-" - "*" - "/" - "++" - "--" - "%" - "==" - "!=" - ">" - "<" - ">=" - "<=" - "&&" - "||" - "!" - "&" - "|" - "^" - "~" - "<<" - ">>" - "=" - "+=" - "-=" - "*=" - "/=" - "%=" - "<<=" - ">>=" - "&=" - "^=" - "|=" - "?" -] @operator - -(conditional_expression ":" @operator) - -"..." @punctuation - -["," "." ":" ";" "->" "::"] @punctuation.delimiter - -["(" ")" "[" "]" "{" "}"] @punctuation.bracket - -[(true) (false)] @constant.builtin.boolean - -(enumerator name: (identifier) @type.enum.variant) - -(string_literal) @string -(system_lib_string) @string - -(null) @constant -(number_literal) @constant.numeric -(char_literal) @constant.character - -(call_expression - function: (identifier) @function) -(call_expression - function: (field_expression - field: (field_identifier) @function)) -(call_expression (argument_list (identifier) @variable)) -(function_declarator - declarator: [(identifier) (field_identifier)] @function) -(parameter_declaration - declarator: (identifier) @variable.parameter) -(parameter_declaration - (pointer_declarator - declarator: (identifier) @variable.parameter)) -(preproc_function_def - name: (identifier) @function.special) - -(attribute - name: (identifier) @attribute) - -(field_identifier) @variable.other.member -(statement_identifier) @label -(type_identifier) @type -(primitive_type) @type.builtin -(sized_type_specifier) @type.builtin - -((identifier) @constant - (#match? @constant "^[A-Z][A-Z\\d_]*$")) - -(identifier) @variable - -(comment) @comment \ No newline at end of file diff --git a/queries/c/indents.scm b/queries/c/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/c/injections.scm b/queries/c/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/c/locals.scm b/queries/c/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/c/structure.scm b/queries/c/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/c/tags.scm b/queries/c/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/c/textobjects.scm b/queries/c/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/clojure/folds.scm b/queries/clojure/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/clojure/highlights.scm b/queries/clojure/highlights.scm deleted file mode 100644 index daac017..0000000 --- a/queries/clojure/highlights.scm +++ /dev/null @@ -1,88 +0,0 @@ -; src: https://github.com/helix-editor/helix/blob/master/runtime/queries/clojure/highlights.scm -; license: https://github.com/helix-editor/helix/blob/master/LICENSE -; spdx: MPL-2.0 - -(dis_expr) @comment - -(kwd_lit) @string.special.symbol - -(str_lit) @string - -(num_lit) @constant.numeric - -[(bool_lit) (nil_lit)] @constant.builtin - -(comment) @comment - -;; metadata experiment -(meta_lit - marker: "^" @punctuation) - -;; dynamic variables -((sym_lit) @variable - (#match? @variable "^\\*.+\\*$")) - -;; parameter-related -((sym_lit) @variable.parameter - (#match? @variable.parameter "^&.*$")) - -;; gensym -((sym_lit) @variable - (#match? @variable "^.*#$")) - -;; def-like things -(list_lit - . - (sym_lit) @function.macro - . - (sym_lit) @function - (#match? @function.macro "^(declare|def|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defprotocol|defstruct|deftype|ns)$")) - -;; other macros -(list_lit - . - (sym_lit) @function.macro - (#match? @function.macro "^(\\.|\\.\\.|\\->|\\->>|amap|and|areduce|as\\->|assert|binding|bound\\-fn|case|catch|comment|cond|cond\\->|cond\\->>|condp|delay|do|doseq|dosync|dotimes|doto|extend-protocol|extend-type|finally|fn|fn\\*|for|future|gen-class|gen-interface|if|if\\-let|if\\-not|if\\-some|import|io!|lazy\\-cat|lazy\\-seq|let|letfn|locking|loop|memfn|monitor\\-enter|monitor\\-exit|or|proxy|proxy-super|pvalues|quote|recur|refer\\-clojure|reify|set!|some\\->|some\\->>|sync|throw|time|try|unquote|unquote\\-splicing|var|vswap!|when|when\\-first|when\\-let|when\\-not|when\\-some|while|with\\-bindings|with\\-in\\-str|with\\-loading\\-context|with\\-local\\-vars|with\\-open|with\\-out\\-str|with\\-precision|with\\-redefs)$")) - -(anon_fn_lit - . - (sym_lit) @function.macro - (#match? @function.macro "^(\\.|\\.\\.|\\->|\\->>|amap|and|areduce|as\\->|assert|binding|bound\\-fn|case|catch|comment|cond|cond\\->|cond\\->>|condp|delay|do|doseq|dosync|dotimes|doto|extend-protocol|extend-type|finally|fn|fn\\*|for|future|gen-class|gen-interface|if|if\\-let|if\\-not|if\\-some|import|io!|lazy\\-cat|lazy\\-seq|let|letfn|locking|loop|memfn|monitor\\-enter|monitor\\-exit|or|proxy|proxy-super|pvalues|quote|recur|refer\\-clojure|reify|set!|some\\->|some\\->>|sync|throw|time|try|unquote|unquote\\-splicing|var|vswap!|when|when\\-first|when\\-let|when\\-not|when\\-some|while|with\\-bindings|with\\-in\\-str|with\\-loading\\-context|with\\-local\\-vars|with\\-open|with\\-out\\-str|with\\-precision|with\\-redefs)$")) - -;; clojure.core=> (cp/pprint (sort (keep (fn [[s v]] (when-not (:macro (meta v)) s)) (ns-publics *ns*)))) -;; ...and then some manual filtering... -(list_lit - . - (sym_lit) @function.builtin - (#match? @function.builtin "^(\\*|\\*'|\\+|\\+'|\\-|\\-'|\\->ArrayChunk|\\->Eduction|\\->Vec|\\->VecNode|\\->VecSeq|\\-cache\\-protocol\\-fn|\\-reset\\-methods|/|<|<=|=|==|>|>=|PrintWriter\\-on|StackTraceElement\\->vec|Throwable\\->map|accessor|aclone|add\\-classpath|add\\-tap|add\\-watch|agent|agent\\-error|agent\\-errors|aget|alength|alias|all\\-ns|alter|alter\\-meta!|alter\\-var\\-root|ancestors|any\\?|apply|array\\-map|aset|aset\\-boolean|aset\\-byte|aset\\-char|aset\\-double|aset\\-float|aset\\-int|aset\\-long|aset\\-short|assoc|assoc!|assoc\\-in|associative\\?|atom|await|await\\-for|await1|bases|bean|bigdec|bigint|biginteger|bit\\-and|bit\\-and\\-not|bit\\-clear|bit\\-flip|bit\\-not|bit\\-or|bit\\-set|bit\\-shift\\-left|bit\\-shift\\-right|bit\\-test|bit\\-xor|boolean|boolean\\-array|boolean\\?|booleans|bound\\-fn\\*|bound\\?|bounded\\-count|butlast|byte|byte\\-array|bytes|bytes\\?|cast|cat|char|char\\-array|char\\-escape\\-string|char\\-name\\-string|char\\?|chars|chunk|chunk\\-append|chunk\\-buffer|chunk\\-cons|chunk\\-first|chunk\\-next|chunk\\-rest|chunked\\-seq\\?|class|class\\?|clear\\-agent\\-errors|clojure\\-version|coll\\?|commute|comp|comparator|compare|compare\\-and\\-set!|compile|complement|completing|concat|conj|conj!|cons|constantly|construct\\-proxy|contains\\?|count|counted\\?|create\\-ns|create\\-struct|cycle|dec|dec'|decimal\\?|dedupe|default\\-data\\-readers|delay\\?|deliver|denominator|deref|derive|descendants|destructure|disj|disj!|dissoc|dissoc!|distinct|distinct\\?|doall|dorun|double|double\\-array|double\\?|doubles|drop|drop\\-last|drop\\-while|eduction|empty|empty\\?|ensure|ensure\\-reduced|enumeration\\-seq|error\\-handler|error\\-mode|eval|even\\?|every\\-pred|every\\?|ex\\-cause|ex\\-data|ex\\-info|ex\\-message|extend|extenders|extends\\?|false\\?|ffirst|file\\-seq|filter|filterv|find|find\\-keyword|find\\-ns|find\\-protocol\\-impl|find\\-protocol\\-method|find\\-var|first|flatten|float|float\\-array|float\\?|floats|flush|fn\\?|fnext|fnil|force|format|frequencies|future\\-call|future\\-cancel|future\\-cancelled\\?|future\\-done\\?|future\\?|gensym|get|get\\-in|get\\-method|get\\-proxy\\-class|get\\-thread\\-bindings|get\\-validator|group\\-by|halt\\-when|hash|hash\\-combine|hash\\-map|hash\\-ordered\\-coll|hash\\-set|hash\\-unordered\\-coll|ident\\?|identical\\?|identity|ifn\\?|in\\-ns|inc|inc'|indexed\\?|init\\-proxy|inst\\-ms|inst\\-ms\\*|inst\\?|instance\\?|int|int\\-array|int\\?|integer\\?|interleave|intern|interpose|into|into\\-array|ints|isa\\?|iterate|iterator\\-seq|juxt|keep|keep\\-indexed|key|keys|keyword|keyword\\?|last|line\\-seq|list|list\\*|list\\?|load|load\\-file|load\\-reader|load\\-string|loaded\\-libs|long|long\\-array|longs|macroexpand|macroexpand\\-1|make\\-array|make\\-hierarchy|map|map\\-entry\\?|map\\-indexed|map\\?|mapcat|mapv|max|max\\-key|memoize|merge|merge\\-with|meta|method\\-sig|methods|min|min\\-key|mix\\-collection\\-hash|mod|munge|name|namespace|namespace\\-munge|nat\\-int\\?|neg\\-int\\?|neg\\?|newline|next|nfirst|nil\\?|nnext|not|not\\-any\\?|not\\-empty|not\\-every\\?|not=|ns\\-aliases|ns\\-imports|ns\\-interns|ns\\-map|ns\\-name|ns\\-publics|ns\\-refers|ns\\-resolve|ns\\-unalias|ns\\-unmap|nth|nthnext|nthrest|num|number\\?|numerator|object\\-array|odd\\?|parents|partial|partition|partition\\-all|partition\\-by|pcalls|peek|persistent!|pmap|pop|pop!|pop\\-thread\\-bindings|pos\\-int\\?|pos\\?|pr|pr\\-str|prefer\\-method|prefers|primitives\\-classnames|print|print\\-ctor|print\\-dup|print\\-method|print\\-simple|print\\-str|printf|println|println\\-str|prn|prn\\-str|promise|proxy\\-call\\-with\\-super|proxy\\-mappings|proxy\\-name|push\\-thread\\-bindings|qualified\\-ident\\?|qualified\\-keyword\\?|qualified\\-symbol\\?|quot|rand|rand\\-int|rand\\-nth|random\\-sample|range|ratio\\?|rational\\?|rationalize|re\\-find|re\\-groups|re\\-matcher|re\\-matches|re\\-pattern|re\\-seq|read|read+string|read\\-line|read\\-string|reader\\-conditional|reader\\-conditional\\?|realized\\?|record\\?|reduce|reduce\\-kv|reduced|reduced\\?|reductions|ref|ref\\-history\\-count|ref\\-max\\-history|ref\\-min\\-history|ref\\-set|refer|release\\-pending\\-sends|rem|remove|remove\\-all\\-methods|remove\\-method|remove\\-ns|remove\\-tap|remove\\-watch|repeat|repeatedly|replace|replicate|require|requiring\\-resolve|reset!|reset\\-meta!|reset\\-vals!|resolve|rest|restart\\-agent|resultset\\-seq|reverse|reversible\\?|rseq|rsubseq|run!|satisfies\\?|second|select\\-keys|send|send\\-off|send\\-via|seq|seq\\?|seqable\\?|seque|sequence|sequential\\?|set|set\\-agent\\-send\\-executor!|set\\-agent\\-send\\-off\\-executor!|set\\-error\\-handler!|set\\-error\\-mode!|set\\-validator!|set\\?|short|short\\-array|shorts|shuffle|shutdown\\-agents|simple\\-ident\\?|simple\\-keyword\\?|simple\\-symbol\\?|slurp|some|some\\-fn|some\\?|sort|sort\\-by|sorted\\-map|sorted\\-map\\-by|sorted\\-set|sorted\\-set\\-by|sorted\\?|special\\-symbol\\?|spit|split\\-at|split\\-with|str|string\\?|struct|struct\\-map|subs|subseq|subvec|supers|swap!|swap\\-vals!|symbol|symbol\\?|tagged\\-literal|tagged\\-literal\\?|take|take\\-last|take\\-nth|take\\-while|tap>|test|the\\-ns|thread\\-bound\\?|to\\-array|to\\-array\\-2d|trampoline|transduce|transient|tree\\-seq|true\\?|type|unchecked\\-add|unchecked\\-add\\-int|unchecked\\-byte|unchecked\\-char|unchecked\\-dec|unchecked\\-dec\\-int|unchecked\\-divide\\-int|unchecked\\-double|unchecked\\-float|unchecked\\-inc|unchecked\\-inc\\-int|unchecked\\-int|unchecked\\-long|unchecked\\-multiply|unchecked\\-multiply\\-int|unchecked\\-negate|unchecked\\-negate\\-int|unchecked\\-remainder\\-int|unchecked\\-short|unchecked\\-subtract|unchecked\\-subtract\\-int|underive|unquote|unquote\\-splicing|unreduced|unsigned\\-bit\\-shift\\-right|update|update\\-in|update\\-proxy|uri\\?|use|uuid\\?|val|vals|var\\-get|var\\-set|var\\?|vary\\-meta|vec|vector|vector\\-of|vector\\?|volatile!|volatile\\?|vreset!|with\\-bindings\\*|with\\-meta|with\\-redefs\\-fn|xml\\-seq|zero\\?|zipmap)$")) - -(anon_fn_lit - . - (sym_lit) @function.builtin - (#match? @function.builtin "^(\\*|\\*'|\\+|\\+'|\\-|\\-'|\\->ArrayChunk|\\->Eduction|\\->Vec|\\->VecNode|\\->VecSeq|\\-cache\\-protocol\\-fn|\\-reset\\-methods|/|<|<=|=|==|>|>=|PrintWriter\\-on|StackTraceElement\\->vec|Throwable\\->map|accessor|aclone|add\\-classpath|add\\-tap|add\\-watch|agent|agent\\-error|agent\\-errors|aget|alength|alias|all\\-ns|alter|alter\\-meta!|alter\\-var\\-root|ancestors|any\\?|apply|array\\-map|aset|aset\\-boolean|aset\\-byte|aset\\-char|aset\\-double|aset\\-float|aset\\-int|aset\\-long|aset\\-short|assoc|assoc!|assoc\\-in|associative\\?|atom|await|await\\-for|await1|bases|bean|bigdec|bigint|biginteger|bit\\-and|bit\\-and\\-not|bit\\-clear|bit\\-flip|bit\\-not|bit\\-or|bit\\-set|bit\\-shift\\-left|bit\\-shift\\-right|bit\\-test|bit\\-xor|boolean|boolean\\-array|boolean\\?|booleans|bound\\-fn\\*|bound\\?|bounded\\-count|butlast|byte|byte\\-array|bytes|bytes\\?|cast|cat|char|char\\-array|char\\-escape\\-string|char\\-name\\-string|char\\?|chars|chunk|chunk\\-append|chunk\\-buffer|chunk\\-cons|chunk\\-first|chunk\\-next|chunk\\-rest|chunked\\-seq\\?|class|class\\?|clear\\-agent\\-errors|clojure\\-version|coll\\?|commute|comp|comparator|compare|compare\\-and\\-set!|compile|complement|completing|concat|conj|conj!|cons|constantly|construct\\-proxy|contains\\?|count|counted\\?|create\\-ns|create\\-struct|cycle|dec|dec'|decimal\\?|dedupe|default\\-data\\-readers|delay\\?|deliver|denominator|deref|derive|descendants|destructure|disj|disj!|dissoc|dissoc!|distinct|distinct\\?|doall|dorun|double|double\\-array|double\\?|doubles|drop|drop\\-last|drop\\-while|eduction|empty|empty\\?|ensure|ensure\\-reduced|enumeration\\-seq|error\\-handler|error\\-mode|eval|even\\?|every\\-pred|every\\?|ex\\-cause|ex\\-data|ex\\-info|ex\\-message|extend|extenders|extends\\?|false\\?|ffirst|file\\-seq|filter|filterv|find|find\\-keyword|find\\-ns|find\\-protocol\\-impl|find\\-protocol\\-method|find\\-var|first|flatten|float|float\\-array|float\\?|floats|flush|fn\\?|fnext|fnil|force|format|frequencies|future\\-call|future\\-cancel|future\\-cancelled\\?|future\\-done\\?|future\\?|gensym|get|get\\-in|get\\-method|get\\-proxy\\-class|get\\-thread\\-bindings|get\\-validator|group\\-by|halt\\-when|hash|hash\\-combine|hash\\-map|hash\\-ordered\\-coll|hash\\-set|hash\\-unordered\\-coll|ident\\?|identical\\?|identity|ifn\\?|in\\-ns|inc|inc'|indexed\\?|init\\-proxy|inst\\-ms|inst\\-ms\\*|inst\\?|instance\\?|int|int\\-array|int\\?|integer\\?|interleave|intern|interpose|into|into\\-array|ints|isa\\?|iterate|iterator\\-seq|juxt|keep|keep\\-indexed|key|keys|keyword|keyword\\?|last|line\\-seq|list|list\\*|list\\?|load|load\\-file|load\\-reader|load\\-string|loaded\\-libs|long|long\\-array|longs|macroexpand|macroexpand\\-1|make\\-array|make\\-hierarchy|map|map\\-entry\\?|map\\-indexed|map\\?|mapcat|mapv|max|max\\-key|memoize|merge|merge\\-with|meta|method\\-sig|methods|min|min\\-key|mix\\-collection\\-hash|mod|munge|name|namespace|namespace\\-munge|nat\\-int\\?|neg\\-int\\?|neg\\?|newline|next|nfirst|nil\\?|nnext|not|not\\-any\\?|not\\-empty|not\\-every\\?|not=|ns\\-aliases|ns\\-imports|ns\\-interns|ns\\-map|ns\\-name|ns\\-publics|ns\\-refers|ns\\-resolve|ns\\-unalias|ns\\-unmap|nth|nthnext|nthrest|num|number\\?|numerator|object\\-array|odd\\?|parents|partial|partition|partition\\-all|partition\\-by|pcalls|peek|persistent!|pmap|pop|pop!|pop\\-thread\\-bindings|pos\\-int\\?|pos\\?|pr|pr\\-str|prefer\\-method|prefers|primitives\\-classnames|print|print\\-ctor|print\\-dup|print\\-method|print\\-simple|print\\-str|printf|println|println\\-str|prn|prn\\-str|promise|proxy\\-call\\-with\\-super|proxy\\-mappings|proxy\\-name|push\\-thread\\-bindings|qualified\\-ident\\?|qualified\\-keyword\\?|qualified\\-symbol\\?|quot|rand|rand\\-int|rand\\-nth|random\\-sample|range|ratio\\?|rational\\?|rationalize|re\\-find|re\\-groups|re\\-matcher|re\\-matches|re\\-pattern|re\\-seq|read|read+string|read\\-line|read\\-string|reader\\-conditional|reader\\-conditional\\?|realized\\?|record\\?|reduce|reduce\\-kv|reduced|reduced\\?|reductions|ref|ref\\-history\\-count|ref\\-max\\-history|ref\\-min\\-history|ref\\-set|refer|release\\-pending\\-sends|rem|remove|remove\\-all\\-methods|remove\\-method|remove\\-ns|remove\\-tap|remove\\-watch|repeat|repeatedly|replace|replicate|require|requiring\\-resolve|reset!|reset\\-meta!|reset\\-vals!|resolve|rest|restart\\-agent|resultset\\-seq|reverse|reversible\\?|rseq|rsubseq|run!|satisfies\\?|second|select\\-keys|send|send\\-off|send\\-via|seq|seq\\?|seqable\\?|seque|sequence|sequential\\?|set|set\\-agent\\-send\\-executor!|set\\-agent\\-send\\-off\\-executor!|set\\-error\\-handler!|set\\-error\\-mode!|set\\-validator!|set\\?|short|short\\-array|shorts|shuffle|shutdown\\-agents|simple\\-ident\\?|simple\\-keyword\\?|simple\\-symbol\\?|slurp|some|some\\-fn|some\\?|sort|sort\\-by|sorted\\-map|sorted\\-map\\-by|sorted\\-set|sorted\\-set\\-by|sorted\\?|special\\-symbol\\?|spit|split\\-at|split\\-with|str|string\\?|struct|struct\\-map|subs|subseq|subvec|supers|swap!|swap\\-vals!|symbol|symbol\\?|tagged\\-literal|tagged\\-literal\\?|take|take\\-last|take\\-nth|take\\-while|tap>|test|the\\-ns|thread\\-bound\\?|to\\-array|to\\-array\\-2d|trampoline|transduce|transient|tree\\-seq|true\\?|type|unchecked\\-add|unchecked\\-add\\-int|unchecked\\-byte|unchecked\\-char|unchecked\\-dec|unchecked\\-dec\\-int|unchecked\\-divide\\-int|unchecked\\-double|unchecked\\-float|unchecked\\-inc|unchecked\\-inc\\-int|unchecked\\-int|unchecked\\-long|unchecked\\-multiply|unchecked\\-multiply\\-int|unchecked\\-negate|unchecked\\-negate\\-int|unchecked\\-remainder\\-int|unchecked\\-short|unchecked\\-subtract|unchecked\\-subtract\\-int|underive|unquote|unquote\\-splicing|unreduced|unsigned\\-bit\\-shift\\-right|update|update\\-in|update\\-proxy|uri\\?|use|uuid\\?|val|vals|var\\-get|var\\-set|var\\?|vary\\-meta|vec|vector|vector\\-of|vector\\?|volatile!|volatile\\?|vreset!|with\\-bindings\\*|with\\-meta|with\\-redefs\\-fn|xml\\-seq|zero\\?|zipmap)$")) - -;; anonymous function positional arguments -((sym_lit) @operator - (#match? @operator "^%")) - -;; other calls -(list_lit - . - (sym_lit) @function) - -;; interop-ish -(list_lit - . - (sym_lit) @function.method - (#match? @function.method "^\\.")) - -;; other symbols -(sym_lit) @variable - -;; quote -(quoting_lit) @constant.character.escape - -;; syntax quote -["{" "}" "(" ")" "[" "]"] @punctuation.bracket -["~" "~@" "#'" "@"] @operator -(syn_quoting_lit) @constant.character.escape diff --git a/queries/clojure/indents.scm b/queries/clojure/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/clojure/injections.scm b/queries/clojure/injections.scm deleted file mode 100644 index df70752..0000000 --- a/queries/clojure/injections.scm +++ /dev/null @@ -1,7 +0,0 @@ -; src: https://github.com/helix-editor/helix/blob/master/runtime/queries/clojure/injections.scm -; license: https://github.com/helix-editor/helix/blob/master/LICENSE -; spdx: MPL-2.0 - -((regex_lit) @injection.content - (#set! injection.language "regex")) - \ No newline at end of file diff --git a/queries/clojure/locals.scm b/queries/clojure/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/clojure/structure.scm b/queries/clojure/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/clojure/tags.scm b/queries/clojure/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/clojure/textobjects.scm b/queries/clojure/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/cmake/folds.scm b/queries/cmake/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/cmake/highlights.scm b/queries/cmake/highlights.scm deleted file mode 100644 index f03dfd1..0000000 --- a/queries/cmake/highlights.scm +++ /dev/null @@ -1,100 +0,0 @@ -; src: https://github.com/helix-editor/helix/blob/master/runtime/queries/cmake/highlights.scm -; license: https://github.com/helix-editor/helix/blob/master/LICENSE -; spdx: MPL-2.0 - -[ - (quoted_argument) - (bracket_argument) - ] @string - -(variable) @variable - -[ - (bracket_comment) - (line_comment) - ] @comment - -(normal_command (identifier) @function) - -["ENV" "CACHE"] @string.special.symbol -["$" "{" "}" "<" ">"] @punctuation -["(" ")"] @punctuation.bracket - -[ - (function) - (endfunction) - (macro) - (endmacro) - ] @keyword.function - -[ - (if) - (elseif) - (else) - (endif) - ] @keyword.control.conditional - -[ - (foreach) - (endforeach) - (while) - (endwhile) - ] @keyword.control.repeat - -(function_command - (function) - . (argument) @function - (argument)* @variable.parameter - ) - -(macro_command - (macro) - . (argument) @function.macro - (argument)* @variable.parameter - ) - -(normal_command - (identifier) @function.builtin - . (argument) @variable - (#match? @function.builtin "^(?i)(set)$")) - -(normal_command - (identifier) @function.builtin - . (argument) - (argument) @constant - (#match? @constant "^(?:PARENT_SCOPE|CACHE)$") - (#match? @function.builtin "^(?i)(unset)$")) - -(normal_command - (identifier) @function.builtin - . (argument) - . (argument) - (argument) @constant - (#match? @constant "^(?:PARENT_SCOPE|CACHE|FORCE)$") - (#match? @function.builtin "^(?i)(set)$") - ) - -((argument) @constant.builtin.boolean - (#match? @constant.builtin.boolean "^(?i)(?:1|on|yes|true|y|0|off|no|false|n|ignore|notfound|.*-notfound)$") - ) - -(if_command - (if) - (argument) @operator - (#match? @operator "^(?:NOT|AND|OR|COMMAND|POLICY|TARGET|TEST|DEFINED|IN_LIST|EXISTS|IS_NEWER_THAN|IS_DIRECTORY|IS_SYMLINK|IS_ABSOLUTE|MATCHES|LESS|GREATER|EQUAL|LESS_EQUAL|GREATER_EQUAL|STRLESS|STRGREATER|STREQUAL|STRLESS_EQUAL|STRGREATER_EQUAL|VERSION_LESS|VERSION_GREATER|VERSION_EQUAL|VERSION_LESS_EQUAL|VERSION_GREATER_EQUAL)$") -) - -(normal_command - (identifier) @function.builtin - . (argument) - (argument) @constant - (#match? @constant "^(?:ALL|COMMAND|DEPENDS|BYPRODUCTS|WORKING_DIRECTORY|COMMENT|JOB_POOL|VERBATIM|USES_TERMINAL|COMMAND_EXPAND_LISTS|SOURCES)$") - (#match? @function.builtin "^(?i)(add_custom_target)$") - ) - -(normal_command - (identifier) @function.builtin - (argument) @constant - (#match? @constant "^(?:OUTPUT|COMMAND|MAIN_DEPENDENCY|DEPENDS|BYPRODUCTS|IMPLICIT_DEPENDS|WORKING_DIRECTORY|COMMENT|DEPFILE|JOB_POOL|VERBATIM|APPEND|USES_TERMINAL|COMMAND_EXPAND_LISTS)$") - (#match? @function.builtin "^(?i)(add_custom_command)$") - ) diff --git a/queries/cmake/indents.scm b/queries/cmake/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/cmake/injections.scm b/queries/cmake/injections.scm deleted file mode 100644 index b4a9b39..0000000 --- a/queries/cmake/injections.scm +++ /dev/null @@ -1,8 +0,0 @@ -; src: https://github.com/helix-editor/helix/blob/master/runtime/queries/cmake/injections.scm -; license: https://github.com/helix-editor/helix/blob/master/LICENSE -; spdx: MPL-2.0 - -((line_comment) @injection.content - (#set! injection.language "comment")) -((bracket_comment) @injection.content - (#set! injection.language "comment")) \ No newline at end of file diff --git a/queries/cmake/locals.scm b/queries/cmake/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/cmake/structure.scm b/queries/cmake/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/cmake/tags.scm b/queries/cmake/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/cmake/textobjects.scm b/queries/cmake/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/cpp/folds.scm b/queries/cpp/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/cpp/highlights.scm b/queries/cpp/highlights.scm deleted file mode 100644 index 5346934..0000000 --- a/queries/cpp/highlights.scm +++ /dev/null @@ -1,160 +0,0 @@ -; source: https://github.com/helix-editor/helix/blob/master/runtime/queries/cpp/highlights.scm -; licence: https://github.com/helix-editor/helix/blob/master/LICENSE -; spdx: MPL-2.0 - -(storage_class_specifier) @keyword.storage - -"goto" @keyword -"register" @keyword -"break" @keyword -"case" @keyword -"continue" @keyword -"default" @keyword -"do" @keyword -"else" @keyword -"enum" @keyword -"extern" @keyword -"for" @keyword -"if" @keyword -"inline" @keyword -"return" @keyword -"sizeof" @keyword -"struct" @keyword -"switch" @keyword -"typedef" @keyword -"union" @keyword -"volatile" @keyword -"while" @keyword -"const" @keyword - -[ - "#define" - "#elif" - "#else" - "#endif" - "#if" - "#ifdef" - "#ifndef" - "#include" - (preproc_directive) -] @keyword.directive - -"--" @operator -"-" @operator -"-=" @operator -"->" @operator -"=" @operator -"!=" @operator -"*" @operator -"&" @operator -"&&" @operator -"+" @operator -"++" @operator -"+=" @operator -"<" @operator -"==" @operator -">" @operator -"||" @operator -">=" @operator -"<=" @operator - -"." @punctuation.delimiter -";" @punctuation.delimiter - -[(true) (false)] @constant.builtin.boolean - -(enumerator) @type.enum.variant - -(string_literal) @string -(system_lib_string) @string - -(null) @constant -(number_literal) @constant.numeric.integer -(char_literal) @constant.character - -(call_expression - function: (identifier) @function) -(call_expression - function: (field_expression - field: (field_identifier) @function)) -(function_declarator - declarator: (identifier) @function) -(preproc_function_def - name: (identifier) @function.special) - -(field_identifier) @variable.other.member -(statement_identifier) @label -(type_identifier) @type -(primitive_type) @type -(sized_type_specifier) @type - -((identifier) @constant - (#match? @constant "^[A-Z][A-Z\\d_]*$")) - -(identifier) @variable - -(comment) @comment - - -; Functions - -(call_expression - function: (qualified_identifier - name: (identifier) @function)) - -(template_function - name: (identifier) @function) - -(template_method - name: (field_identifier) @function) - -(template_function - name: (identifier) @function) - -(function_declarator - declarator: (qualified_identifier - name: (identifier) @function)) - -(function_declarator - declarator: (qualified_identifier - name: (identifier) @function)) - -(function_declarator - declarator: (field_identifier) @function) - -; Types - -((namespace_identifier) @type - (#match? @type "^[A-Z]")) - -(auto) @type - -; Constants - -(this) @variable.builtin - -; Keywords - -"catch" @keyword -"class" @keyword -"constexpr" @keyword -"delete" @keyword -"explicit" @keyword -"final" @keyword -"friend" @keyword -"mutable" @keyword -"namespace" @keyword -"noexcept" @keyword -"new" @keyword -"override" @keyword -"private" @keyword -"protected" @keyword -"public" @keyword -"template" @keyword -"throw" @keyword -"try" @keyword -"typename" @keyword -"using" @keyword -"virtual" @keyword - -; Strings diff --git a/queries/cpp/indents.scm b/queries/cpp/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/cpp/injections.scm b/queries/cpp/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/cpp/locals.scm b/queries/cpp/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/cpp/structure.scm b/queries/cpp/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/cpp/tags.scm b/queries/cpp/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/cpp/textobjects.scm b/queries/cpp/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/csharp/folds.scm b/queries/csharp/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/csharp/highlights.scm b/queries/csharp/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/csharp/indents.scm b/queries/csharp/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/csharp/injections.scm b/queries/csharp/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/csharp/locals.scm b/queries/csharp/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/csharp/structure.scm b/queries/csharp/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/csharp/tags.scm b/queries/csharp/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/csharp/textobjects.scm b/queries/csharp/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/css/folds.scm b/queries/css/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/css/highlights.scm b/queries/css/highlights.scm deleted file mode 100644 index 5a2b68c..0000000 --- a/queries/css/highlights.scm +++ /dev/null @@ -1,68 +0,0 @@ -; source: https://github.com/helix-editor/helix/blob/master/runtime/queries/css/highlights.scm -; licence: https://github.com/helix-editor/helix/blob/master/LICENSE -; spdx: MPL-2.0 - -(comment) @comment - -(tag_name) @tag -(nesting_selector) @tag -(universal_selector) @tag - -"~" @operator -">" @operator -"+" @operator -"-" @operator -"*" @operator -"/" @operator -"=" @operator -"^=" @operator -"|=" @operator -"~=" @operator -"$=" @operator -"*=" @operator - -"and" @operator -"or" @operator -"not" @operator -"only" @operator - -(attribute_selector (plain_value) @string) -(pseudo_element_selector (tag_name) @attribute) -(pseudo_class_selector (class_name) @attribute) - -(class_name) @variable.other.member -(id_name) @variable.other.member -(namespace_name) @variable.other.member -(property_name) @variable.other.member -(feature_name) @variable.other.member - -(attribute_name) @attribute - -(function_name) @function - -((property_name) @variable - (#match? @variable "^--")) -((plain_value) @variable - (#match? @variable "^--")) - -"@media" @keyword -"@import" @keyword -"@charset" @keyword -"@namespace" @keyword -"@supports" @keyword -"@keyframes" @keyword -(at_keyword) @keyword -(to) @keyword -(from) @keyword -(important) @keyword - -(string_value) @string -(color_value) @string.special - -(integer_value) @constant.numeric.integer -(float_value) @constant.numeric.float -(unit) @type - -"#" @punctuation.delimiter -"," @punctuation.delimiter -":" @punctuation.delimiter \ No newline at end of file diff --git a/queries/css/indents.scm b/queries/css/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/css/injections.scm b/queries/css/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/css/locals.scm b/queries/css/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/css/structure.scm b/queries/css/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/css/tags.scm b/queries/css/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/css/textobjects.scm b/queries/css/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/cue/folds.scm b/queries/cue/folds.scm deleted file mode 100644 index 934b59e..0000000 --- a/queries/cue/folds.scm +++ /dev/null @@ -1,5 +0,0 @@ -[ - (import_spec_list) - (field) - (string) -] @fold diff --git a/queries/cue/highlights.scm b/queries/cue/highlights.scm deleted file mode 100644 index c86a05c..0000000 --- a/queries/cue/highlights.scm +++ /dev/null @@ -1,165 +0,0 @@ -; Includes - -[ - "package" - "import" -] @include - -; Namespaces - -(package_identifier) @namespace - -(import_spec ["." "_"] @punctuation.special) - -[ - (attr_path) - (package_path) -] @text.uri ;; In attributes - -; Attributes - -(attribute) @attribute - -; Conditionals - -"if" @conditional - -; Repeats - -[ - "for" -] @repeat - -(for_clause "_" @punctuation.special) - -; Keywords - -[ - "let" -] @keyword - -[ - "in" -] @keyword.operator - -; Operators - -[ - "+" - "-" - "*" - "/" - "|" - "&" - "||" - "&&" - "==" - "!=" - "<" - "<=" - ">" - ">=" - "=~" - "!~" - "!" - "=" -] @operator - -; Fields & Properties - -(field - (label - (identifier) @field)) - -(selector_expression - (_) - (identifier) @property) - -; Functions - -(call_expression - function: (identifier) @function.call) -(call_expression - function: (selector_expression - (_) - (identifier) @function.call)) -(call_expression - function: (builtin_function) @function.call) - -(builtin_function) @function.builtin - -; Variables - -(identifier) @variable - -; Types - -(primitive_type) @type.builtin - -((identifier) @type - (#match? @type "^(#|_#)")) - -[ - (slice_type) - (pointer_type) -] @type ;; In attributes - -; Punctuation - -[ - "," - ":" -] @punctuation.delimiter - -[ "{" "}" ] @punctuation.bracket - -[ "[" "]" ] @punctuation.bracket - -[ "(" ")" ] @punctuation.bracket - -[ "<" ">" ] @punctuation.bracket - -[ - (ellipsis) - "?" - "!" -] @punctuation.special - -; Literals - -(string) @string - -[ - (escape_char) - (escape_unicode) -] @string.escape - -(number) @number - -(float) @float - -(si_unit - (float) - (_) @symbol) - -(boolean) @boolean - -[ - (null) - (top) - (bottom) -] @constant.builtin - -; Interpolations - -(interpolation "\\(" @punctuation.special (_) ")" @punctuation.special) @none - -(interpolation "\\(" (identifier) @variable ")") - -; Comments - -(comment) @comment @spell - -; Errors - -(ERROR) @error diff --git a/queries/cue/indents.scm b/queries/cue/indents.scm deleted file mode 100644 index 71a03a7..0000000 --- a/queries/cue/indents.scm +++ /dev/null @@ -1,21 +0,0 @@ -[ - (import_spec_list) - (field) -] @indent.begin - -[ - "}" - "]" - ")" -] @indent.end - -[ "{" "}" ] @indent.branch - -[ "[" "]" ] @indent.branch - -[ "(" ")" ] @indent.branch - -[ - (ERROR) - (comment) -] @indent.auto diff --git a/queries/cue/injections.scm b/queries/cue/injections.scm deleted file mode 100644 index 4bb7d67..0000000 --- a/queries/cue/injections.scm +++ /dev/null @@ -1 +0,0 @@ -(comment) @comment diff --git a/queries/cue/locals.scm b/queries/cue/locals.scm deleted file mode 100644 index b99a4fc..0000000 --- a/queries/cue/locals.scm +++ /dev/null @@ -1,34 +0,0 @@ -; Scopes - -[ - (source_file) - (field) - (for_clause) -] @scope - -; References - -(identifier) @reference - -; Definitions - -(import_spec - path: (string) @definition.import) - -(field - (label - (identifier) @definition.field)) - -(package_identifier) @definition.namespace - -(for_clause - (identifier) @definition.variable - (expression)) - -(for_clause - (identifier) - (identifier) @definition.variable - (expression)) - -(let_clause - (identifier) @definition.variable) diff --git a/queries/cue/structure.scm b/queries/cue/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/cue/tags.scm b/queries/cue/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/cue/textobjects.scm b/queries/cue/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/d/folds.scm b/queries/d/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/d/highlights.scm b/queries/d/highlights.scm deleted file mode 100644 index 36f818f..0000000 --- a/queries/d/highlights.scm +++ /dev/null @@ -1,249 +0,0 @@ -; highlights.scm -; -; Highlighting queries for D code for use by Tree-Sitter. -; -; Copyright 2023 Garrett D'Amore -; -; Distributed under the MIT License. -; (See accompanying file LICENSE.txt or https://opensource.org/licenses/MIT) -; SPDX-License-Identifier: MIT - -(string_literal) @string -(int_literal) @number -(float_literal) @number -(char_literal) @number -(identifier) @variable -(at_attribute) @property - -[ - (lazy) - (align) - (extern) - (static) - (abstract) - (final) - (override) - (synchronized) - (auto) - (scope) - (gshared) - (ref) - (deprecated) - (nothrow) - (pure) - (type_ctor) -] @keyword.storage - -(parameter_attribute (return) @keyword.storage) -(parameter_attribute (in) @keyword.storage) -(parameter_attribute (out) @keyword.storage) - -(function_declaration (identifier) @function) - -(call_expression (identifier) @function) -(call_expression (type (identifier) @function)) - -[ - (abstract) - (alias) - (align) - (asm) - (assert) - (auto) - (cast) - (class) - (const) - (debug) - (delegate) - (delete) - (deprecated) - (enum) - (export) - (extern) - (final) - (function) - (immutable) - (import) - (in) - (inout) - (interface) - (invariant) - (is) - (lazy) - ; "macro" - obsolete - (mixin) - (module) - (new) - (nothrow) - (out) - (override) - (package) - (pragma) - (private) - (protected) - (public) - (pure) - (ref) - (scope) - (shared) - (static) - (struct) - (super) - (synchronized) - (template) - (this) - (throw) - (typeid) - (typeof) - (union) - (unittest) - (version) - (with) - (gshared) - (traits) - (vector) - (parameters_) -] @keyword - -[ - (break) - (case) - (catch) - (continue) - (do) - (default) - (finally) - (else) - (for) - (foreach) - (foreach_reverse) - (goto) - (if) - (switch) - (try) - (return) - (while) -] @keyword.control - -[ - (not_in) - (not_is) - "/=" - "/" - ".." - "..." - "&" - "&=" - "&&" - "|" - "|=" - "||" - "-" - "-=" - "--" - "+" - "+=" - "++" - "<" - "<=" - "<<" - "<<=" - ">" - ">=" - ">>=" - ">>>=" - ">>" - ">>>" - "!" - "!=" - "?" - "$" - "=" - "==" - "*" - "*=" - "%" - "%=" - "^" - "^=" - "^^" - "^^=" - "~" - "~=" - "@" - "=>" -] @operator - -[ - ";" - "." - ":" - "," -] @punctuation.delimiter - -[ - "(" - ")" - "[" - "[" - "{" - "}" -] @punctuation.bracket - -[ - (null) - (true) - (false) -] @constant.language - -(special_keyword) @constant.language - -(directive) @keyword.directive -(shebang) @keyword.directive - -(comment) @comment - -[ - (void) - (bool) - (byte) - (ubyte) - (char) - (short) - (ushort) - (wchar) - (dchar) - (int) - (uint) - (long) - (ulong) - (real) - (double) - (float) -] @type - -[ - (cent) - (ucent) - (ireal) - (idouble) - (ifloat) - (creal) - (double) - (cfloat) -] @type.deprecated - -(label (identifier) @label) -(goto_statement (goto) @keyword.control (identifier) @label) - -; builtin types and type aliases -; this covers built-in types, also other cases where the identifier can only -; be a type (such as in an is-expression on a constraint) -(type (identifier) @type) - -; these are listed last, because they override keyword queries -(identity_expression (in) @operator) -(identity_expression (is) @operator) - -; everything after __EOF_ is plain text -(end_file) @text diff --git a/queries/d/indents.scm b/queries/d/indents.scm deleted file mode 100644 index 73ff0b8..0000000 --- a/queries/d/indents.scm +++ /dev/null @@ -1,17 +0,0 @@ -[ - (parameters) - (template_parameters) - (expression_statement) - (aggregate_body) - (function_body) - (scope_statement) - (block_statement) - (case_statement) -] @indent - -[ - (case) - (default) - "}" - "]" -] @outdent diff --git a/queries/d/injections.scm b/queries/d/injections.scm deleted file mode 100644 index 321c90a..0000000 --- a/queries/d/injections.scm +++ /dev/null @@ -1,2 +0,0 @@ -((comment) @injection.content - (#set! injection.language "comment")) diff --git a/queries/d/locals.scm b/queries/d/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/d/structure.scm b/queries/d/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/d/tags.scm b/queries/d/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/d/textobjects.scm b/queries/d/textobjects.scm deleted file mode 100644 index 9ba0905..0000000 --- a/queries/d/textobjects.scm +++ /dev/null @@ -1,9 +0,0 @@ -(function_declaration (function_body) @function.inside) @function.around -(comment) @comment.inside -(comment)+ @comment.around -(class_declaration (aggregate_body) @class.inside) @class.around -(interface_declaration (aggregate_body) @class.inside) @class.around -(struct_declaration (aggregate_body) @class.inside) @class.around -(unittest_declaration (block_statement) @test.inside) @test.around -(parameter) @parameter.inside -(template_parameter) @parameter.inside \ No newline at end of file diff --git a/queries/dart/folds.scm b/queries/dart/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dart/highlights.scm b/queries/dart/highlights.scm deleted file mode 100644 index 14d0ba5..0000000 --- a/queries/dart/highlights.scm +++ /dev/null @@ -1,246 +0,0 @@ -; Methods -; -------------------- - -; NOTE: This query is a bit of a work around for the fact that the dart grammar doesn't -; specifically identify a node as a function call -(((identifier) @function (#match? @function "^_?[a-z]")) - . (selector . (argument_part))) @function - -; Annotations -; -------------------- -(annotation - name: (identifier) @attribute) - -; Operators and Tokens -; -------------------- -(template_substitution - "$" @punctuation.special - "{" @punctuation.special - "}" @punctuation.special -) @none - -(template_substitution - "$" @punctuation.special - (identifier_dollar_escaped) @variable -) @none - -(escape_sequence) @string.escape - -[ - "(" - ")" - "[" - "]" - "{" - "}" -] @punctuation.bracket - -(type_arguments - "<" @punctuation.bracket - ">" @punctuation.bracket) - -(type_parameters - "<" @punctuation.bracket - ">" @punctuation.bracket) - -[ - "@" - "=>" - ".." - "??" - "==" - "?" - ":" - "&&" - "%" - "<" - ">" - "=" - ">=" - "<=" - "||" - "~/" - (increment_operator) - (is_operator) - (prefix_operator) - (equality_operator) - (additive_operator) -] @operator - -; Delimiters -; -------------------- -[ - ";" - "." - "," -] @punctuation.delimiter - -; Types -; -------------------- -((type_identifier) @type.builtin - (#match? @type.builtin "^(int|double|String|bool|List|Set|Map|Runes|Symbol)$")) -(type_identifier) @type -(class_definition - name: (identifier) @type) -(constructor_signature - name: (identifier) @type) -(scoped_identifier - scope: (identifier) @type) -(function_signature - name: (identifier) @function) -(getter_signature - (identifier) @function) -(setter_signature - name: (identifier) @function) -(type_identifier) @type - -((scoped_identifier - scope: (identifier) @type - name: (identifier) @type) - (#match? @type "^[a-zA-Z]")) - -; Enums -; ------------------- -(enum_declaration - name: (identifier) @type) -(enum_constant - name: (identifier) @identifier.constant) - -; Variables -; -------------------- -; var keyword -(inferred_type) @keyword - -((identifier) @type - (#match? @type "^_?[A-Z].*[a-z]")) - -("Function" @type) - -(this) @variable.builtin - -; properties -((selector - (unconditional_assignable_selector (identifier) @function)) - (selector (argument_part (arguments))) -) - -(cascade_section - (cascade_selector (identifier) @function) - (argument_part (arguments)) -) - -(unconditional_assignable_selector - (identifier) @property) - -(conditional_assignable_selector - (identifier) @property) - -(cascade_section - (cascade_selector - (identifier) @property)) - -; assignments -(assignment_expression - left: (assignable_expression) @variable) - -(this) @variable.builtin - -; Parameters -; -------------------- -(formal_parameter - name: (identifier) @identifier.parameter) - -(named_argument - (label (identifier) @identifier.parameter)) - -; Literals -; -------------------- -[ - (hex_integer_literal) - (decimal_integer_literal) - (decimal_floating_point_literal) - ; TODO: inaccessbile nodes - ; (octal_integer_literal) - ; (hex_floating_point_literal) -] @number - -(string_literal) @string -(symbol_literal (identifier) @constant) @constant -(true) @boolean -(false) @boolean -(null_literal) @constant.null - -(documentation_comment) @comment -(comment) @comment - -; Keywords -; -------------------- -[ - (assert_builtin) - (break_builtin) - (const_builtin) - (part_of_builtin) - (rethrow_builtin) - (void_type) - "abstract" - "as" - "async" - "async*" - "await" - "base" - "case" - "catch" - "class" - "continue" - "covariant" - "default" - "deferred" - "do" - "dynamic" - "else" - "enum" - "export" - "extends" - "extension" - "external" - "factory" - "final" - "finally" - "for" - "Function" - "get" - "hide" - "if" - "implements" - "import" - "in" - "interface" - "is" - "late" - "library" - "mixin" - "new" - "on" - "operator" - "part" - "required" - "return" - "sealed" - "set" - "show" - "static" - "super" - "switch" - "sync*" - "throw" - "try" - "typedef" - "var" - "when" - "while" - "with" - "yield" -] @keyword - -; Variable -(identifier) @variable \ No newline at end of file diff --git a/queries/dart/indents.scm b/queries/dart/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dart/injections.scm b/queries/dart/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dart/locals.scm b/queries/dart/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dart/structure.scm b/queries/dart/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dart/tags.scm b/queries/dart/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dart/test.scm b/queries/dart/test.scm deleted file mode 100644 index 92a8daa..0000000 --- a/queries/dart/test.scm +++ /dev/null @@ -1 +0,0 @@ -(if_statement (block)) \ No newline at end of file diff --git a/queries/dart/textobjects.scm b/queries/dart/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dhall/folds.scm b/queries/dhall/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dhall/highlights.scm b/queries/dhall/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dhall/indents.scm b/queries/dhall/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dhall/injections.scm b/queries/dhall/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dhall/locals.scm b/queries/dhall/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dhall/structure.scm b/queries/dhall/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dhall/tags.scm b/queries/dhall/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dhall/textobjects.scm b/queries/dhall/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/diff/folds.scm b/queries/diff/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/diff/highlights.scm b/queries/diff/highlights.scm deleted file mode 100644 index b01f6c5..0000000 --- a/queries/diff/highlights.scm +++ /dev/null @@ -1,9 +0,0 @@ -; These scopes are arbitrary and line up with good colors for the -; `tree-sitter highlight` command. Adapt them as you see fit. - -[(addition) (new_file)] @string -[(deletion) (old_file)] @keyword - -(commit) @constant -(location) @attribute -(command) @variable.builtin diff --git a/queries/diff/indents.scm b/queries/diff/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/diff/injections.scm b/queries/diff/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/diff/locals.scm b/queries/diff/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/diff/structure.scm b/queries/diff/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/diff/tags.scm b/queries/diff/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/diff/textobjects.scm b/queries/diff/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dockerfile/folds.scm b/queries/dockerfile/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dockerfile/highlights.scm b/queries/dockerfile/highlights.scm deleted file mode 100644 index a5d6514..0000000 --- a/queries/dockerfile/highlights.scm +++ /dev/null @@ -1,58 +0,0 @@ -[ - "FROM" - "AS" - "RUN" - "CMD" - "LABEL" - "EXPOSE" - "ENV" - "ADD" - "COPY" - "ENTRYPOINT" - "VOLUME" - "USER" - "WORKDIR" - "ARG" - "ONBUILD" - "STOPSIGNAL" - "HEALTHCHECK" - "SHELL" - "MAINTAINER" - "CROSS_BUILD" - (heredoc_marker) - (heredoc_end) -] @keyword - -[ - ":" - "@" -] @operator - -(comment) @comment - - -(image_spec - (image_tag - ":" @punctuation.special) - (image_digest - "@" @punctuation.special)) - -[ - (double_quoted_string) - (single_quoted_string) - (json_string) - (heredoc_line) -] @string - -(expansion - [ - "$" - "{" - "}" - ] @punctuation.special -) @none - -((variable) @constant - (#match? @constant "^[A-Z][A-Z_0-9]*$")) - - diff --git a/queries/dockerfile/indents.scm b/queries/dockerfile/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dockerfile/injections.scm b/queries/dockerfile/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dockerfile/locals.scm b/queries/dockerfile/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dockerfile/structure.scm b/queries/dockerfile/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dockerfile/tags.scm b/queries/dockerfile/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dockerfile/textobjects.scm b/queries/dockerfile/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dot/folds.scm b/queries/dot/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dot/highlights.scm b/queries/dot/highlights.scm deleted file mode 100644 index ff5bff5..0000000 --- a/queries/dot/highlights.scm +++ /dev/null @@ -1,53 +0,0 @@ -[ - "strict" - "graph" - "digraph" - "subgraph" - "node" - "edge" -] @keyword -(string_literal) @string -(number_literal) @number - -[ - (edgeop) - (operator) -] @operator - -[ - "," - ";" -] @punctuation.delimiter - -[ - "{" - "}" - "[" - "]" - "<" - ">" -] @punctuation.bracket - -(subgraph - id: (id - (identifier) @namespace) -) - -(attribute - name: (id - (identifier) @type) -) - -(attribute - value: (id - (identifier) @constant) -) - -[ -(comment) -(preproc) -] @comment - -(ERROR) @error - -(identifier) @variable diff --git a/queries/dot/indents.scm b/queries/dot/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dot/injections.scm b/queries/dot/injections.scm deleted file mode 100644 index 1bfffa1..0000000 --- a/queries/dot/injections.scm +++ /dev/null @@ -1,2 +0,0 @@ -((html_internal) @injection.content - (#set! injection.language "html")) diff --git a/queries/dot/locals.scm b/queries/dot/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dot/structure.scm b/queries/dot/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dot/tags.scm b/queries/dot/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/dot/textobjects.scm b/queries/dot/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/elixir/folds.scm b/queries/elixir/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/elixir/highlights.scm b/queries/elixir/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/elixir/indents.scm b/queries/elixir/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/elixir/injections.scm b/queries/elixir/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/elixir/locals.scm b/queries/elixir/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/elixir/structure.scm b/queries/elixir/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/elixir/tags.scm b/queries/elixir/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/elixir/textobjects.scm b/queries/elixir/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/elm/folds.scm b/queries/elm/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/elm/highlights.scm b/queries/elm/highlights.scm deleted file mode 100644 index bdc94c7..0000000 --- a/queries/elm/highlights.scm +++ /dev/null @@ -1,88 +0,0 @@ -; source: https://github.com/helix-editor/helix/blob/master/runtime/queries/elm/highlights.scm -; licence: https://github.com/helix-editor/helix/blob/master/LICENSE -; spdx: MPL-2.0 - -; Keywords -[ - "if" - "then" - "else" - "let" - "in" - ] @keyword.control -(case) @keyword.control -(of) @keyword.control - -(colon) @keyword.operator -(backslash) @keyword -(as) @keyword -(port) @keyword -(exposing) @keyword -(alias) @keyword -(infix) @keyword - -(arrow) @keyword.operator -(dot) @keyword.operator - -(port) @keyword - -(type_annotation(lower_case_identifier) @function) -(port_annotation(lower_case_identifier) @function) -(file (value_declaration (function_declaration_left(lower_case_identifier) @function))) - -(field name: (lower_case_identifier) @attribute) -(field_access_expr(lower_case_identifier) @attribute) - -(operator_identifier) @keyword.operator -(eq) @keyword.operator.assignment - -[ - "(" - ")" - "[" - "]" - "{" - "}" -] @punctuation.bracket - -"|" @keyword -"," @punctuation.delimiter - -[ - "|>" -] @keyword - - -(import) @keyword.control.import -(module) @keyword.other - -(number_constant_expr) @constant.numeric - -(type) @type - -(type_declaration(upper_case_identifier) @type) -(type_ref) @type -(type_alias_declaration name: (upper_case_identifier) @type) - -(union_pattern constructor: (upper_case_qid (upper_case_identifier) @label (dot) (upper_case_identifier) @variable.other.member)) -(union_pattern constructor: (upper_case_qid (upper_case_identifier) @variable.other.member)) - -(union_variant(upper_case_identifier) @variable.other.member) -(value_expr name: (value_qid (upper_case_identifier) @label)) -(value_expr (upper_case_qid (upper_case_identifier) @label (dot) (upper_case_identifier) @variable.other.member)) -(value_expr(upper_case_qid(upper_case_identifier)) @variable.other.member) - -; comments -(line_comment) @comment -(block_comment) @comment - -; strings -(string_escape) @constant.character.escape - -(open_quote) @string -(close_quote) @string -(regular_string_part) @string - -(open_char) @constant.character -(close_char) @constant.character - diff --git a/queries/elm/indents.scm b/queries/elm/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/elm/injections.scm b/queries/elm/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/elm/locals.scm b/queries/elm/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/elm/structure.scm b/queries/elm/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/elm/tags.scm b/queries/elm/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/elm/textobjects.scm b/queries/elm/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/erlang/folds.scm b/queries/erlang/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/erlang/highlights.scm b/queries/erlang/highlights.scm deleted file mode 100644 index a2fa588..0000000 --- a/queries/erlang/highlights.scm +++ /dev/null @@ -1,108 +0,0 @@ -; source: https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/erlang/highlights.scm -; licence: https://github.com/nvim-treesitter/nvim-treesitter/blob/master/LICENSE -; spdx: Apache-2.0 - -;; keywoord -[ - "fun" - "div" -] @keyword -;; bracket -[ - "(" - ")" - "{" - "}" - "[" - "]" - "#" -] @punctuation.bracket -;; conditional -[ - "receive" - "if" - "case" - "of" - "when" - "after" - "end" -] @conditional - -[ - "catch" - "try" - "throw" -] @exception -;;; module define -[ - "module" - "export" -] @include -;;; operator -[ - ":" - ":=" - "?" - "!" - "-" - "+" - "=" - "->" - "=>" - "|" - ;;;TODO - "$" - ] @operator - -(comment) @comment -(string) @string -(variable) @variable - -(module_name - (atom) @namespace -) -;;; expr_function_call -(expr_function_call - name: (computed_function_name) @function.call -) - -(expr_function_call - arguments: (atom) @variable -) - -;;; map -(map - (map_entry [ - (atom) - (variable) - ] @variable) -) - - -(tuple (atom) @variable) -(pat_tuple ( pattern (atom) @variable)) - -(computed_function_name) @function -;;; case -(case_clause - pattern: (pattern - (atom) @variable - ) -) -(case_clause - body: (atom) @variable -) - -;;; function -(qualified_function_name - module_name: (atom) @attribute - function_name: (atom) @function -) -;; function -(function_clause - name: (atom) @function) -;;;lambda -(lambda_clause - arguments: - (pattern) @variable -) diff --git a/queries/erlang/indents.scm b/queries/erlang/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/erlang/injections.scm b/queries/erlang/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/erlang/locals.scm b/queries/erlang/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/erlang/structure.scm b/queries/erlang/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/erlang/tags.scm b/queries/erlang/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/erlang/textobjects.scm b/queries/erlang/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fish/folds.scm b/queries/fish/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fish/highlights.scm b/queries/fish/highlights.scm deleted file mode 100644 index 9aad4a7..0000000 --- a/queries/fish/highlights.scm +++ /dev/null @@ -1,64 +0,0 @@ -[(double_quote_string) (single_quote_string)] @string -(escape_sequence) @string.escape - -(comment) @comment - -[(integer) (float)] @number - -[ - "&&" - "||" - "|" - "&|" - "2>|" - "&" - ".." - (direction) - (stream_redirect) -] @operator - -; match operators of test command -(command - name: (word) @function (#match? @function "^test$") - argument: (word) @operator (#match? @operator "^(!?=|-[a-zA-Z]+)$")) - -; match operators of [ command -(command - name: (word) @punctuation.bracket (#match? @punctuation.bracket "^\\[$") - argument: (word) @operator (#match? @operator "^(!?=|-[a-zA-Z]+)$")) - -(variable_expansion) @constant - -[ - "[" - "]" - "{" - "}" - "(" - ")" -] @punctuation.bracket - -"," @punctuation.delimiter - -(function_definition name: [(word) (concatenation)] @function) -(command name: (word) @function) - -[ - "switch" - "case" - "in" - "begin" - "function" - "if" - "else" - "end" - "while" - "for" - "not" - "!" - "and" - "or" - "return" - (break) - (continue) -] @keyword diff --git a/queries/fish/indents.scm b/queries/fish/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fish/injections.scm b/queries/fish/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fish/locals.scm b/queries/fish/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fish/structure.scm b/queries/fish/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fish/tags.scm b/queries/fish/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fish/textobjects.scm b/queries/fish/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fluent/folds.scm b/queries/fluent/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fluent/highlights.scm b/queries/fluent/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fluent/indents.scm b/queries/fluent/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fluent/injections.scm b/queries/fluent/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fluent/locals.scm b/queries/fluent/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fluent/structure.scm b/queries/fluent/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fluent/tags.scm b/queries/fluent/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fluent/textobjects.scm b/queries/fluent/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/forth/folds.scm b/queries/forth/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/forth/highlights.scm b/queries/forth/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/forth/indents.scm b/queries/forth/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/forth/injections.scm b/queries/forth/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/forth/locals.scm b/queries/forth/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/forth/structure.scm b/queries/forth/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/forth/tags.scm b/queries/forth/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/forth/textobjects.scm b/queries/forth/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fortran/folds.scm b/queries/fortran/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fortran/highlights.scm b/queries/fortran/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fortran/indents.scm b/queries/fortran/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fortran/injections.scm b/queries/fortran/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fortran/locals.scm b/queries/fortran/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fortran/structure.scm b/queries/fortran/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fortran/tags.scm b/queries/fortran/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fortran/textobjects.scm b/queries/fortran/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fsharp/folds.scm b/queries/fsharp/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fsharp/highlights.scm b/queries/fsharp/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fsharp/indents.scm b/queries/fsharp/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fsharp/injections.scm b/queries/fsharp/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fsharp/locals.scm b/queries/fsharp/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fsharp/structure.scm b/queries/fsharp/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fsharp/tags.scm b/queries/fsharp/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/fsharp/textobjects.scm b/queries/fsharp/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/git-commit/folds.scm b/queries/git-commit/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/git-commit/highlights.scm b/queries/git-commit/highlights.scm deleted file mode 100644 index 76443b8..0000000 --- a/queries/git-commit/highlights.scm +++ /dev/null @@ -1,30 +0,0 @@ -; # Reference highlights -; -; These highlights use custom scopes that won't exist in the editor or app -; you want to use tree-sitter-git-commit in. These are just for testing -; purposes. When modifying/re-using these queries, be sure to change the -; scopes to the scopes your editor uses. -; -; Note: these highlights also won't look good if you use -; 'tree-sitter highlight' from tree-sitter-cli. - -(subject) @subject -(path) @path -(branch) @branch -(commit) @commit -(item) @item -(header) @header -(message) @message - -(change kind: "new file" @plus) -(change kind: "deleted" @minus) -(change kind: "modified" @delta) -(change kind: "renamed" @delta.renamed) - -(trailer - key: (trailer_key) @trailer.key - value: (trailer_value) @trailer.value) - -[":" "=" "->" (scissors)] @punctuation.delimiter -(comment) @comment - diff --git a/queries/git-commit/indents.scm b/queries/git-commit/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/git-commit/injections.scm b/queries/git-commit/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/git-commit/locals.scm b/queries/git-commit/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/git-commit/structure.scm b/queries/git-commit/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/git-commit/tags.scm b/queries/git-commit/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/git-commit/textobjects.scm b/queries/git-commit/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/git-config/folds.scm b/queries/git-config/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/git-config/highlights.scm b/queries/git-config/highlights.scm deleted file mode 100644 index 8b948ef..0000000 --- a/queries/git-config/highlights.scm +++ /dev/null @@ -1,27 +0,0 @@ -((section_name) @function.builtin - (#eq? @function.builtin "include")) - -((section_header - (section_name) @function.builtin - (subsection_name)) - (#eq? @function.builtin "includeIf")) - -(section_name) @tag -(variable (name) @property) -[(true) (false)] @constant.builtin -(integer) @number - -((string) @string.special.path - (#match? @string.special.path "^(~|./|/)")) - -[(string) (subsection_name)] @string - -[ - "[" - "]" - "\"" -] @punctuation.bracket - -"=" @punctuation.delimiter - -(comment) @comment diff --git a/queries/git-config/indents.scm b/queries/git-config/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/git-config/injections.scm b/queries/git-config/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/git-config/locals.scm b/queries/git-config/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/git-config/structure.scm b/queries/git-config/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/git-config/tags.scm b/queries/git-config/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/git-config/textobjects.scm b/queries/git-config/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/git-rebase/folds.scm b/queries/git-rebase/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/git-rebase/highlights.scm b/queries/git-rebase/highlights.scm deleted file mode 100644 index 140670b..0000000 --- a/queries/git-rebase/highlights.scm +++ /dev/null @@ -1,36 +0,0 @@ -; a rough translation: -; * constant.builtin - git hash -; * constant - a git label -; * keyword - command that acts on commits commits -; * function - command that acts only on labels -; * comment - discarded commentary on a command, has no effect on the rebase -; * string - text used in the rebase operation -; * operator - a 'switch' (used in fixup and merge), either -c or -C at time of writing - -(((command) @keyword - (label) @constant.builtin - (message)? @comment) - (#match? @keyword "^(p|pick|r|reword|e|edit|s|squash|d|drop)$")) - -(((command) @function - (label) @constant - (message)? @comment) - (#match? @function "^(l|label|t|reset)$")) - -((command) @keyword - (#match? @keyword "^(x|exec|b|break)$")) - -(((command) @attribute - (label) @constant.builtin - (message)? @comment) - (#match? @attribute "^(f|fixup)$")) - -(((command) @keyword - (label) @constant.builtin - (label) @constant - (message) @string) - (#match? @keyword "^(m|merge)$")) - -(option) @operator - -(comment) @comment diff --git a/queries/git-rebase/indents.scm b/queries/git-rebase/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/git-rebase/injections.scm b/queries/git-rebase/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/git-rebase/locals.scm b/queries/git-rebase/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/git-rebase/structure.scm b/queries/git-rebase/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/git-rebase/tags.scm b/queries/git-rebase/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/git-rebase/textobjects.scm b/queries/git-rebase/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/gitattributes/folds.scm b/queries/gitattributes/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/gitattributes/highlights.scm b/queries/gitattributes/highlights.scm deleted file mode 100644 index 0b1415b..0000000 --- a/queries/gitattributes/highlights.scm +++ /dev/null @@ -1,9 +0,0 @@ -; inherits: git-ignore - -(attribute) @variable -(value) @string - -(quoted_pattern ["\""] @string) - -(attribute_unset) @operator -(attribute_set_to) @operator diff --git a/queries/gitattributes/indents.scm b/queries/gitattributes/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/gitattributes/injections.scm b/queries/gitattributes/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/gitattributes/locals.scm b/queries/gitattributes/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/gitattributes/structure.scm b/queries/gitattributes/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/gitattributes/tags.scm b/queries/gitattributes/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/gitattributes/textobjects.scm b/queries/gitattributes/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/gleam/folds.scm b/queries/gleam/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/gleam/highlights.scm b/queries/gleam/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/gleam/indents.scm b/queries/gleam/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/gleam/injections.scm b/queries/gleam/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/gleam/locals.scm b/queries/gleam/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/gleam/structure.scm b/queries/gleam/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/gleam/tags.scm b/queries/gleam/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/gleam/textobjects.scm b/queries/gleam/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/glimmer/folds.scm b/queries/glimmer/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/glimmer/highlights.scm b/queries/glimmer/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/glimmer/indents.scm b/queries/glimmer/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/glimmer/injections.scm b/queries/glimmer/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/glimmer/locals.scm b/queries/glimmer/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/glimmer/structure.scm b/queries/glimmer/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/glimmer/tags.scm b/queries/glimmer/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/glimmer/textobjects.scm b/queries/glimmer/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/glsl/folds.scm b/queries/glsl/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/glsl/highlights.scm b/queries/glsl/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/glsl/indents.scm b/queries/glsl/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/glsl/injections.scm b/queries/glsl/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/glsl/locals.scm b/queries/glsl/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/glsl/structure.scm b/queries/glsl/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/glsl/tags.scm b/queries/glsl/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/glsl/textobjects.scm b/queries/glsl/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/gn/folds.scm b/queries/gn/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/gn/highlights.scm b/queries/gn/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/gn/indents.scm b/queries/gn/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/gn/injections.scm b/queries/gn/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/gn/locals.scm b/queries/gn/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/gn/structure.scm b/queries/gn/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/gn/tags.scm b/queries/gn/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/gn/textobjects.scm b/queries/gn/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/go-mod/folds.scm b/queries/go-mod/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/go-mod/highlights.scm b/queries/go-mod/highlights.scm deleted file mode 100644 index 0d3e0ca..0000000 --- a/queries/go-mod/highlights.scm +++ /dev/null @@ -1,18 +0,0 @@ -[ - "require" - "replace" - "go" - "toolchain" - "exclude" - "retract" - "module" -] @keyword - -"=>" @operator - -(comment) @comment - -[ -(version) -(go_version) -] @string diff --git a/queries/go-mod/indents.scm b/queries/go-mod/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/go-mod/injections.scm b/queries/go-mod/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/go-mod/locals.scm b/queries/go-mod/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/go-mod/structure.scm b/queries/go-mod/structure.scm deleted file mode 100644 index 0df01ea..0000000 --- a/queries/go-mod/structure.scm +++ /dev/null @@ -1,29 +0,0 @@ -(require_directive - "require" @structure.anchor - ("(") @structure.open - (")") @structure.close -) - -(exclude_directive - "exclude" @structure.anchor - ("(") @structure.open - (")") @structure.close -) - -(module_directive - "module" @structure.anchor - ("(") @structure.open - (")") @structure.close -) - -(replace_directive - "replace" @structure.anchor - ("(") @structure.open - (")") @structure.close -) - -(retract_directive - "retract" @structure.anchor - ("(") @structure.open - (")") @structure.close -) diff --git a/queries/go-mod/tags.scm b/queries/go-mod/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/go-mod/textobjects.scm b/queries/go-mod/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/go-template/folds.scm b/queries/go-template/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/go-template/highlights.scm b/queries/go-template/highlights.scm deleted file mode 100644 index 78b9804..0000000 --- a/queries/go-template/highlights.scm +++ /dev/null @@ -1,75 +0,0 @@ -; Identifiers - -[ - (field) - (field_identifier) -] @property - -(variable) @variable - -; Function calls - -(function_call - function: (identifier) @function) - -(method_call - method: (selector_expression - field: (field_identifier) @function)) - -; Operators - -"|" @operator -":=" @operator - -; Builtin functions - -((identifier) @function.builtin - (#match? @function.builtin "^(and|call|html|index|slice|js|len|not|or|print|printf|println|urlquery|eq|ne|lt|ge|gt|ge)$")) - -; Delimiters - -"." @punctuation.delimiter -"," @punctuation.delimiter - -"{{" @punctuation.bracket -"}}" @punctuation.bracket -"{{-" @punctuation.bracket -"-}}" @punctuation.bracket -")" @punctuation.bracket -"(" @punctuation.bracket - -; Keywords - -"else" @keyword -"if" @keyword -"range" @keyword -"with" @keyword -"end" @keyword -"template" @keyword -"define" @keyword -"block" @keyword - -; Literals - -[ - (interpreted_string_literal) - (raw_string_literal) - (rune_literal) -] @string - -(escape_sequence) @string.special - -[ - (int_literal) - (float_literal) - (imaginary_literal) -] @number - -[ - (true) - (false) - (nil) -] @constant.builtin - -(comment) @comment -(ERROR) @error diff --git a/queries/go-template/indents.scm b/queries/go-template/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/go-template/injections.scm b/queries/go-template/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/go-template/locals.scm b/queries/go-template/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/go-template/structure.scm b/queries/go-template/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/go-template/tags.scm b/queries/go-template/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/go-template/textobjects.scm b/queries/go-template/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/go-work/folds.scm b/queries/go-work/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/go-work/highlights.scm b/queries/go-work/highlights.scm deleted file mode 100644 index 9c84bcc..0000000 --- a/queries/go-work/highlights.scm +++ /dev/null @@ -1,14 +0,0 @@ -[ - "replace" - "go" - "use" -] @keyword - -"=>" @operator - -(comment) @comment - -[ -(version) -(go_version) -] @string diff --git a/queries/go-work/indents.scm b/queries/go-work/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/go-work/injections.scm b/queries/go-work/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/go-work/locals.scm b/queries/go-work/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/go-work/structure.scm b/queries/go-work/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/go-work/tags.scm b/queries/go-work/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/go-work/textobjects.scm b/queries/go-work/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/go/folds.scm b/queries/go/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/go/highlights.scm b/queries/go/highlights.scm deleted file mode 100644 index 1434357..0000000 --- a/queries/go/highlights.scm +++ /dev/null @@ -1,123 +0,0 @@ -; Function calls - -(call_expression - function: (identifier) @function.builtin - (.match? @function.builtin "^(append|cap|close|complex|copy|delete|imag|len|make|new|panic|print|println|real|recover)$")) - -(call_expression - function: (identifier) @function) - -(call_expression - function: (selector_expression - field: (field_identifier) @function.method)) - -; Function definitions - -(function_declaration - name: (identifier) @function) - -(method_declaration - name: (field_identifier) @function.method) - -; Identifiers - -(type_identifier) @type -(field_identifier) @property -(identifier) @variable - -; Operators - -[ - "--" - "-" - "-=" - ":=" - "!" - "!=" - "..." - "*" - "*" - "*=" - "/" - "/=" - "&" - "&&" - "&=" - "%" - "%=" - "^" - "^=" - "+" - "++" - "+=" - "<-" - "<" - "<<" - "<<=" - "<=" - "=" - "==" - ">" - ">=" - ">>" - ">>=" - "|" - "|=" - "||" - "~" -] @operator - -; Keywords - -[ - "break" - "case" - "chan" - "const" - "continue" - "default" - "defer" - "else" - "fallthrough" - "for" - "func" - "go" - "goto" - "if" - "import" - "interface" - "map" - "package" - "range" - "return" - "select" - "struct" - "switch" - "type" - "var" -] @keyword - -; Literals - -[ - (interpreted_string_literal) - (raw_string_literal) - (rune_literal) -] @string - -(escape_sequence) @escape - -[ - (int_literal) - (float_literal) - (imaginary_literal) -] @number - -[ - (true) - (false) - (nil) - (iota) -] @constant.builtin - -(comment) @comment \ No newline at end of file diff --git a/queries/go/indents.scm b/queries/go/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/go/injections.scm b/queries/go/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/go/locals.scm b/queries/go/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/go/structure.scm b/queries/go/structure.scm deleted file mode 100644 index b86a123..0000000 --- a/queries/go/structure.scm +++ /dev/null @@ -1,175 +0,0 @@ -(import_declaration - "import" @structure.anchor - (import_spec_list - "(" @structure.open - ")" @structure.close - ) -) - -(function_declaration - "func" @structure.anchor - body: (block - "{" @structure.open - "}" @structure.close - ) -) - -(function_declaration - (identifier) @structure.anchor - (parameter_list - "(" @structure.open - ("," @structure.separator (_))* - ")" @structure.close - ) -) - -(method_declaration - "func" @structure.anchor - body: (block - "{" @structure.open - "}" @structure.close - ) -) - -(call_expression - function: (_) @structure.anchor - (argument_list - "(" @structure.open - ("," @structure.separator (_))* - ","? @structure.separator - ")" @structure.close - ) -) - -(composite_literal - type: (_) @structure.anchor - body: (literal_value - "{" @structure.open - ("," @structure.separator (_)?)* - "}" @structure.close - ) -) - -(literal_value - "{" @structure.anchor - ("," @structure.separator (_)?)* - "}" @structure.close -) - -(if_statement - ["if" "else"] @structure.anchor - (block - "{" @structure.open - "}" @structure.close - ) -) - -(if_statement - "else" @structure.anchor - (if_statement - "if" - (block - "{" @structure.open - "}" @structure.close - ) - ) -) - -(expression_switch_statement - "switch" @structure.anchor - "{" @structure.open - "}" @structure.close -) - -(expression_switch_statement - (expression_case - "case" @structure.anchor - ":" @structure.open - ) - . - [ - (expression_case "case" @structure.limit) - (default_case "default" @structure.limit) - ] -) - - (expression_switch_statement - (default_case "default" @structure.anchor) - "}" @structure.limit - ) - -(type_switch_statement - "switch" @structure.anchor - "{" @structure.open - "}" @structure.close -) - -(type_switch_statement - (type_case - "case" @structure.anchor - ":" @structure.open - ) - . - [ - (type_case "case" @structure.limit) - (default_case "default" @structure.limit) - ] -) - -(select_statement - "select" @structure.anchor - "{" @structure.open - "}" @structure.close -) - -(func_literal - "func" @structure.anchor - (block - "{" @structure.open - "}" @structure.close - ) -) - -(for_statement - "for" @structure.anchor - (block - "{" @structure.open - "}" @structure.close - ) -) - -(type_declaration - "type" @structure.anchor - (type_spec - (struct_type - (field_declaration_list - "{" @structure.open - "}" @structure.close - ) - ) - ) -) - -(struct_type - "struct" @structure.anchor - (field_declaration_list - "{" @structure.open - "}" @structure.close - ) -) - -(type_declaration - "type" @structure.anchor - (type_spec - (interface_type - "{" @structure.open - "}" @structure.close - ) - ) -) - -(interface_type - "interface" @structure.anchor - "{" @structure.open - "}" @structure.close -) diff --git a/queries/go/tags.scm b/queries/go/tags.scm deleted file mode 100644 index d87008a..0000000 --- a/queries/go/tags.scm +++ /dev/null @@ -1,30 +0,0 @@ -( - (comment)* @doc - . - (function_declaration - name: (identifier) @name) @definition.function - (#strip! @doc "^//\\s*") - (#set-adjacent! @doc @definition.function) -) - -( - (comment)* @doc - . - (method_declaration - name: (field_identifier) @name) @definition.method - (#strip! @doc "^//\\s*") - (#set-adjacent! @doc @definition.method) -) - -(call_expression - function: [ - (identifier) @name - (parenthesized_expression (identifier) @name) - (selector_expression field: (field_identifier) @name) - (parenthesized_expression (selector_expression field: (field_identifier) @name)) - ]) @reference.call - -(type_spec - name: (type_identifier) @name) @definition.type - -(type_identifier) @name @reference.type diff --git a/queries/go/textobjects.scm b/queries/go/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/graphql/folds.scm b/queries/graphql/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/graphql/highlights.scm b/queries/graphql/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/graphql/indents.scm b/queries/graphql/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/graphql/injections.scm b/queries/graphql/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/graphql/locals.scm b/queries/graphql/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/graphql/structure.scm b/queries/graphql/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/graphql/tags.scm b/queries/graphql/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/graphql/textobjects.scm b/queries/graphql/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/groovy/folds.scm b/queries/groovy/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/groovy/highlights.scm b/queries/groovy/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/groovy/indents.scm b/queries/groovy/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/groovy/injections.scm b/queries/groovy/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/groovy/locals.scm b/queries/groovy/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/groovy/structure.scm b/queries/groovy/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/groovy/tags.scm b/queries/groovy/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/groovy/textobjects.scm b/queries/groovy/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/haskell/folds.scm b/queries/haskell/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/haskell/highlights.scm b/queries/haskell/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/haskell/indents.scm b/queries/haskell/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/haskell/injections.scm b/queries/haskell/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/haskell/locals.scm b/queries/haskell/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/haskell/structure.scm b/queries/haskell/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/haskell/tags.scm b/queries/haskell/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/haskell/textobjects.scm b/queries/haskell/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/haxe/folds.scm b/queries/haxe/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/haxe/highlights.scm b/queries/haxe/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/haxe/indents.scm b/queries/haxe/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/haxe/injections.scm b/queries/haxe/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/haxe/locals.scm b/queries/haxe/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/haxe/structure.scm b/queries/haxe/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/haxe/tags.scm b/queries/haxe/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/haxe/textobjects.scm b/queries/haxe/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/hcl/folds.scm b/queries/hcl/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/hcl/highlights.scm b/queries/hcl/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/hcl/indents.scm b/queries/hcl/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/hcl/injections.scm b/queries/hcl/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/hcl/locals.scm b/queries/hcl/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/hcl/structure.scm b/queries/hcl/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/hcl/tags.scm b/queries/hcl/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/hcl/textobjects.scm b/queries/hcl/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/hosts/folds.scm b/queries/hosts/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/hosts/highlights.scm b/queries/hosts/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/hosts/indents.scm b/queries/hosts/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/hosts/injections.scm b/queries/hosts/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/hosts/locals.scm b/queries/hosts/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/hosts/structure.scm b/queries/hosts/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/hosts/tags.scm b/queries/hosts/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/hosts/textobjects.scm b/queries/hosts/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/html/folds.scm b/queries/html/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/html/highlights.scm b/queries/html/highlights.scm deleted file mode 100644 index 99f39c9..0000000 --- a/queries/html/highlights.scm +++ /dev/null @@ -1,20 +0,0 @@ -(tag_name) @tag -(erroneous_end_tag_name) @tag.error -(doctype) @constant -(attribute_name) @attribute -(comment) @comment - -[ - "\"" - (attribute_value) -] @string - -[ - "<" - ">" - "" - "" - ">" - ">=" - ">>" - ">>=" - ">>>" - ">>>=" - "~" - "^" - "&" - "|" - "^=" - "&=" - "|=" - "&&" - "||" - "??" - "&&=" - "||=" - "??=" -] @operator - -[ - "(" - ")" - "[" - "]" - "{" - "}" -] @punctuation.bracket - -[ - "as" - "async" - "await" - "break" - "case" - "catch" - "class" - "const" - "continue" - "debugger" - "default" - "delete" - "do" - "else" - "export" - "extends" - "finally" - "for" - "from" - "function" - "get" - "if" - "import" - "in" - "instanceof" - "let" - "new" - "of" - "return" - "set" - "static" - "switch" - "target" - "throw" - "try" - "typeof" - "var" - "void" - "while" - "with" - "yield" -] @keyword \ No newline at end of file diff --git a/queries/javascript/indents.scm b/queries/javascript/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/javascript/injections.scm b/queries/javascript/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/javascript/locals.scm b/queries/javascript/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/javascript/structure.scm b/queries/javascript/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/javascript/tags.scm b/queries/javascript/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/javascript/textobjects.scm b/queries/javascript/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/jsdoc/folds.scm b/queries/jsdoc/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/jsdoc/highlights.scm b/queries/jsdoc/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/jsdoc/indents.scm b/queries/jsdoc/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/jsdoc/injections.scm b/queries/jsdoc/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/jsdoc/locals.scm b/queries/jsdoc/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/jsdoc/structure.scm b/queries/jsdoc/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/jsdoc/tags.scm b/queries/jsdoc/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/jsdoc/textobjects.scm b/queries/jsdoc/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/json/folds.scm b/queries/json/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/json/highlights.scm b/queries/json/highlights.scm deleted file mode 100644 index 6df6c9e..0000000 --- a/queries/json/highlights.scm +++ /dev/null @@ -1,20 +0,0 @@ -[ - (true) - (false) -] @constant.builtin.boolean -(null) @constant.builtin -(number) @constant.numeric -(pair - key: (_) @keyword) - -(string) @string -(escape_sequence) @constant.character.escape -(ERROR) @error - -"," @punctuation.delimiter -[ - "[" - "]" - "{" - "}" -] @punctuation.bracket diff --git a/queries/json/indents.scm b/queries/json/indents.scm deleted file mode 100644 index f756e60..0000000 --- a/queries/json/indents.scm +++ /dev/null @@ -1,9 +0,0 @@ -[ - (object) - (array) -] @indent - -[ - "]" - "}" -] @outdent diff --git a/queries/json/injections.scm b/queries/json/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/json/locals.scm b/queries/json/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/json/structure.scm b/queries/json/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/json/tags.scm b/queries/json/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/json/textobjects.scm b/queries/json/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/json5/folds.scm b/queries/json5/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/json5/highlights.scm b/queries/json5/highlights.scm deleted file mode 100644 index 4bf03fe..0000000 --- a/queries/json5/highlights.scm +++ /dev/null @@ -1,11 +0,0 @@ -(string) @string - -(identifier) @constant - -(number) @constant.numeric - -(null) @constant.builtin - -[(true) (false)] @constant.builtin.boolean - -(comment) @comment diff --git a/queries/json5/indents.scm b/queries/json5/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/json5/injections.scm b/queries/json5/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/json5/locals.scm b/queries/json5/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/json5/structure.scm b/queries/json5/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/json5/tags.scm b/queries/json5/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/json5/textobjects.scm b/queries/json5/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/jsonnet/folds.scm b/queries/jsonnet/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/jsonnet/highlights.scm b/queries/jsonnet/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/jsonnet/indents.scm b/queries/jsonnet/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/jsonnet/injections.scm b/queries/jsonnet/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/jsonnet/locals.scm b/queries/jsonnet/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/jsonnet/structure.scm b/queries/jsonnet/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/jsonnet/tags.scm b/queries/jsonnet/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/jsonnet/textobjects.scm b/queries/jsonnet/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/jsx/folds.scm b/queries/jsx/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/jsx/highlights.scm b/queries/jsx/highlights.scm deleted file mode 100644 index 96e0da0..0000000 --- a/queries/jsx/highlights.scm +++ /dev/null @@ -1,250 +0,0 @@ -; source: https://github.com/helix-editor/helix/blob/master/runtime/queries/jsx/highlights.scm -; licence: https://github.com/helix-editor/helix/blob/master/LICENSE -; spdx: MPL-2.0 - -; Special identifiers -;-------------------- - -([ - (identifier) - (shorthand_property_identifier) - (shorthand_property_identifier_pattern) - ] @constant - (#match? @constant "^[A-Z_][A-Z\\d_]+$")) - - -((identifier) @constructor - (#match? @constructor "^[A-Z]")) - -((identifier) @variable.builtin - (#match? @variable.builtin "^(arguments|module|console|window|document)$") - (#is-not? local)) - -((identifier) @function.builtin - (#eq? @function.builtin "require") - (#is-not? local)) - -; Function and method definitions -;-------------------------------- - -(function - name: (identifier) @function) -(function_declaration - name: (identifier) @function) -(method_definition - name: (property_identifier) @function.method) - -(pair - key: (property_identifier) @function.method - value: [(function) (arrow_function)]) - -(assignment_expression - left: (member_expression - property: (property_identifier) @function.method) - right: [(function) (arrow_function)]) - -(variable_declarator - name: (identifier) @function - value: [(function) (arrow_function)]) - -(assignment_expression - left: (identifier) @function - right: [(function) (arrow_function)]) - - -; Function and method calls -;-------------------------- - -(call_expression - function: (identifier) @function) - -(call_expression - function: (member_expression - property: (property_identifier) @function.method)) - -; Variables -;---------- - -(identifier) @variable - -; Properties -;----------- - -(property_identifier) @variable.other.member -(shorthand_property_identifier) @variable.other.member -(shorthand_property_identifier_pattern) @variable.other.member - -; Literals -;--------- - -(this) @variable.builtin -(super) @variable.builtin - -[ - (true) - (false) - (null) - (undefined) -] @constant.builtin - -(comment) @comment - -[ - (string) - (template_string) -] @string - -(regex) @string.regexp -(number) @constant.numeric.integer - -; Tokens -;------- - -(template_substitution - "${" @punctuation.special - "}" @punctuation.special) @embedded - -[ - ";" - "?." - "." - "," -] @punctuation.delimiter - -[ - "-" - "--" - "-=" - "+" - "++" - "+=" - "*" - "*=" - "**" - "**=" - "/" - "/=" - "%" - "%=" - "<" - "<=" - "<<" - "<<=" - "=" - "==" - "===" - "!" - "!=" - "!==" - "=>" - ">" - ">=" - ">>" - ">>=" - ">>>" - ">>>=" - "~" - "^" - "&" - "|" - "^=" - "&=" - "|=" - "&&" - "||" - "??" - "&&=" - "||=" - "??=" - "..." -] @operator - -(ternary_expression ["?" ":"] @operator) - -[ - "(" - ")" - "[" - "]" - "{" - "}" -] @punctuation.bracket - -[ - "as" - "async" - "debugger" - "delete" - "extends" - "function" - "get" - "in" - "instanceof" - "new" - "of" - "set" - "static" - "target" - "try" - "typeof" - "void" - "with" -] @keyword - -[ - "class" - "let" - "const" - "var" -] @keyword.storage.type - -[ - "switch" - "case" - "if" - "else" - "yield" - "throw" - "finally" - "return" - "catch" - "continue" - "while" - "break" - "for" - "do" - "await" -] @keyword.control - -[ - "import" - "default" - "from" - "export" -] @keyword.control.import - -; Highlight component names differently -(jsx_opening_element ((identifier) @constructor - (#match? @constructor "^[A-Z]"))) - -; Handle the dot operator effectively - -(jsx_opening_element ((nested_identifier (identifier) @tag (identifier) @constructor))) - -(jsx_closing_element ((identifier) @constructor - (#match? @constructor "^[A-Z]"))) - -; Handle the dot operator effectively - -(jsx_closing_element ((nested_identifier (identifier) @tag (identifier) @constructor))) - -(jsx_self_closing_element ((identifier) @constructor - (#match? @constructor "^[A-Z]"))) - -; Handle the dot operator effectively - -(jsx_self_closing_element ((nested_identifier (identifier) @tag (identifier) @constructor))) - -; TODO: also tag @punctuation.delimiter? - -(jsx_opening_element (identifier) @tag) -(jsx_closing_element (identifier) @tag) -(jsx_self_closing_element (identifier) @tag) -(jsx_attribute (property_identifier) @variable.other.member) \ No newline at end of file diff --git a/queries/jsx/indents.scm b/queries/jsx/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/jsx/injections.scm b/queries/jsx/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/jsx/locals.scm b/queries/jsx/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/jsx/structure.scm b/queries/jsx/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/jsx/tags.scm b/queries/jsx/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/jsx/textobjects.scm b/queries/jsx/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/julia/folds.scm b/queries/julia/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/julia/highlights.scm b/queries/julia/highlights.scm deleted file mode 100644 index 5c05912..0000000 --- a/queries/julia/highlights.scm +++ /dev/null @@ -1,296 +0,0 @@ -; ---------- -; Primitives -; ---------- - -[ - (line_comment) - (block_comment) -] @comment - -( - ((identifier) @constant.builtin) - (#match? @constant.builtin "^(nothing|missing|undef)$")) - -[ - (true) - (false) -] @constant.builtin.boolean - -(integer_literal) @constant.numeric.integer -(float_literal) @constant.numeric.float - -( - ((identifier) @constant.numeric.float) - (#match? @constant.numeric.float "^((Inf|NaN)(16|32|64)?)$")) - -(character_literal) @constant.character -(escape_sequence) @constant.character.escape - -(string_literal) @string - -(prefixed_string_literal - prefix: (identifier) @function.macro) @string - -(quote_expression - (identifier) @string.special.symbol) - -; ------------------- -; Modules and Imports -; ------------------- - -(module_definition - name: (identifier) @namespace) - -(import_statement - (identifier) @namespace) - -(selected_import - . (identifier) @namespace) - -(scoped_identifier - (identifier) @namespace) - -; ----- -; Types -; ----- - -(abstract_definition - name: (identifier) @type) - -(primitive_definition - name: (identifier) @type) - -(struct_definition - name: (identifier) @type) - -(struct_definition - . (_) - (identifier) @variable.other.member) - -(struct_definition - . (_) - (typed_expression - . (identifier) @variable.other.member)) - -(type_parameter_list - (identifier) @type) - -(constrained_type_parameter - (identifier) @type) - -(subtype_clause - (identifier) @type) - -(typed_expression - (identifier) @type . ) - -(parameterized_identifier - (identifier) @type) - -(type_argument_list - (identifier) @type) - -(where_clause - (identifier) @type) - -; ------------------- -; Function definition -; ------------------- - -( - (function_definition - name: [ - (identifier) @function - (scoped_identifier - (identifier) @namespace - (identifier) @function) - ]) - ; prevent constructors (PascalCase) to be highlighted as functions - (#match? @function "^[^A-Z]")) - -( - (short_function_definition - name: [ - (identifier) @function - (scoped_identifier - (identifier) @namespace - (identifier) @function) - ]) - ; prevent constructors (PascalCase) to be highlighted as functions - (#match? @function "^[^A-Z]")) - -(parameter_list - (identifier) @variable.parameter) - -(typed_parameter - (identifier) @variable.parameter - (identifier)? @type) - -(optional_parameter - . (identifier) @variable.parameter) - -(slurp_parameter - (identifier) @variable.parameter) - -(function_expression - . (identifier) @variable.parameter) - -; --------------- -; Functions calls -; --------------- - -( - (call_expression - (identifier) @function) - ; prevent constructors (PascalCase) to be highlighted as functions - (#match? @function "^[^A-Z]")) - -( - (broadcast_call_expression - (identifier) @function) - (#match? @function "^[^A-Z]")) - -( - (call_expression - (field_expression (identifier) @function .)) - (#match? @function "^[^A-Z]")) - -( - (broadcast_call_expression - (field_expression (identifier) @function .)) - (#match? @function "^[^A-Z]")) - -; ------ -; Macros -; ------ - -(macro_definition - name: (identifier) @function.macro) - -(macro_identifier - "@" @function.macro - (identifier) @function.macro) - -; -------- -; Keywords -; -------- - -(function_definition - ["function" "end"] @keyword.function) - -(if_statement - ["if" "end"] @keyword.control.conditional) -(elseif_clause - ["elseif"] @keyword.control.conditional) -(else_clause - ["else"] @keyword.control.conditional) -(ternary_expression - ["?" ":"] @keyword.control.conditional) - -(for_statement - ["for" "end"] @keyword.control.repeat) -(while_statement - ["while" "end"] @keyword.control.repeat) -(break_statement) @keyword.control.repeat -(continue_statement) @keyword.control.repeat -(for_binding - "in" @keyword.control.repeat) -(for_clause - "for" @keyword.control.repeat) - -(try_statement - ["try" "end" ] @keyword.control.exception) -(finally_clause - "finally" @keyword.control.exception) -(catch_clause - "catch" @keyword.control.exception) - -[ - "export" - "import" - "using" -] @keyword.control.import - -[ - "abstract" - "baremodule" - "begin" - "const" - "do" - "end" - "let" - "macro" - "module" - "mutable" - "primitive" - "quote" - "return" - "struct" - "type" - "where" -] @keyword - -; TODO: fix this -((identifier) @keyword (match? @keyword "global|local")) - -; --------- -; Operators -; --------- - -[ - (operator) - "::" - "<:" - ":" - "=>" - "..." - "$" -] @operator - -; ------------ -; Punctuations -; ------------ - -[ - "." - "," - ";" -] @punctuation.delimiter - -[ - "[" - "]" - "(" - ")" - "{" - "}" -] @punctuation.bracket - -; --------------------- -; Remaining identifiers -; --------------------- - -(const_statement - (variable_declaration - . (identifier) @constant)) - -; SCREAMING_SNAKE_CASE -( - (identifier) @constant - (match? @constant "^[A-Z][A-Z0-9_]*$")) - -; remaining identifiers that start with capital letters should be types (PascalCase) -( - (identifier) @type - (match? @type "^[A-Z]")) - -; Field expressions are either module content or struct fields. -; Module types and constants should already be captured, so this -; assumes the remaining identifiers to be struct fields. -(field_expression - (_) - (identifier) @variable.other.member) - -(identifier) @variable - -; Taken from https://github.com/helix-editor/helix/blob/master/runtime/queries/julia/highlights.scm \ No newline at end of file diff --git a/queries/julia/indents.scm b/queries/julia/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/julia/injections.scm b/queries/julia/injections.scm deleted file mode 100644 index c671e7f..0000000 --- a/queries/julia/injections.scm +++ /dev/null @@ -1,30 +0,0 @@ -( - (source_file - (string_literal) @injection.content - . - [ - (module_definition) - (function_definition) - (macro_definition) - (primitive_definition) - (abstract_definition) - (struct_definition) - (assignment_expression) - (const_statement) - ]) - (#set! injection.language "markdown")) - -( - [ - (line_comment) - (block_comment) - ] @injection.content - (#set! injection.language "comment")) - -( - (prefixed_string_literal - prefix: (identifier) @function.macro) @injection.content - (#eq? @function.macro "re") - (#set! injection.language "regex")) - -;; taken from https://github.com/helix-editor/helix/blob/master/runtime/queries/julia/injections.scm \ No newline at end of file diff --git a/queries/julia/locals.scm b/queries/julia/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/julia/structure.scm b/queries/julia/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/julia/tags.scm b/queries/julia/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/julia/textobjects.scm b/queries/julia/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/just/folds.scm b/queries/just/folds.scm deleted file mode 100644 index cdb5df3..0000000 --- a/queries/just/folds.scm +++ /dev/null @@ -1,10 +0,0 @@ -; File autogenerated by build-queries-nvim.py; do not edit - -; Define collapse points - -([ - (recipe) - (string) - (external_command) -] @fold - (#trim! @fold)) diff --git a/queries/just/highlights.scm b/queries/just/highlights.scm deleted file mode 100644 index 68e03e3..0000000 --- a/queries/just/highlights.scm +++ /dev/null @@ -1,149 +0,0 @@ -; File autogenerated by build-queries-nvim.py; do not edit - -; This file specifies how matched syntax patterns should be highlighted - -[ - "export" - "import" -] @keyword.import - -"mod" @module - -[ - "alias" - "set" - "shell" -] @keyword - -[ - "if" - "else" -] @keyword.conditional - -; Variables - -(value - (identifier) @variable) - -(alias - left: (identifier) @variable) - -(assignment - left: (identifier) @variable) - -; Functions - -(recipe_header - name: (identifier) @function) - -(dependency - name: (identifier) @function.call) - -(dependency_expression - name: (identifier) @function.call) - -(function_call - name: (identifier) @function.call) - -; Parameters - -(parameter - name: (identifier) @variable.parameter) - -; Namespaces - -(module - name: (identifier) @module) - -; Operators - -[ - ":=" - "?" - "==" - "!=" - "=~" - "@" - "=" - "$" - "*" - "+" - "&&" - "@-" - "-@" - "-" - "/" - ":" -] @operator - -; Punctuation - -"," @punctuation.delimiter - -[ - "{" - "}" - "[" - "]" - "(" - ")" - "{{" - "}}" -] @punctuation.bracket - -[ "`" "```" ] @punctuation.special - -; Literals - -(boolean) @boolean - -[ - (string) - (external_command) -] @string - -(escape_sequence) @string.escape - -; Comments - -(comment) @spell @comment - -(shebang) @keyword.directive - -; highlight known settings (filtering does not always work) -(setting - left: (identifier) @keyword - (#any-of? @keyword - "allow-duplicate-recipes" - "dotenv-filename" - "dotenv-load" - "dotenv-path" - "export" - "fallback" - "ignore-comments" - "positional-arguments" - "shell" - "tempdi" - "windows-powershell" - "windows-shell")) - -; highlight known attributes (filtering does not always work) -(attribute - (identifier) @attribute - (#any-of? @attribute - "private" - "allow-duplicate-recipes" - "dotenv-filename" - "dotenv-load" - "dotenv-path" - "export" - "fallback" - "ignore-comments" - "positional-arguments" - "shell" - "tempdi" - "windows-powershell" - "windows-shell")) - -; Numbers are part of the syntax tree, even if disallowed -(numeric_error) @error diff --git a/queries/just/indents.scm b/queries/just/indents.scm deleted file mode 100644 index a7f5228..0000000 --- a/queries/just/indents.scm +++ /dev/null @@ -1,12 +0,0 @@ -; File autogenerated by build-queries-nvim.py; do not edit - -; This query specifies how to auto-indent logical blocks. -; - -[ - (recipe) - (string) - (external_command) -] @indent.begin - -(comment) @indent.auto diff --git a/queries/just/injections.scm b/queries/just/injections.scm deleted file mode 100644 index 60ab8b8..0000000 --- a/queries/just/injections.scm +++ /dev/null @@ -1,104 +0,0 @@ -; File autogenerated by build-queries-nvim.py; do not edit - -; Specify nested languages that live within a `justfile` - -; ================ Always applicable ================ - -((comment) @injection.content - (#set! injection.language "comment")) - -; Highlight the RHS of `=~` as regex -((regex_literal - (_) @injection.content) - (#set! injection.language "regex")) - -; ================ Global defaults ================ - -; Default everything to be bash -(recipe_body - !shebang - (#set! injection.language "bash") - (#set! injection.include-children)) @injection.content - -(external_command - (command_body) @injection.content - (#set! injection.language "bash")) - -; ================ Global language specified ================ -; Global language is set with something like one of the following: -; -; set shell := ["bash", "-c", ...] -; set shell := ["pwsh.exe"] -; -; We can extract the first item of the array, but we can't extract the language -; name from the string with something like regex. So instead we special case -; two things: powershell, which is likely to come with a `.exe` attachment that -; we need to strip, and everything else which hopefully has no extension. We -; separate this with a `#match?`. -; -; Unfortunately, there also isn't a way to allow arbitrary nesting or -; alternatively set "global" capture variables. So we can set this for item- -; level external commands, but not for e.g. external commands within an -; expression without getting _really_ annoying. Should at least look fine since -; they default to bash. Limitations... -; See https://github.com/tree-sitter/tree-sitter/issues/880 for more on that. - -(source_file - (setting "shell" ":=" "[" (string) @_langstr - (#match? @_langstr ".*(powershell|pwsh|cmd).*") - (#set! injection.language "powershell")) - [ - (recipe - (recipe_body - !shebang - (#set! injection.include-children)) @injection.content) - - (assignment - (expression - (value - (external_command - (command_body) @injection.content)))) - ]) - -(source_file - (setting "shell" ":=" "[" (string) @injection.language - (#not-match? @injection.language ".*(powershell|pwsh|cmd).*")) - [ - (recipe - (recipe_body - !shebang - (#set! injection.include-children)) @injection.content) - - (assignment - (expression - (value - (external_command - (command_body) @injection.content)))) - ]) - -; ================ Recipe language specified ================ - -; Set highlighting for recipes that specify a language, using the exact name by default -(recipe_body ; - (shebang ; - (language) @injection.language) - (#not-any-of? @injection.language "python3" "nodejs" "node") - (#set! injection.include-children)) @injection.content - -; Transform some known executables - -; python3 -> python -(recipe_body - (shebang - (language) @_lang) - (#eq? @_lang "python3") - (#set! injection.language "python") - (#set! injection.include-children)) @injection.content - -; node/nodejs -> javascript -(recipe_body - (shebang - (language) @_lang) - (#any-of? @_lang "node" "nodejs") - (#set! injection.language "javascript") - (#set! injection.include-children)) @injection.content diff --git a/queries/just/locals.scm b/queries/just/locals.scm deleted file mode 100644 index ec9bc79..0000000 --- a/queries/just/locals.scm +++ /dev/null @@ -1,42 +0,0 @@ -; File autogenerated by build-queries-nvim.py; do not edit - -; This file tells us about the scope of variables so e.g. local -; variables override global functions with the same name - -; Scope - -(recipe) @local.scope - -; Definitions - -(alias - left: (identifier) @local.definition.var) - -(assignment - left: (identifier) @local.definition.var) - -(module - name: (identifier) @local.definition.namespace) - -(parameter - name: (identifier) @local.definition.var) - -(recipe_header - name: (identifier) @local.definition.function) - -; References - -(alias - right: (identifier) @local.reference) - -(function_call - name: (identifier) @local.reference) - -(dependency - name: (identifier) @local.reference) - -(dependency_expression - name: (identifier) @local.reference) - -(value - (identifier) @local.reference) diff --git a/queries/just/structure.scm b/queries/just/structure.scm deleted file mode 100644 index 1aed6c8..0000000 --- a/queries/just/structure.scm +++ /dev/null @@ -1 +0,0 @@ -; auto-created file diff --git a/queries/just/tags.scm b/queries/just/tags.scm deleted file mode 100644 index 1aed6c8..0000000 --- a/queries/just/tags.scm +++ /dev/null @@ -1 +0,0 @@ -; auto-created file diff --git a/queries/just/textobjects.scm b/queries/just/textobjects.scm deleted file mode 100644 index b010a8e..0000000 --- a/queries/just/textobjects.scm +++ /dev/null @@ -1,18 +0,0 @@ -; File autogenerated by build-queries-nvim.py; do not edit - -; Specify how to navigate around logical blocks in code - -(recipe - (recipe_body) @function.inner) @function.outer - -(parameters - ((_) @parameter.inner . ","? @parameter.outer)) @parameter.outer - -(dependency_expression - (_) @parameter.inner) @parameter.outer - -(function_call - arguments: (sequence - (expression) @parameter.inner) @parameter.outer) @function.outer - -(comment) @comment.outer diff --git a/queries/kdl/folds.scm b/queries/kdl/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/kdl/highlights.scm b/queries/kdl/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/kdl/indents.scm b/queries/kdl/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/kdl/injections.scm b/queries/kdl/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/kdl/locals.scm b/queries/kdl/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/kdl/structure.scm b/queries/kdl/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/kdl/tags.scm b/queries/kdl/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/kdl/textobjects.scm b/queries/kdl/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/kotlin/folds.scm b/queries/kotlin/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/kotlin/highlights.scm b/queries/kotlin/highlights.scm deleted file mode 100644 index 31da4bc..0000000 --- a/queries/kotlin/highlights.scm +++ /dev/null @@ -1,298 +0,0 @@ -; source: https://github.com/helix-editor/helix/blob/master/runtime/queries/kotlin/highlights.scm -; licence: https://github.com/helix-editor/helix/blob/master/LICENSE -; spdx: MPL-2.0 - - -(multi_line_string_literal - "$" @punctuation - (interpolated_identifier) @none) -(multi_line_string_literal - "${" @punctuation - (interpolated_expression) @none - "}" @punctuation.) - -; NOTE: `interpolated_identifier`s can be highlighted in any way -(line_string_literal - "$" @punctuation - (interpolated_identifier) @none) -(line_string_literal - "${" @punctuation - (interpolated_expression) @none - "}" @punctuation) - -[ - "." - "," - ";" - ":" - "::" -] @punctuation.delimiter - -[ - "(" ")" - "[" "]" - "{" "}" -] @punctuation.bracket - -[ - "!" - "!=" - "!==" - "=" - "==" - "===" - ">" - ">=" - "<" - "<=" - "||" - "&&" - "+" - "++" - "+=" - "-" - "--" - "-=" - "*" - "*=" - "/" - "/=" - "%" - "%=" - "?." - "?:" - "!!" - "is" - "!is" - "in" - "!in" - "as" - "as?" - ".." - "->" -] @operator - -;;; Keywords - -(type_alias "typealias" @keyword) -[ - (class_modifier) - (member_modifier) - (function_modifier) - (property_modifier) - (platform_modifier) - (variance_modifier) - (parameter_modifier) - (visibility_modifier) - (reification_modifier) - (inheritance_modifier) -]@keyword - -[ - "val" - "var" - "enum" - "class" - "object" - "interface" -; "typeof" ; NOTE: It is reserved for future use -] @keyword - -("fun") @keyword.function - -(jump_expression) @keyword.control.return - -[ - "if" - "else" - "when" -] @keyword.control.conditional - -[ - "for" - "do" - "while" -] @keyword.control.repeat - -[ - "try" - "catch" - "throw" - "finally" -] @keyword.control.exception - -(annotation - "@" @attribute (use_site_target)? @attribute) -(annotation - (user_type - (type_identifier) @attribute)) -(annotation - (constructor_invocation - (user_type - (type_identifier) @attribute))) - -(file_annotation - "@" @attribute "file" @attribute ":" @attribute) -(file_annotation - (user_type - (type_identifier) @attribute)) -(file_annotation - (constructor_invocation - (user_type - (type_identifier) @attribute))) - -;;; Literals -; NOTE: Escapes not allowed in multi-line strings -(line_string_literal (character_escape_seq) @constant.character.escape) - -[ - (line_string_literal) - (multi_line_string_literal) -] @string - -(character_literal) @constant.character - -[ - "null" ; should be highlighted the same as booleans - (boolean_literal) -] @constant.builtin.boolean - -(real_literal) @constant.numeric.float -[ - (integer_literal) - (long_literal) - (hex_literal) - (bin_literal) - (unsigned_literal) -] @constant.numeric.integer - -[ - (comment) - (shebang_line) -] @comment - -;;; Function calls - -(call_expression - . (simple_identifier) @function.builtin - (#match? @function.builtin "^(arrayOf|arrayOfNulls|byteArrayOf|shortArrayOf|intArrayOf|longArrayOf|ubyteArrayOf|ushortArrayOf|uintArrayOf|ulongArrayOf|floatArrayOf|doubleArrayOf|booleanArrayOf|charArrayOf|emptyArray|mapOf|setOf|listOf|emptyMap|emptySet|emptyList|mutableMapOf|mutableSetOf|mutableListOf|print|println|error|TODO|run|runCatching|repeat|lazy|lazyOf|enumValues|enumValueOf|assert|check|checkNotNull|require|requireNotNull|with|suspend|synchronized)$")) - -; object.function() or object.property.function() -(call_expression - (navigation_expression - (navigation_suffix - (simple_identifier) @function) . )) - -; function() -(call_expression - . (simple_identifier) @function) - -;;; Function definitions - -; lambda parameters -(lambda_literal - (lambda_parameters - (variable_declaration - (simple_identifier) @variable.parameter))) - -(parameter_with_optional_type - (simple_identifier) @variable.parameter) - -(parameter - (simple_identifier) @variable.parameter) - -(anonymous_initializer - ("init") @constructor) - -(constructor_invocation - (user_type - (type_identifier) @constructor)) - -(secondary_constructor - ("constructor") @constructor) -(primary_constructor) @constructor - -(getter - ("get") @function.builtin) -(setter - ("set") @function.builtin) - -(function_declaration - . (simple_identifier) @function) - -; TODO: Separate labeled returns/breaks/continue/super/this -; Must be implemented in the parser first -(label) @label - -(import_header - (identifier - (simple_identifier) @function @_import .) - (import_alias - (type_identifier) @function)? - (#match? @_import "^[a-z]")) - -; The last `simple_identifier` in a `import_header` will always either be a function -; or a type. Classes can appear anywhere in the import path, unlike functions -(import_header - (identifier - (simple_identifier) @type @_import) - (import_alias - (type_identifier) @type)? - (#match? @_import "^[A-Z]")) - -(import_header - "import" @keyword.control.import) - -(package_header - . (identifier)) @namespace - -((type_identifier) @type.builtin - (#match? @function.builtin "^(Byte|Short|Int|Long|UByte|UShort|UInt|ULong|Float|Double|Boolean|Char|String|Array|ByteArray|ShortArray|IntArray|LongArray|UByteArray|UShortArray|UIntArray|ULongArray|FloatArray|DoubleArray|BooleanArray|CharArray|Map|Set|List|EmptyMap|EmptySet|EmptyList|MutableMap|MutableSet|MutableList)$")) - -(type_identifier) @type - -(enum_entry - (simple_identifier) @constant) - -(_ - (navigation_suffix - (simple_identifier) @constant - (#match? @constant "^[A-Z][A-Z0-9_]*$"))) - -; SCREAMING CASE identifiers are assumed to be constants -((simple_identifier) @constant -(#match? @constant "^[A-Z][A-Z0-9_]*$")) - -; id_1.id_2.id_3: `id_2` and `id_3` are assumed as object properties -(_ - (navigation_suffix - (simple_identifier) @variable.other.member)) - -(class_body - (property_declaration - (variable_declaration - (simple_identifier) @variable.other.member))) - -(class_parameter - (simple_identifier) @variable.other.member) - -; `super` keyword inside classes -(super_expression) @variable.builtin - -; `this` this keyword inside classes -(this_expression) @variable.builtin - -;;; Identifiers -; `field` keyword inside property getter/setter -; FIXME: This will highlight the keyword outside of getters and setters -; since tree-sitter does not allow us to check for arbitrary nestation -((simple_identifier) @variable.builtin -(#eq? @variable.builtin "field")) - -; `it` keyword inside lambdas -; FIXME: This will highlight the keyword outside of lambdas since tree-sitter -; does not allow us to check for arbitrary nestation -((simple_identifier) @variable.builtin -(#eq? @variable.builtin "it")) - -(simple_identifier) @variable diff --git a/queries/kotlin/indents.scm b/queries/kotlin/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/kotlin/injections.scm b/queries/kotlin/injections.scm deleted file mode 100644 index 06d39e1..0000000 --- a/queries/kotlin/injections.scm +++ /dev/null @@ -1,40 +0,0 @@ -; source: https://github.com/helix-editor/helix/blob/master/runtime/queries/kotlin/injections.scm -; licence: https://github.com/helix-editor/helix/blob/master/LICENSE -; spdx: MPL-2.0 - -((comment) @injection.content - (#set! injection.language "comment")) - -; There are 3 ways to define a regex -; - "[abc]?".toRegex() -((call_expression - (navigation_expression - ([(line_string_literal) (multi_line_string_literal)] @injection.content) - (navigation_suffix - ((simple_identifier) @_function - (#eq? @_function "toRegex"))))) - (#set! injection.language "regex")) - -; - Regex("[abc]?") -((call_expression - ((simple_identifier) @_function - (#eq? @_function "Regex")) - (call_suffix - (value_arguments - (value_argument - [ (line_string_literal) (multi_line_string_literal) ] @injection.content)))) - (#set! injection.language "regex")) - -; - Regex.fromLiteral("[abc]?") -((call_expression - (navigation_expression - ((simple_identifier) @_class - (#eq? @_class "Regex")) - (navigation_suffix - ((simple_identifier) @_function - (#eq? @_function "fromLiteral")))) - (call_suffix - (value_arguments - (value_argument - [ (line_string_literal) (multi_line_string_literal) ] @injection.content)))) - (#set! injection.language "regex")) diff --git a/queries/kotlin/locals.scm b/queries/kotlin/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/kotlin/structure.scm b/queries/kotlin/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/kotlin/tags.scm b/queries/kotlin/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/kotlin/textobjects.scm b/queries/kotlin/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/latex/folds.scm b/queries/latex/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/latex/highlights.scm b/queries/latex/highlights.scm deleted file mode 100644 index 1ad0d86..0000000 --- a/queries/latex/highlights.scm +++ /dev/null @@ -1,247 +0,0 @@ -; source: https://github.com/nvim-treesitter/nvim-treesitter/blob/965a74f76a2999b81fe3a543fb5e53bf6c84b8b7/queries/latex/highlights.scm -; licence: https://github.com/nvim-treesitter/nvim-treesitter/blob/965a74f76a2999b81fe3a543fb5e53bf6c84b8b7/LICENSE -; spdx: Apache-2.0 - -;; General syntax -(ERROR) @error - -(command_name) @function -(caption - command: _ @function) - -(key_value_pair - key: (_) @parameter - value: (_)) - -[ - (line_comment) - (block_comment) - (comment_environment) -] @comment - -[ - (brack_group) - (brack_group_argc) -] @parameter - -[(operator) "="] @operator - -"\\item" @punctuation.special - -((word) @punctuation.delimiter -(#eq? @punctuation.delimiter "&")) - -["[" "]" "{" "}"] @punctuation.bracket ; "(" ")" has no syntactical meaning in LaTeX - -;; General environments -(begin - command: _ @text.environment - name: (curly_group_text (text) @text.environment.name)) - -(end - command: _ @text.environment - name: (curly_group_text (text) @text.environment.name)) - -;; Definitions and references -(new_command_definition - command: _ @function.macro - declaration: (curly_group_command_name (_) @function)) -(old_command_definition - command: _ @function.macro - declaration: (_) @function) -(let_command_definition - command: _ @function.macro - declaration: (_) @function) - -(environment_definition - command: _ @function.macro - name: (curly_group_text (_) @text.reference)) - -(theorem_definition - command: _ @function.macro - name: (curly_group_text (_) @text.environment.name)) - -(paired_delimiter_definition - command: _ @function.macro - declaration: (curly_group_command_name (_) @function)) - -(label_definition - command: _ @function.macro - name: (curly_group_text (_) @text.reference)) -(label_reference_range - command: _ @function.macro - from: (curly_group_text (_) @text.reference) - to: (curly_group_text (_) @text.reference)) -(label_reference - command: _ @function.macro - names: (curly_group_text_list (_) @text.reference)) -(label_number - command: _ @function.macro - name: (curly_group_text (_) @text.reference) - number: (_) @text.reference) - -(citation - command: _ @function.macro - keys: (curly_group_text_list) @text.reference) - -(glossary_entry_definition - command: _ @function.macro - name: (curly_group_text (_) @text.reference)) -(glossary_entry_reference - command: _ @function.macro - name: (curly_group_text (_) @text.reference)) - -(acronym_definition - command: _ @function.macro - name: (curly_group_text (_) @text.reference)) -(acronym_reference - command: _ @function.macro - name: (curly_group_text (_) @text.reference)) - -(color_definition - command: _ @function.macro - name: (curly_group_text (_) @text.reference)) -(color_reference - command: _ @function.macro - name: (curly_group_text (_) @text.reference)) - -;; Math -[ - (displayed_equation) - (inline_formula) -] @text.math - -(math_environment - (begin - command: _ @text.math - name: (curly_group_text (text) @text.math))) - -(math_environment - (text) @text.math) - -(math_environment - (end - command: _ @text.math - name: (curly_group_text (text) @text.math))) - -;; Sectioning -(title_declaration - command: _ @namespace - options: (brack_group (_) @text.title)? - text: (curly_group (_) @text.title)) - -(author_declaration - command: _ @namespace - authors: (curly_group_author_list - ((author)+ @text.title))) - -(chapter - command: _ @namespace - toc: (brack_group (_) @text.title)? - text: (curly_group (_) @text.title)) - -(part - command: _ @namespace - toc: (brack_group (_) @text.title)? - text: (curly_group (_) @text.title)) - -(section - command: _ @namespace - toc: (brack_group (_) @text.title)? - text: (curly_group (_) @text.title)) - -(subsection - command: _ @namespace - toc: (brack_group (_) @text.title)? - text: (curly_group (_) @text.title)) - -(subsubsection - command: _ @namespace - toc: (brack_group (_) @text.title)? - text: (curly_group (_) @text.title)) - -(paragraph - command: _ @namespace - toc: (brack_group (_) @text.title)? - text: (curly_group (_) @text.title)) - -(subparagraph - command: _ @namespace - toc: (brack_group (_) @text.title)? - text: (curly_group (_) @text.title)) - -;; Beamer frames -(generic_environment - (begin - name: (curly_group_text - (text) @text.environment.name) - (#any-of? @text.environment.name "frame")) - . - (curly_group (_) @text.title)) - -((generic_command - command: (command_name) @_name - arg: (curly_group - (text) @text.title)) - (#eq? @_name "\\frametitle")) - -;; Formatting -((generic_command - command: (command_name) @_name - arg: (curly_group (_) @text.emphasis)) - (#eq? @_name "\\emph")) - -((generic_command - command: (command_name) @_name - arg: (curly_group (_) @text.emphasis)) - (#match? @_name "^(\\\\textit|\\\\mathit)$")) - -((generic_command - command: (command_name) @_name - arg: (curly_group (_) @text.strong)) - (#match? @_name "^(\\\\textbf|\\\\mathbf)$")) - -((generic_command - command: (command_name) @_name - . - arg: (curly_group (_) @text.uri)) - (#match? @_name "^(\\\\url|\\\\href)$")) - -;; File inclusion commands -(class_include - command: _ @include - path: (curly_group_path) @string) - -(package_include - command: _ @include - paths: (curly_group_path_list) @string) - -(latex_include - command: _ @include - path: (curly_group_path) @string) -(import_include - command: _ @include - directory: (curly_group_path) @string - file: (curly_group_path) @string) - -(bibtex_include - command: _ @include - path: (curly_group_path) @string) -(biblatex_include - "\\addbibresource" @include - glob: (curly_group_glob_pattern) @string.regex) - -(graphics_include - command: _ @include - path: (curly_group_path) @string) -(tikz_library_import - command: _ @include - paths: (curly_group_path_list) @string) - -( - (text) @spell - (#not-has-parent? @spell - inline_formula - displayed_equation - ) -) \ No newline at end of file diff --git a/queries/latex/indents.scm b/queries/latex/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/latex/injections.scm b/queries/latex/injections.scm deleted file mode 100644 index d2b924b..0000000 --- a/queries/latex/injections.scm +++ /dev/null @@ -1,25 +0,0 @@ -; source: https://github.com/nvim-treesitter/nvim-treesitter/blob/965a74f76a2999b81fe3a543fb5e53bf6c84b8b7/queries/latex/injections.scm -; licence: https://github.com/nvim-treesitter/nvim-treesitter/blob/965a74f76a2999b81fe3a543fb5e53bf6c84b8b7/LICENSE -; spdx: Apache-2.0 - -[ - (line_comment) - (block_comment) - (comment_environment) -] @comment - -(pycode_environment - code: (source_code) @python -) - -(minted_environment - (begin - language: (curly_group_text - (text) @language)) - (source_code) @content) - -((generic_environment - (begin - name: (curly_group_text - (text) @_env))) @c - (#any-of? @_env "asy" "asydef")) diff --git a/queries/latex/locals.scm b/queries/latex/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/latex/structure.scm b/queries/latex/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/latex/tags.scm b/queries/latex/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/latex/textobjects.scm b/queries/latex/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ld/folds.scm b/queries/ld/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ld/highlights.scm b/queries/ld/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ld/indents.scm b/queries/ld/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ld/injections.scm b/queries/ld/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ld/locals.scm b/queries/ld/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ld/structure.scm b/queries/ld/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ld/tags.scm b/queries/ld/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ld/textobjects.scm b/queries/ld/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/llvm-mir/folds.scm b/queries/llvm-mir/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/llvm-mir/highlights.scm b/queries/llvm-mir/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/llvm-mir/indents.scm b/queries/llvm-mir/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/llvm-mir/injections.scm b/queries/llvm-mir/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/llvm-mir/locals.scm b/queries/llvm-mir/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/llvm-mir/structure.scm b/queries/llvm-mir/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/llvm-mir/tags.scm b/queries/llvm-mir/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/llvm-mir/textobjects.scm b/queries/llvm-mir/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/llvm/folds.scm b/queries/llvm/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/llvm/highlights.scm b/queries/llvm/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/llvm/indents.scm b/queries/llvm/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/llvm/injections.scm b/queries/llvm/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/llvm/locals.scm b/queries/llvm/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/llvm/structure.scm b/queries/llvm/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/llvm/tags.scm b/queries/llvm/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/llvm/textobjects.scm b/queries/llvm/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/log/folds.scm b/queries/log/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/log/highlights.scm b/queries/log/highlights.scm deleted file mode 100644 index 3bb4314..0000000 --- a/queries/log/highlights.scm +++ /dev/null @@ -1,10 +0,0 @@ -(trace) @ui.virtual.inlay-hint -(debug) @diff.plus -(info) @info -(warn) @warning -(error) @error -(year_month_day) @keyword -(time) @constant -(string_literal) @string -(number) @constant.numeric -(constant) @constant.builtin diff --git a/queries/log/indents.scm b/queries/log/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/log/injections.scm b/queries/log/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/log/locals.scm b/queries/log/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/log/structure.scm b/queries/log/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/log/tags.scm b/queries/log/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/log/textobjects.scm b/queries/log/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/lua/folds.scm b/queries/lua/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/lua/highlights.scm b/queries/lua/highlights.scm deleted file mode 100644 index 0f7fd62..0000000 --- a/queries/lua/highlights.scm +++ /dev/null @@ -1,196 +0,0 @@ -;; source: https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/lua -;; license: https://github.com/nvim-treesitter/nvim-treesitter/blob/master/LICENSE -;; spdx: Apache-2.0 - -;; Keywords - -"return" @keyword.return - -[ - "goto" - "in" - "local" -] @keyword - -(label_statement) @label - -(break_statement) @keyword - -(do_statement -[ - "do" - "end" -] @keyword) - -(while_statement -[ - "while" - "do" - "end" -] @repeat) - -(repeat_statement -[ - "repeat" - "until" -] @repeat) - -(if_statement -[ - "if" - "elseif" - "else" - "then" - "end" -] @conditional) - -(elseif_statement -[ - "elseif" - "then" - "end" -] @conditional) - -(else_statement -[ - "else" - "end" -] @conditional) - -(for_statement -[ - "for" - "do" - "end" -] @repeat) - -(function_declaration -[ - "function" - "end" -] @keyword.function) - -(function_definition -[ - "function" - "end" -] @keyword.function) - -;; Operators - -[ - "and" - "not" - "or" -] @keyword.operator - -[ - "+" - "-" - "*" - "/" - "%" - "^" - "#" - "==" - "~=" - "<=" - ">=" - "<" - ">" - "=" - "&" - "~" - "|" - "<<" - ">>" - "//" - ".." -] @operator - -;; Punctuations - -[ - ";" - ":" - "," - "." -] @punctuation.delimiter - -;; Brackets - -[ - "(" - ")" - "[" - "]" - "{" - "}" -] @punctuation.bracket - -;; Variables - -(identifier) @variable - -((identifier) @variable.builtin - (#eq? @variable.builtin "self")) - -;; Constants - -((identifier) @constant - (#lua-match? @constant "^[A-Z][A-Z_0-9]*$")) - -(vararg_expression) @constant - -(nil) @constant.builtin - -[ - (false) - (true) -] @boolean - -;; Tables - -(field name: (identifier) @field) - -(dot_index_expression field: (identifier) @field) - -(table_constructor -[ - "{" - "}" -] @constructor) - -;; Functions - -(parameters (identifier) @parameter) - -(function_call name: (identifier) @function) -(function_declaration name: (identifier) @function) - -(function_call name: (dot_index_expression field: (identifier) @function)) -(function_declaration name: (dot_index_expression field: (identifier) @function)) - -(method_index_expression method: (identifier) @method) - -(function_call - (identifier) @function.builtin - (#any-of? @function.builtin - ;; built-in functions in Lua 5.1 - "assert" "collectgarbage" "dofile" "error" "getfenv" "getmetatable" "ipairs" - "load" "loadfile" "loadstring" "module" "next" "pairs" "pcall" "print" - "rawequal" "rawget" "rawset" "require" "select" "setfenv" "setmetatable" - "tonumber" "tostring" "type" "unpack" "xpcall")) - -;; Others - -(comment) @comment - -(hash_bang_line) @comment - -(number) @number - -(string) @string - -;; Error -(ERROR) @error \ No newline at end of file diff --git a/queries/lua/indents.scm b/queries/lua/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/lua/injections.scm b/queries/lua/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/lua/locals.scm b/queries/lua/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/lua/structure.scm b/queries/lua/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/lua/tags.scm b/queries/lua/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/lua/textobjects.scm b/queries/lua/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/make/folds.scm b/queries/make/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/make/highlights.scm b/queries/make/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/make/indents.scm b/queries/make/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/make/injections.scm b/queries/make/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/make/locals.scm b/queries/make/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/make/structure.scm b/queries/make/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/make/tags.scm b/queries/make/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/make/textobjects.scm b/queries/make/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/markdown.inline/folds.scm b/queries/markdown.inline/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/markdown.inline/highlights.scm b/queries/markdown.inline/highlights.scm deleted file mode 100644 index df8fb3d..0000000 --- a/queries/markdown.inline/highlights.scm +++ /dev/null @@ -1,91 +0,0 @@ -;; From MDeiml/tree-sitter-markdown -[ - (code_span) - (link_title) -] @text.literal - -[ - (emphasis_delimiter) - (code_span_delimiter) -] @punctuation.delimiter - -(emphasis) @text.emphasis - -(strong_emphasis) @text.strong - -[ - (link_destination) - (uri_autolink) -] @text.uri - -[ - (link_label) - (link_text) - (image_description) -] @text.reference - -[ - (backslash_escape) - (hard_line_break) -] @string.escape - -; "(" not part of query because of -; https://github.com/nvim-treesitter/nvim-treesitter/issues/2206 -; TODO: Find better fix for this -(image ["!" "[" "]" "("] @punctuation.delimiter) -(inline_link ["[" "]" "("] @punctuation.delimiter) -(shortcut_link ["[" "]"] @punctuation.delimiter) - -([ - (code_span_delimiter) - (emphasis_delimiter) -] @conceal -(#set! conceal "")) - -; Conceal inline links -(inline_link - [ - "[" - "]" - "(" - (link_destination) - ")" - ] @conceal - (#set! conceal "")) - -; Conceal image links -(image - [ - "!" - "[" - "]" - "(" - (link_destination) - ")" - ] @conceal - (#set! conceal "")) - -; Conceal full reference links -(full_reference_link - [ - "[" - "]" - (link_label) - ] @conceal - (#set! conceal "")) - -; Conceal collapsed reference links -(collapsed_reference_link - [ - "[" - "]" - ] @conceal - (#set! conceal "")) - -; Conceal shortcut links -(shortcut_link - [ - "[" - "]" - ] @conceal - (#set! conceal "")) \ No newline at end of file diff --git a/queries/markdown.inline/indents.scm b/queries/markdown.inline/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/markdown.inline/injections.scm b/queries/markdown.inline/injections.scm deleted file mode 100644 index c137a82..0000000 --- a/queries/markdown.inline/injections.scm +++ /dev/null @@ -1,2 +0,0 @@ - -((html_tag) @injection.content (#set! injection.language "html")) diff --git a/queries/markdown.inline/locals.scm b/queries/markdown.inline/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/markdown.inline/structure.scm b/queries/markdown.inline/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/markdown.inline/tags.scm b/queries/markdown.inline/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/markdown.inline/textobjects.scm b/queries/markdown.inline/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/markdown/folds.scm b/queries/markdown/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/markdown/highlights.scm b/queries/markdown/highlights.scm deleted file mode 100644 index ecd0596..0000000 --- a/queries/markdown/highlights.scm +++ /dev/null @@ -1,58 +0,0 @@ -;From MDeiml/tree-sitter-markdown -(atx_heading (inline) @text.title) -(setext_heading (paragraph) @text.title) - -[ - (atx_h1_marker) - (atx_h2_marker) - (atx_h3_marker) - (atx_h4_marker) - (atx_h5_marker) - (atx_h6_marker) - (setext_h1_underline) - (setext_h2_underline) -] @punctuation.special - -[ - (link_title) - (indented_code_block) - (fenced_code_block) -] @text.literal - -[ - (fenced_code_block_delimiter) -] @punctuation.delimiter - -(code_fence_content) @none - -[ - (link_destination) -] @text.uri - -[ - (link_label) -] @text.reference - -[ - (list_marker_plus) - (list_marker_minus) - (list_marker_star) - (list_marker_dot) - (list_marker_parenthesis) - (thematic_break) -] @punctuation.special - -[ - (block_continuation) - (block_quote_marker) -] @punctuation.special - -[ - (backslash_escape) -] @string.escape - -([ - (info_string) - (fenced_code_block_delimiter) -] @conceal -(#set! conceal "")) \ No newline at end of file diff --git a/queries/markdown/indents.scm b/queries/markdown/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/markdown/injections.scm b/queries/markdown/injections.scm deleted file mode 100644 index 16f7936..0000000 --- a/queries/markdown/injections.scm +++ /dev/null @@ -1,15 +0,0 @@ -; From nvim-treesitter/nvim-treesitter - -(fenced_code_block - (info_string - (language) @injection.language) - (code_fence_content) @injection.content (#set! injection.include-unnamed-children)) - -((html_block) @injection.content (#set! injection.language "html") (#set! injection.include-unnamed-children)) - -([ - (minus_metadata) - (plus_metadata) -] @injection.content (#set! injection.language "yaml") (#set! injection.include-unnamed-children)) - -((inline) @injection.content (#set! injection.language "markdown.inline") (#set! injection.include-unnamed-children)) \ No newline at end of file diff --git a/queries/markdown/locals.scm b/queries/markdown/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/markdown/structure.scm b/queries/markdown/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/markdown/tags.scm b/queries/markdown/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/markdown/textobjects.scm b/queries/markdown/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/meson/folds.scm b/queries/meson/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/meson/highlights.scm b/queries/meson/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/meson/indents.scm b/queries/meson/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/meson/injections.scm b/queries/meson/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/meson/locals.scm b/queries/meson/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/meson/structure.scm b/queries/meson/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/meson/tags.scm b/queries/meson/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/meson/textobjects.scm b/queries/meson/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/nasm/folds.scm b/queries/nasm/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/nasm/highlights.scm b/queries/nasm/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/nasm/indents.scm b/queries/nasm/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/nasm/injections.scm b/queries/nasm/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/nasm/locals.scm b/queries/nasm/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/nasm/structure.scm b/queries/nasm/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/nasm/tags.scm b/queries/nasm/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/nasm/textobjects.scm b/queries/nasm/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/nix/folds.scm b/queries/nix/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/nix/highlights.scm b/queries/nix/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/nix/indents.scm b/queries/nix/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/nix/injections.scm b/queries/nix/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/nix/locals.scm b/queries/nix/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/nix/structure.scm b/queries/nix/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/nix/tags.scm b/queries/nix/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/nix/textobjects.scm b/queries/nix/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/nu/folds.scm b/queries/nu/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/nu/highlights.scm b/queries/nu/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/nu/indents.scm b/queries/nu/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/nu/injections.scm b/queries/nu/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/nu/locals.scm b/queries/nu/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/nu/structure.scm b/queries/nu/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/nu/tags.scm b/queries/nu/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/nu/textobjects.scm b/queries/nu/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ocaml/folds.scm b/queries/ocaml/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ocaml/highlights.scm b/queries/ocaml/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ocaml/indents.scm b/queries/ocaml/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ocaml/injections.scm b/queries/ocaml/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ocaml/locals.scm b/queries/ocaml/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ocaml/structure.scm b/queries/ocaml/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ocaml/tags.scm b/queries/ocaml/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ocaml/textobjects.scm b/queries/ocaml/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/odin/folds.scm b/queries/odin/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/odin/highlights.scm b/queries/odin/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/odin/indents.scm b/queries/odin/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/odin/injections.scm b/queries/odin/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/odin/locals.scm b/queries/odin/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/odin/structure.scm b/queries/odin/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/odin/tags.scm b/queries/odin/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/odin/textobjects.scm b/queries/odin/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/opencl/folds.scm b/queries/opencl/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/opencl/highlights.scm b/queries/opencl/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/opencl/indents.scm b/queries/opencl/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/opencl/injections.scm b/queries/opencl/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/opencl/locals.scm b/queries/opencl/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/opencl/structure.scm b/queries/opencl/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/opencl/tags.scm b/queries/opencl/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/opencl/textobjects.scm b/queries/opencl/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/pascal/folds.scm b/queries/pascal/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/pascal/highlights.scm b/queries/pascal/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/pascal/indents.scm b/queries/pascal/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/pascal/injections.scm b/queries/pascal/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/pascal/locals.scm b/queries/pascal/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/pascal/structure.scm b/queries/pascal/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/pascal/tags.scm b/queries/pascal/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/pascal/textobjects.scm b/queries/pascal/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/passwd/folds.scm b/queries/passwd/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/passwd/highlights.scm b/queries/passwd/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/passwd/indents.scm b/queries/passwd/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/passwd/injections.scm b/queries/passwd/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/passwd/locals.scm b/queries/passwd/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/passwd/structure.scm b/queries/passwd/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/passwd/tags.scm b/queries/passwd/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/passwd/textobjects.scm b/queries/passwd/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/pem/folds.scm b/queries/pem/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/pem/highlights.scm b/queries/pem/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/pem/indents.scm b/queries/pem/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/pem/injections.scm b/queries/pem/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/pem/locals.scm b/queries/pem/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/pem/structure.scm b/queries/pem/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/pem/tags.scm b/queries/pem/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/pem/textobjects.scm b/queries/pem/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/php/folds.scm b/queries/php/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/php/highlights.scm b/queries/php/highlights.scm deleted file mode 100644 index dcf24ba..0000000 --- a/queries/php/highlights.scm +++ /dev/null @@ -1,122 +0,0 @@ -(php_tag) @tag -"?>" @tag - -; Types - -(primitive_type) @type.builtin -(cast_type) @type.builtin -(named_type (name) @type) @type -(named_type (qualified_name) @type) @type - -; Functions - -(array_creation_expression "array" @function.builtin) -(list_literal "list" @function.builtin) - -(method_declaration - name: (name) @function.method) - -(function_call_expression - function: [(qualified_name (name)) (name)] @function) - -(scoped_call_expression - name: (name) @function) - -(member_call_expression - name: (name) @function.method) - -(function_definition - name: (name) @function) - -; Member - -(property_element - (variable_name) @property) - -(member_access_expression - name: (variable_name (name)) @property) -(member_access_expression - name: (name) @property) - -; Variables - -(relative_scope) @variable.builtin - -((name) @constant - (#match? @constant "^_?[A-Z][A-Z\\d_]+$")) -((name) @constant.builtin - (#match? @constant.builtin "^__[A-Z][A-Z\d_]+__$")) - -((name) @constructor - (#match? @constructor "^[A-Z]")) - -((name) @variable.builtin - (#eq? @variable.builtin "this")) - -(variable_name) @variable - -; Basic tokens -[ - (string) - (string_value) - (encapsed_string) - (heredoc) - (heredoc_body) - (nowdoc_body) -] @string -(boolean) @constant.builtin -(null) @constant.builtin -(integer) @number -(float) @number -(comment) @comment - -"$" @operator - -; Keywords - -"abstract" @keyword -"as" @keyword -"break" @keyword -"case" @keyword -"catch" @keyword -"class" @keyword -"const" @keyword -"continue" @keyword -"declare" @keyword -"default" @keyword -"do" @keyword -"echo" @keyword -"else" @keyword -"elseif" @keyword -"enddeclare" @keyword -"endforeach" @keyword -"endif" @keyword -"endswitch" @keyword -"endwhile" @keyword -"extends" @keyword -"final" @keyword -"finally" @keyword -"foreach" @keyword -"function" @keyword -"global" @keyword -"if" @keyword -"implements" @keyword -"include_once" @keyword -"include" @keyword -"insteadof" @keyword -"interface" @keyword -"namespace" @keyword -"new" @keyword -"private" @keyword -"protected" @keyword -"public" @keyword -"require_once" @keyword -"require" @keyword -"return" @keyword -"static" @keyword -"switch" @keyword -"throw" @keyword -"trait" @keyword -"try" @keyword -"use" @keyword -"while" @keyword \ No newline at end of file diff --git a/queries/php/indents.scm b/queries/php/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/php/injections.scm b/queries/php/injections.scm deleted file mode 100644 index 12ce416..0000000 --- a/queries/php/injections.scm +++ /dev/null @@ -1,3 +0,0 @@ -((text) @injection.content - (#set! injection.language "html") - (#set! injection.combined)) \ No newline at end of file diff --git a/queries/php/locals.scm b/queries/php/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/php/structure.scm b/queries/php/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/php/tags.scm b/queries/php/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/php/textobjects.scm b/queries/php/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/pkl/folds.scm b/queries/pkl/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/pkl/highlights.scm b/queries/pkl/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/pkl/indents.scm b/queries/pkl/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/pkl/injections.scm b/queries/pkl/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/pkl/locals.scm b/queries/pkl/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/pkl/structure.scm b/queries/pkl/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/pkl/tags.scm b/queries/pkl/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/pkl/textobjects.scm b/queries/pkl/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/powershell/folds.scm b/queries/powershell/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/powershell/highlights.scm b/queries/powershell/highlights.scm deleted file mode 100644 index 7d15ee8..0000000 --- a/queries/powershell/highlights.scm +++ /dev/null @@ -1,130 +0,0 @@ -"param" @keyword -"dynamicparam" @keyword -"begin" @keyword -"process" @keyword -"end" @keyword -"if" @keyword -"elseif" @keyword -"else" @keyword -"switch" @keyword -"foreach" @keyword -"for" @keyword -"while" @keyword -"do" @keyword -"until" @keyword -"function" @keyword -"filter" @keyword -"workflow" @keyword -"break" @keyword -"continue" @keyword -"throw" @keyword -"return" @keyword -"exit" @keyword -"trap" @keyword -"try" @keyword -"catch" @keyword -"finally" @keyword -"data" @keyword -"inlinescript" @keyword -"parallel" @keyword -"sequence" @keyword -"class" @keyword -"enum" @keyword - -"-as" @operator -"-ccontains" @operator -"-ceq" @operator -"-cge" @operator -"-cgt" @operator -"-cle" @operator -"-clike" @operator -"-clt" @operator -"-cmatch" @operator -"-cne" @operator -"-cnotcontains" @operator -"-cnotlike" @operator -"-cnotmatch" @operator -"-contains" @operator -"-creplace" @operator -"-csplit" @operator -"-eq" @operator -"-ge" @operator -"-gt" @operator -"-icontains" @operator -"-ieq" @operator -"-ige" @operator -"-igt" @operator -"-ile" @operator -"-ilike" @operator -"-ilt" @operator -"-imatch" @operator -"-in" @operator -"-ine" @operator -"-inotcontains" @operator -"-inotlike" @operator -"-inotmatch" @operator -"-ireplace" @operator -"-is" @operator -"-isnot" @operator -"-isplit" @operator -"-join" @operator -"-le" @operator -"-like" @operator -"-lt" @operator -"-match" @operator -"-ne" @operator -"-notcontains" @operator -"-notin" @operator -"-notlike" @operator -"-notmatch" @operator -"-replace" @operator -"-shl" @operator -"-shr" @operator -"-split" @operator -"-and" @operator -"-or" @operator -"-xor" @operator -"-band" @operator -"-bor" @operator -"-bxor" @operator -"+" @operator -"-" @operator -"/" @operator -"\\" @operator -"%" @operator -"*" @operator -".." @operator -"-not" @operator - - -";" @delimiter - -(string_literal) @string - -(integer_literal) @number -(real_literal) @number - -(command - command_name: (command_name) @function) - -(function_statement - (function_name) @function) - -(invokation_expression - (member_name) @function) - -(member_access - (member_name) @property) - -(command_invokation_operator) @operator - -(type_spec) @type - -(variable) @variable - -(comment) @comment - -(array_expression) @array - -(assignment_expression - value: (pipeline) @assignvalue) \ No newline at end of file diff --git a/queries/powershell/indents.scm b/queries/powershell/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/powershell/injections.scm b/queries/powershell/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/powershell/locals.scm b/queries/powershell/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/powershell/structure.scm b/queries/powershell/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/powershell/tags.scm b/queries/powershell/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/powershell/textobjects.scm b/queries/powershell/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/prisma/folds.scm b/queries/prisma/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/prisma/highlights.scm b/queries/prisma/highlights.scm deleted file mode 100644 index 946865c..0000000 --- a/queries/prisma/highlights.scm +++ /dev/null @@ -1,60 +0,0 @@ -; source: https://github.com/victorhqc/tree-sitter-prisma/blob/master/queries/highlights.scm -; https://github.com/victorhqc/tree-sitter-prisma/blob/master/LICENSE -; spdx: MIT - -(string) @string - -(enumeral) @constant -(number) @constant.numeric - -(variable) @variable -(column_type) @type - -(arguments) @variable.other.member -(model_declaration (identifier) @type) - -[ - "datasource" - "enum" - "generator" - "model" - "type" -] @keyword - -[ - (comment) - (developer_comment) -] @comment - -[ - (attribute) - (block_attribute_declaration) - (call_expression) -] @function.builtin - -[ - (true) - (false) - (null) -] @constant.builtin.boolean - -[ - "(" - ")" - "[" - "]" - "{" - "}" -] @punctuation.bracket - -[ - ":" - "," -] @punctuation.delimiter - -[ - "=" - "@" - "@@" - (binary_expression) -] @operator diff --git a/queries/prisma/indents.scm b/queries/prisma/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/prisma/injections.scm b/queries/prisma/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/prisma/locals.scm b/queries/prisma/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/prisma/structure.scm b/queries/prisma/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/prisma/tags.scm b/queries/prisma/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/prisma/textobjects.scm b/queries/prisma/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/protobuf/folds.scm b/queries/protobuf/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/protobuf/highlights.scm b/queries/protobuf/highlights.scm deleted file mode 100644 index bd15e60..0000000 --- a/queries/protobuf/highlights.scm +++ /dev/null @@ -1,62 +0,0 @@ -; source: https://github.com/helix-editor/helix/blob/master/runtime/queries/protobuf/highlights.scm -; licence: https://github.com/helix-editor/helix/blob/master/LICENSE -; spdx: MPL-2.0 - -[ - "syntax" - "package" - "option" - "import" - "service" - "rpc" - "returns" - "message" - "enum" - "oneof" - "repeated" - "reserved" - "to" - "stream" - "extend" - "optional" -] @keyword - -[ - (keyType) - (type) -] @type.builtin - -[ - (mapName) - (enumName) - (messageName) - (extendName) - (serviceName) - (rpcName) -] @type - -[ - (fieldName) - (optionName) -] @variable.other.member -(enumVariantName) @type.enum.variant - -(fullIdent) @namespace - -(intLit) @constant.numeric.integer -(floatLit) @constant.numeric.float -(boolLit) @constant.builtin.boolean -(strLit) @string - -(constant) @constant - -(comment) @comment - -[ - "(" - ")" - "[" - "]" - "{" - "}" -] @punctuation.bracket \ No newline at end of file diff --git a/queries/protobuf/indents.scm b/queries/protobuf/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/protobuf/injections.scm b/queries/protobuf/injections.scm deleted file mode 100644 index 8454f9f..0000000 --- a/queries/protobuf/injections.scm +++ /dev/null @@ -1,6 +0,0 @@ -; source: https://github.com/helix-editor/helix/blob/master/runtime/queries/protobuf/injections.scm -; licence: https://github.com/helix-editor/helix/blob/master/LICENSE -; spdx: MPL-2.0 - -((comment) @injection.content - (#set! injection.language "comment")) \ No newline at end of file diff --git a/queries/protobuf/locals.scm b/queries/protobuf/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/protobuf/structure.scm b/queries/protobuf/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/protobuf/tags.scm b/queries/protobuf/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/protobuf/textobjects.scm b/queries/protobuf/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/python/folds.scm b/queries/python/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm deleted file mode 100644 index 595f1e5..0000000 --- a/queries/python/highlights.scm +++ /dev/null @@ -1,132 +0,0 @@ -; Identifier naming conventions - -((identifier) @constructor - (#match? @constructor "^[A-Z]")) - -((identifier) @constant - (#match? @constant "^[A-Z][A-Z_]*$")) - -; Builtin functions - -((call - function: (identifier) @function.builtin) - (#match? - @function.builtin - "^(abs|all|any|ascii|bin|bool|breakpoint|bytearray|bytes|callable|chr|classmethod|compile|complex|delattr|dict|dir|divmod|enumerate|eval|exec|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|isinstance|issubclass|iter|len|list|locals|map|max|memoryview|min|next|object|oct|open|ord|pow|print|property|range|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|vars|zip|__import__)$")) - -; Function calls - -(decorator) @function - -(call - function: (attribute attribute: (identifier) @function.method)) -(call - function: (identifier) @function) - -; Function definitions - -(function_definition - name: (identifier) @function) - -(identifier) @variable -(attribute attribute: (identifier) @property) -(type (identifier) @type) - -; Literals - -[ - (none) - (true) - (false) -] @constant.builtin - -[ - (integer) - (float) -] @number - -(comment) @comment -(string) @string -(escape_sequence) @escape - -(interpolation - "{" @punctuation.special - "}" @punctuation.special) @embedded - -[ - "-" - "-=" - "!=" - "*" - "**" - "**=" - "*=" - "/" - "//" - "//=" - "/=" - "&" - "&=" - "%" - "%=" - "^" - "^=" - "+" - "->" - "+=" - "<" - "<<" - "<<=" - "<=" - "<>" - "=" - ":=" - "==" - ">" - ">=" - ">>" - ">>=" - "|" - "|=" - "~" - "@=" - "and" - "in" - "is" - "not" - "or" -] @operator - -[ - "as" - "assert" - "async" - "await" - "break" - "class" - "continue" - "def" - "del" - "elif" - "else" - "except" - "exec" - "finally" - "for" - "from" - "global" - "if" - "import" - "lambda" - "nonlocal" - "pass" - "print" - "raise" - "return" - "try" - "while" - "with" - "yield" - "match" - "case" -] @keyword \ No newline at end of file diff --git a/queries/python/indents.scm b/queries/python/indents.scm deleted file mode 100644 index 67bc76a..0000000 --- a/queries/python/indents.scm +++ /dev/null @@ -1,84 +0,0 @@ -[ - (list) - (tuple) - (dictionary) - (set) - - (if_statement) - (for_statement) - (while_statement) - (with_statement) - (try_statement) - (match_statement) - (case_clause) - (import_from_statement) - - (parenthesized_expression) - (generator_expression) - (list_comprehension) - (set_comprehension) - (dictionary_comprehension) - - (tuple_pattern) - (list_pattern) - (argument_list) - (parameters) - (binary_operator) - - (function_definition) - (class_definition) -] @indent - -; Workaround for the tree-sitter grammar creating large errors when a -; try_statement is missing the except/finally clause -(ERROR - "try" - . - ":" @indent @extend) -(ERROR - . - "def") @indent @extend -(ERROR - (block) @indent @extend - (#set! "scope" "all")) - -[ - (if_statement) - (for_statement) - (while_statement) - (with_statement) - (try_statement) - (match_statement) - (case_clause) - - (function_definition) - (class_definition) -] @extend - -[ - (return_statement) - (break_statement) - (continue_statement) - (raise_statement) - (pass_statement) -] @extend.prevent-once - -[ - ")" - "]" - "}" -] @outdent -(elif_clause - "elif" @outdent) -(else_clause - "else" @outdent) - -(parameters - . - (identifier) @anchor - (#set! "scope" "tail")) @align -(argument_list - . - (_) @anchor - (#set! "scope" "tail")) @align - diff --git a/queries/python/injections.scm b/queries/python/injections.scm deleted file mode 100644 index 321c90a..0000000 --- a/queries/python/injections.scm +++ /dev/null @@ -1,2 +0,0 @@ -((comment) @injection.content - (#set! injection.language "comment")) diff --git a/queries/python/locals.scm b/queries/python/locals.scm deleted file mode 100644 index f7d5937..0000000 --- a/queries/python/locals.scm +++ /dev/null @@ -1,44 +0,0 @@ -;; Scopes - -[ - (module) - (function_definition) - (lambda) -] @local.scope - -;; Definitions - -; Parameters -(parameters - (identifier) @local.definition) -(parameters - (typed_parameter - (identifier) @local.definition)) -(parameters - (default_parameter - name: (identifier) @local.definition)) -(parameters - (typed_default_parameter - name: (identifier) @local.definition)) -(parameters - (list_splat_pattern ; *args - (identifier) @local.definition)) -(parameters - (dictionary_splat_pattern ; **kwargs - (identifier) @local.definition)) - -(lambda_parameters - (identifier) @local.definition) - -; Imports -(import_statement - name: (dotted_name - (identifier) @local.definition)) - -(aliased_import - alias: (identifier) @local.definition) - -;; References - -(identifier) @local.reference - diff --git a/queries/python/structure.scm b/queries/python/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/python/tags.scm b/queries/python/tags.scm deleted file mode 100644 index c5ca827..0000000 --- a/queries/python/tags.scm +++ /dev/null @@ -1,12 +0,0 @@ -(class_definition - name: (identifier) @name) @definition.class - -(function_definition - name: (identifier) @name) @definition.function - -(call - function: [ - (identifier) @name - (attribute - attribute: (identifier) @name) - ]) @reference.call diff --git a/queries/python/textobjects.scm b/queries/python/textobjects.scm deleted file mode 100644 index 966e474..0000000 --- a/queries/python/textobjects.scm +++ /dev/null @@ -1,23 +0,0 @@ -(function_definition - body: (block)? @function.inside) @function.around - -(class_definition - body: (block)? @class.inside) @class.around - -(parameters - ((_) @parameter.inside . ","? @parameter.around) @parameter.around) - -(lambda_parameters - ((_) @parameter.inside . ","? @parameter.around) @parameter.around) - -(argument_list - ((_) @parameter.inside . ","? @parameter.around) @parameter.around) - -(comment) @comment.inside - -(comment)+ @comment.around - -((function_definition - name: (identifier) @_name - body: (block)? @test.inside) @test.around - (#match? @_name "^test_")) diff --git a/queries/ql/folds.scm b/queries/ql/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ql/highlights.scm b/queries/ql/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ql/indents.scm b/queries/ql/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ql/injections.scm b/queries/ql/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ql/locals.scm b/queries/ql/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ql/structure.scm b/queries/ql/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ql/tags.scm b/queries/ql/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ql/textobjects.scm b/queries/ql/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/r/folds.scm b/queries/r/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/r/highlights.scm b/queries/r/highlights.scm deleted file mode 100644 index 6bb9043..0000000 --- a/queries/r/highlights.scm +++ /dev/null @@ -1,128 +0,0 @@ -; source: https://raw.githubusercontent.com/r-lib/tree-sitter-r/1589b7d83441c57cd77c5188e44f2af40d45ff49/queries/highlights.scm -; license: https://github.com/r-lib/tree-sitter-r/blob/1589b7d83441c57cd77c5188e44f2af40d45ff49/LICENSE -; spdx: mit -; highlights.scm - - -; Literals - -(integer) @number - -(float) @float - -(complex) @number - -(string) @string -(string (escape_sequence) @string.escape) - -(comment) @comment - -(identifier) @variable - -(formal_parameters (identifier) @parameter) - -; Operators -[ - "=" - "<-" - "<<-" - "->>" - "->" -] @operator - -(unary operator: [ - "-" - "+" - "!" - "~" -] @operator) - -(binary operator: [ - "-" - "+" - "*" - "/" - "^" - "<" - ">" - "<=" - ">=" - "==" - "!=" - "||" - "|" - "&&" - "&" - ":" - "~" -] @operator) - -[ - "|>" - (special) -] @operator - -[ - "(" - ")" - "[" - "]" - "{" - "}" -] @punctuation.bracket - -(dollar "$" @operator) - -(subset2 - "[[" @punctuation.bracket - "]]" @punctuation.bracket) - -[ - "in" - (dots) - (break) - (next) - (inf) -] @keyword - -[ - (nan) - (na) - (null) -] @type.builtin - -[ - "if" - "else" -] @conditional - -[ - "while" - "repeat" - "for" -] @repeat - -[ - (true) - (false) -] @boolean - -"function" @keyword.function - -(call function: (identifier) @function) -(call arguments: - (arguments - name: (identifier) @parameter )) - -(lambda_function "\\" @operator) - -(namespace_get function: (identifier) @method) -(namespace_get_internal function: (identifier) @method) - -(namespace_get namespace: (identifier) @namespace - "::" @operator) -(namespace_get_internal namespace: (identifier) @namespace - ":::" @operator) - -; Error -(ERROR) @error diff --git a/queries/r/indents.scm b/queries/r/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/r/injections.scm b/queries/r/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/r/locals.scm b/queries/r/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/r/structure.scm b/queries/r/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/r/tags.scm b/queries/r/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/r/textobjects.scm b/queries/r/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rcl/folds.scm b/queries/rcl/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rcl/highlights.scm b/queries/rcl/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rcl/indents.scm b/queries/rcl/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rcl/injections.scm b/queries/rcl/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rcl/locals.scm b/queries/rcl/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rcl/structure.scm b/queries/rcl/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rcl/tags.scm b/queries/rcl/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rcl/textobjects.scm b/queries/rcl/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/regex/folds.scm b/queries/regex/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/regex/highlights.scm b/queries/regex/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/regex/indents.scm b/queries/regex/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/regex/injections.scm b/queries/regex/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/regex/locals.scm b/queries/regex/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/regex/structure.scm b/queries/regex/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/regex/tags.scm b/queries/regex/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/regex/textobjects.scm b/queries/regex/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rego/folds.scm b/queries/rego/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rego/highlights.scm b/queries/rego/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rego/indents.scm b/queries/rego/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rego/injections.scm b/queries/rego/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rego/locals.scm b/queries/rego/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rego/structure.scm b/queries/rego/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rego/tags.scm b/queries/rego/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rego/textobjects.scm b/queries/rego/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ron/folds.scm b/queries/ron/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ron/highlights.scm b/queries/ron/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ron/indents.scm b/queries/ron/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ron/injections.scm b/queries/ron/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ron/locals.scm b/queries/ron/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ron/structure.scm b/queries/ron/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ron/tags.scm b/queries/ron/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ron/textobjects.scm b/queries/ron/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rst/folds.scm b/queries/rst/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rst/highlights.scm b/queries/rst/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rst/indents.scm b/queries/rst/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rst/injections.scm b/queries/rst/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rst/locals.scm b/queries/rst/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rst/structure.scm b/queries/rst/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rst/tags.scm b/queries/rst/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rst/textobjects.scm b/queries/rst/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ruby/folds.scm b/queries/ruby/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ruby/highlights.scm b/queries/ruby/highlights.scm deleted file mode 100644 index 14736ee..0000000 --- a/queries/ruby/highlights.scm +++ /dev/null @@ -1,154 +0,0 @@ -; Keywords - -[ - "alias" - "and" - "begin" - "break" - "case" - "class" - "def" - "do" - "else" - "elsif" - "end" - "ensure" - "for" - "if" - "in" - "module" - "next" - "or" - "rescue" - "retry" - "return" - "then" - "unless" - "until" - "when" - "while" - "yield" -] @keyword - -((identifier) @keyword - (#match? @keyword "^(private|protected|public)$")) - -; Function calls - -((identifier) @function.method.builtin - (#eq? @function.method.builtin "require")) - -"defined?" @function.method.builtin - -(call - method: [(identifier) (constant)] @function.method) - -; Function definitions - -(alias (identifier) @function.method) -(setter (identifier) @function.method) -(method name: [(identifier) (constant)] @function.method) -(singleton_method name: [(identifier) (constant)] @function.method) - -; Identifiers - -[ - (class_variable) - (instance_variable) -] @property - -((identifier) @constant.builtin - (#match? @constant.builtin "^__(FILE|LINE|ENCODING)__$")) - -(file) @constant.builtin -(line) @constant.builtin -(encoding) @constant.builtin - -(hash_splat_nil - "**" @operator -) @constant.builtin - -((constant) @constant - (#match? @constant "^[A-Z\\d_]+$")) - -(constant) @constructor - -(self) @variable.builtin -(super) @variable.builtin - -(block_parameter (identifier) @variable.parameter) -(block_parameters (identifier) @variable.parameter) -(destructured_parameter (identifier) @variable.parameter) -(hash_splat_parameter (identifier) @variable.parameter) -(lambda_parameters (identifier) @variable.parameter) -(method_parameters (identifier) @variable.parameter) -(splat_parameter (identifier) @variable.parameter) - -(keyword_parameter name: (identifier) @variable.parameter) -(optional_parameter name: (identifier) @variable.parameter) - -((identifier) @function.method - (#is-not? local)) -(identifier) @variable - -; Literals - -[ - (string) - (bare_string) - (subshell) - (heredoc_body) - (heredoc_beginning) -] @string - -[ - (simple_symbol) - (delimited_symbol) - (hash_key_symbol) - (bare_symbol) -] @string.special.symbol - -(regex) @string.special.regex -(escape_sequence) @escape - -[ - (integer) - (float) -] @number - -[ - (nil) - (true) - (false) -]@constant.builtin - -(interpolation - "#{" @punctuation.special - "}" @punctuation.special) @embedded - -(comment) @comment - -; Operators - -[ -"=" -"=>" -"->" -] @operator - -[ - "," - ";" - "." -] @punctuation.delimiter - -[ - "(" - ")" - "[" - "]" - "{" - "}" - "%w(" - "%i(" -] @punctuation.bracket \ No newline at end of file diff --git a/queries/ruby/indents.scm b/queries/ruby/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ruby/injections.scm b/queries/ruby/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ruby/locals.scm b/queries/ruby/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ruby/structure.scm b/queries/ruby/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ruby/tags.scm b/queries/ruby/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ruby/textobjects.scm b/queries/ruby/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rust/folds.scm b/queries/rust/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rust/highlights.scm b/queries/rust/highlights.scm deleted file mode 100644 index bf2fde4..0000000 --- a/queries/rust/highlights.scm +++ /dev/null @@ -1,379 +0,0 @@ -; ------- -; Tree-Sitter doesn't allow overrides in regards to captures, -; though it is possible to affect the child node of a captured -; node. Thus, the approach here is to flip the order so that -; overrides are unnecessary. -; ------- - -; ------- -; Types -; ------- - -; --- -; Primitives -; --- - -(escape_sequence) @constant.character.escape -(primitive_type) @type.builtin -(boolean_literal) @constant.builtin.boolean -(integer_literal) @constant.numeric.integer -(float_literal) @constant.numeric.float -(char_literal) @constant.character -[ - (string_literal) - (raw_string_literal) -] @string -[ - (line_comment) - (block_comment) -] @comment - -; --- -; Extraneous -; --- - -(self) @variable.builtin -(enum_variant (identifier) @type.enum.variant) - -(field_initializer - (field_identifier) @variable.other.member) -(shorthand_field_initializer - (identifier) @variable.other.member) -(shorthand_field_identifier) @variable.other.member - -(lifetime - "'" @label - (identifier) @label) -(loop_label - "'" @label - (identifier) @label) - -; --- -; Punctuation -; --- - -[ - "::" - "." - ";" - "," -] @punctuation.delimiter - -[ - "(" - ")" - "[" - "]" - "{" - "}" - "#" -] @punctuation.bracket -(type_arguments - [ - "<" - ">" - ] @punctuation.bracket) -(type_parameters - [ - "<" - ">" - ] @punctuation.bracket) -(closure_parameters - "|" @punctuation.bracket) - -; --- -; Variables -; --- - -(let_declaration - pattern: [ - ((identifier) @variable) - ((tuple_pattern - (identifier) @variable)) - ]) - -; It needs to be anonymous to not conflict with `call_expression` further below. -(_ - value: (field_expression - value: (identifier)? @variable - field: (field_identifier) @variable.other.member)) - -(parameter - pattern: (identifier) @variable.parameter) -(closure_parameters - (identifier) @variable.parameter) - -; ------- -; Keywords -; ------- - -(for_expression - "for" @keyword.control.repeat) -((identifier) @keyword.control - (#match? @keyword.control "^yield$")) - -"in" @keyword.control - -[ - "match" - "if" - "else" -] @keyword.control.conditional - -[ - "while" - "loop" -] @keyword.control.repeat - -[ - "break" - "continue" - "return" - "await" -] @keyword.control.return - -"use" @keyword.control.import -(mod_item "mod" @keyword.control.import !body) -(use_as_clause "as" @keyword.control.import) - -(type_cast_expression "as" @keyword.operator) - -[ - (crate) - (super) - "as" - "pub" - "mod" - "extern" - - "impl" - "where" - "trait" - "for" - - "default" - "async" -] @keyword - -[ - "struct" - "enum" - "union" - "type" -] @keyword.storage.type - -"let" @keyword.storage -"fn" @keyword.function -"unsafe" @keyword.special -"macro_rules!" @function.macro - -(mutable_specifier) @keyword.storage.modifier.mut - -(reference_type "&" @keyword.storage.modifier.ref) -(self_parameter "&" @keyword.storage.modifier.ref) - -[ - "static" - "const" - "ref" - "move" - "dyn" -] @keyword.storage.modifier - -; TODO: variable.mut to highlight mutable identifiers via locals.scm - -; ------- -; Guess Other Types -; ------- - -((identifier) @constant - (#match? @constant "^[A-Z][A-Z\\d_]*$")) - -; --- -; PascalCase identifiers in call_expressions (e.g. `Ok()`) -; are assumed to be enum constructors. -; --- - -(call_expression - function: [ - ((identifier) @type.enum.variant - (#match? @type.enum.variant "^[A-Z]")) - (scoped_identifier - name: ((identifier) @type.enum.variant - (#match? @type.enum.variant "^[A-Z]"))) - ]) - -; --- -; Assume that types in match arms are enums and not -; tuple structs. Same for `if let` expressions. -; --- - -(match_pattern - (scoped_identifier - name: (identifier) @constructor)) -(tuple_struct_pattern - type: [ - ((identifier) @constructor) - (scoped_identifier - name: (identifier) @constructor) - ]) -(struct_pattern - type: [ - ((type_identifier) @constructor) - (scoped_type_identifier - name: (type_identifier) @constructor) - ]) - -; --- -; Other PascalCase identifiers are assumed to be structs. -; --- - -((identifier) @type - (#match? @type "^[A-Z]")) - -; ------- -; Functions -; ------- - -(call_expression - function: [ - ((identifier) @function) - (scoped_identifier - name: (identifier) @function) - (field_expression - field: (field_identifier) @function) - ]) -(generic_function - function: [ - ((identifier) @function) - (scoped_identifier - name: (identifier) @function) - (field_expression - field: (field_identifier) @function.method) - ]) - -(function_item - name: (identifier) @function) - -(function_signature_item - name: (identifier) @function) - -; --- -; Macros -; --- - -(attribute - (identifier) @special - arguments: (token_tree (identifier) @type) - (#eq? @special "derive") -) - -(attribute - (identifier) @function.macro) -(attribute - [ - (identifier) @function.macro - (scoped_identifier - name: (identifier) @function.macro) - ] - (token_tree (identifier) @function.macro)?) - -(inner_attribute_item) @attribute - -(macro_definition - name: (identifier) @function.macro) -(macro_invocation - macro: [ - ((identifier) @function.macro) - (scoped_identifier - name: (identifier) @function.macro) - ] - "!" @function.macro) - -(metavariable) @variable.parameter -(fragment_specifier) @type - -; ------- -; Operators -; ------- - -[ - "*" - "'" - "->" - "=>" - "<=" - "=" - "==" - "!" - "!=" - "%" - "%=" - "&" - "&=" - "&&" - "|" - "|=" - "||" - "^" - "^=" - "*" - "*=" - "-" - "-=" - "+" - "+=" - "/" - "/=" - ">" - "<" - ">=" - ">>" - "<<" - ">>=" - "<<=" - "@" - ".." - "..=" - "'" -] @operator - -; ------- -; Paths -; ------- - -(use_declaration - argument: (identifier) @namespace) -(use_wildcard - (identifier) @namespace) -(extern_crate_declaration - name: (identifier) @namespace) -(mod_item - name: (identifier) @namespace) -(scoped_use_list - path: (identifier)? @namespace) -(use_list - (identifier) @namespace) -(use_as_clause - path: (identifier)? @namespace - alias: (identifier) @namespace) - -; --- -; Remaining Paths -; --- - -(scoped_identifier - path: (identifier)? @namespace - name: (identifier) @namespace) -(scoped_type_identifier - path: (identifier) @namespace) - -; ------- -; Remaining Identifiers -; ------- - -"?" @special - -(type_identifier) @type -(identifier) @variable -(field_identifier) @variable.other.member diff --git a/queries/rust/indents.scm b/queries/rust/indents.scm deleted file mode 100644 index af2e05e..0000000 --- a/queries/rust/indents.scm +++ /dev/null @@ -1,148 +0,0 @@ -[ - (use_list) - (block) - (match_block) - (arguments) - (parameters) - (declaration_list) - (field_declaration_list) - (field_initializer_list) - (struct_pattern) - (tuple_pattern) - (unit_expression) - (enum_variant_list) - (call_expression) - (binary_expression) - (field_expression) - (await_expression) - (tuple_expression) - (array_expression) - (where_clause) - (type_cast_expression) - - (token_tree) - (macro_definition) - (token_tree_pattern) - (token_repetition) -] @indent - -[ - "}" - "]" - ")" -] @outdent - -; Indent the right side of assignments. -; The #not-same-line? predicate is required to prevent an extra indent for e.g. -; an else-clause where the previous if-clause starts on the same line as the assignment. -(assignment_expression - . - (_) @expr-start - right: (_) @indent - (#not-same-line? @indent @expr-start) - (#set! "scope" "all") -) -(compound_assignment_expr - . - (_) @expr-start - right: (_) @indent - (#not-same-line? @indent @expr-start) - (#set! "scope" "all") -) -(let_declaration - "let" @expr-start - value: (_) @indent - alternative: (_)? @indent - (#not-same-line? @indent @expr-start) - (#set! "scope" "all") -) -(let_condition - . - (_) @expr-start - value: (_) @indent - (#not-same-line? @indent @expr-start) - (#set! "scope" "all") -) -(if_expression - . - (_) @expr-start - condition: (_) @indent - (#not-same-line? @indent @expr-start) - (#set! "scope" "all") -) -(static_item - . - (_) @expr-start - value: (_) @indent - (#not-same-line? @indent @expr-start) - (#set! "scope" "all") -) -(field_pattern - . - (_) @expr-start - pattern: (_) @indent - (#not-same-line? @indent @expr-start) - (#set! "scope" "all") -) -; Indent type aliases that span multiple lines, similar to -; regular assignment expressions -(type_item - . - (_) @expr-start - type: (_) @indent - (#not-same-line? @indent @expr-start) - (#set! "scope" "all") -) - -; Some field expressions where the left part is a multiline expression are not -; indented by cargo fmt. -; Because this multiline expression might be nested in an arbitrary number of -; field expressions, this can only be matched using a Regex. -(field_expression - value: (_) @val - "." @outdent - ; Check whether the first line ends with `(`, `{` or `[` (up to whitespace). - (#match? @val "(\\A[^\\n\\r]+(\\(|\\{|\\[)[\\t ]*(\\n|\\r))") -) -; Same as above, but with an additional `call_expression`. This is required since otherwise -; the arguments of the function call won't be outdented. -(call_expression - function: (field_expression - value: (_) @val - "." @outdent - (#match? @val "(\\A[^\\n\\r]+(\\(|\\{|\\[)[\\t ]*(\\n|\\r))") - ) - arguments: (_) @outdent -) - - -; Indent if guards in patterns. -; Since the tree-sitter grammar doesn't create a node for the if expression, -; it's not possible to do this correctly in all cases. Indenting the tail of the -; whole pattern whenever it contains an `if` only fails if the `if` appears after -; the second line of the pattern (which should only rarely be the case) -(match_pattern - . - (_) @expr-start - "if" @pattern-guard - (#not-same-line? @expr-start @pattern-guard) -) @indent - -; Align closure parameters if they span more than one line -(closure_parameters - "|" - . - (_) @anchor - (_) @expr-end - . - (#not-same-line? @anchor @expr-end) -) @align - -(for_expression - "in" @in - . - (_) @indent - (#not-same-line? @in @indent) - (#set! "scope" "all") -) - diff --git a/queries/rust/injections.scm b/queries/rust/injections.scm deleted file mode 100644 index b29a5ad..0000000 --- a/queries/rust/injections.scm +++ /dev/null @@ -1,53 +0,0 @@ -([(line_comment) (block_comment)] @injection.content - (#set! injection.language "comment")) - -((macro_invocation - (token_tree) @injection.content) - (#set! injection.language "rust") - (#set! injection.include-children)) - -((macro_rule - (token_tree) @injection.content) - (#set! injection.language "rust") - (#set! injection.include-children)) - -(call_expression - function: (scoped_identifier - path: (identifier) @_regex (#eq? @_regex "Regex") - name: (identifier) @_new (#eq? @_new "new")) - arguments: (arguments (raw_string_literal) @injection.content) - (#set! injection.language "regex")) - -(call_expression - function: (scoped_identifier - path: (scoped_identifier (identifier) @_regex (#eq? @_regex "Regex") .) - name: (identifier) @_new (#eq? @_new "new")) - arguments: (arguments (raw_string_literal) @injection.content) - (#set! injection.language "regex")) - -; Highlight SQL in `sqlx::query!()`, `sqlx::query_scalar!()`, and `sqlx::query_scalar_unchecked!()` -(macro_invocation - macro: (scoped_identifier - path: (identifier) @_sqlx (#eq? @_sqlx "sqlx") - name: (identifier) @_query (#match? @_query "^query(_scalar|_scalar_unchecked)?$")) - (token_tree - ; Only the first argument is SQL - . - [(string_literal) (raw_string_literal)] @injection.content - ) - (#set! injection.language "sql")) - -; Highlight SQL in `sqlx::query_as!()` and `sqlx::query_as_unchecked!()` -(macro_invocation - macro: (scoped_identifier - path: (identifier) @_sqlx (#eq? @_sqlx "sqlx") - name: (identifier) @_query_as (#match? @_query_as "^query_as(_unchecked)?$")) - (token_tree - ; Only the second argument is SQL - . - ; Allow anything as the first argument in case the user has lower case type - ; names for some reason - (_) - [(string_literal) (raw_string_literal)] @injection.content - ) - (#set! injection.language "sql")) diff --git a/queries/rust/locals.scm b/queries/rust/locals.scm deleted file mode 100644 index 75e5d18..0000000 --- a/queries/rust/locals.scm +++ /dev/null @@ -1,18 +0,0 @@ -; Scopes - -[ - (function_item) - (closure_expression) - (block) -] @local.scope - -; Definitions - -(parameter - (identifier) @local.definition) - -(closure_parameters (identifier) @local.definition) - -; References -(identifier) @local.reference - diff --git a/queries/rust/structure.scm b/queries/rust/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rust/tags.scm b/queries/rust/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/rust/textobjects.scm b/queries/rust/textobjects.scm deleted file mode 100644 index 837f981..0000000 --- a/queries/rust/textobjects.scm +++ /dev/null @@ -1,58 +0,0 @@ -(function_item - body: (_) @function.inside) @function.around - -(closure_expression - body: (_) @function.inside) @function.around - -(struct_item - body: (_) @class.inside) @class.around - -(enum_item - body: (_) @class.inside) @class.around - -(union_item - body: (_) @class.inside) @class.around - -(trait_item - body: (_) @class.inside) @class.around - -(impl_item - body: (_) @class.inside) @class.around - -(parameters - ((_) @parameter.inside . ","? @parameter.around) @parameter.around) - -(type_parameters - ((_) @parameter.inside . ","? @parameter.around) @parameter.around) - -(type_arguments - ((_) @parameter.inside . ","? @parameter.around) @parameter.around) - -(closure_parameters - ((_) @parameter.inside . ","? @parameter.around) @parameter.around) - -(arguments - ((_) @parameter.inside . ","? @parameter.around) @parameter.around) - -[ - (line_comment) - (block_comment) -] @comment.inside - -(line_comment)+ @comment.around - -(block_comment) @comment.around - -(; #[test] - (attribute_item - (attribute - (identifier) @_test_attribute)) - ; allow other attributes like #[should_panic] and comments - [ - (attribute_item) - (line_comment) - ]* - ; the test function - (function_item - body: (_) @test.inside) @test.around - (#eq? @_test_attribute "test")) diff --git a/queries/scala/folds.scm b/queries/scala/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/scala/highlights.scm b/queries/scala/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/scala/indents.scm b/queries/scala/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/scala/injections.scm b/queries/scala/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/scala/locals.scm b/queries/scala/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/scala/structure.scm b/queries/scala/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/scala/tags.scm b/queries/scala/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/scala/textobjects.scm b/queries/scala/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/scheme/folds.scm b/queries/scheme/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/scheme/highlights.scm b/queries/scheme/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/scheme/indents.scm b/queries/scheme/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/scheme/injections.scm b/queries/scheme/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/scheme/locals.scm b/queries/scheme/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/scheme/structure.scm b/queries/scheme/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/scheme/tags.scm b/queries/scheme/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/scheme/textobjects.scm b/queries/scheme/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/scss/folds.scm b/queries/scss/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/scss/highlights.scm b/queries/scss/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/scss/indents.scm b/queries/scss/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/scss/injections.scm b/queries/scss/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/scss/locals.scm b/queries/scss/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/scss/structure.scm b/queries/scss/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/scss/tags.scm b/queries/scss/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/scss/textobjects.scm b/queries/scss/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/slint/folds.scm b/queries/slint/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/slint/highlights.scm b/queries/slint/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/slint/indents.scm b/queries/slint/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/slint/injections.scm b/queries/slint/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/slint/locals.scm b/queries/slint/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/slint/structure.scm b/queries/slint/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/slint/tags.scm b/queries/slint/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/slint/textobjects.scm b/queries/slint/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/smithy/folds.scm b/queries/smithy/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/smithy/highlights.scm b/queries/smithy/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/smithy/indents.scm b/queries/smithy/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/smithy/injections.scm b/queries/smithy/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/smithy/locals.scm b/queries/smithy/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/smithy/structure.scm b/queries/smithy/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/smithy/tags.scm b/queries/smithy/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/smithy/textobjects.scm b/queries/smithy/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/sql/folds.scm b/queries/sql/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/sql/highlights.scm b/queries/sql/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/sql/indents.scm b/queries/sql/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/sql/injections.scm b/queries/sql/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/sql/locals.scm b/queries/sql/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/sql/structure.scm b/queries/sql/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/sql/tags.scm b/queries/sql/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/sql/textobjects.scm b/queries/sql/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ssh-client-config/folds.scm b/queries/ssh-client-config/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ssh-client-config/highlights.scm b/queries/ssh-client-config/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ssh-client-config/indents.scm b/queries/ssh-client-config/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ssh-client-config/injections.scm b/queries/ssh-client-config/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ssh-client-config/locals.scm b/queries/ssh-client-config/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ssh-client-config/structure.scm b/queries/ssh-client-config/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ssh-client-config/tags.scm b/queries/ssh-client-config/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/ssh-client-config/textobjects.scm b/queries/ssh-client-config/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/strace/folds.scm b/queries/strace/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/strace/highlights.scm b/queries/strace/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/strace/indents.scm b/queries/strace/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/strace/injections.scm b/queries/strace/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/strace/locals.scm b/queries/strace/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/strace/structure.scm b/queries/strace/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/strace/tags.scm b/queries/strace/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/strace/textobjects.scm b/queries/strace/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/svelte/folds.scm b/queries/svelte/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/svelte/highlights.scm b/queries/svelte/highlights.scm deleted file mode 100644 index 2e30815..0000000 --- a/queries/svelte/highlights.scm +++ /dev/null @@ -1,110 +0,0 @@ -; src: https://github.com/helix-editor/helix/blob/master/runtime/queries/svelte/highlights.scm -; licence: https://github.com/helix-editor/helix/blob/master/LICENSE -; spdx: MPL-2.0 - -(tag_name) @tag -(erroneous_end_tag_name) @error -(comment) @comment -(attribute_name) @tag.attribute -(attribute - (quoted_attribute_value) @string) -(text) @text @spell - -((element (start_tag (tag_name) @_tag) (text) @text.title) - (#match? @_tag "^(h[0-9]|title)$")) - -((element (start_tag (tag_name) @_tag) (text) @text.strong) - (#match? @_tag "^(strong|b)$")) - -((element (start_tag (tag_name) @_tag) (text) @text.emphasis) - (#match? @_tag "^(em|i)$")) - -((element (start_tag (tag_name) @_tag) (text) @text.strike) - (#match? @_tag "^(s|del)$")) - -((element (start_tag (tag_name) @_tag) (text) @text.underline) - (#eq? @_tag "u")) - -((element (start_tag (tag_name) @_tag) (text) @text.literal) - (#match? @_tag "^(code|kbd)$")) - -((element (start_tag (tag_name) @_tag) (text) @text.uri) - (#eq? @_tag "a")) - -((attribute - (attribute_name) @_attr - (quoted_attribute_value (attribute_value) @text.uri)) - (#match? @_attr "^(href|src)$")) - -[ - "<" - ">" - "" -] @tag.delimiter - -"=" @operator -((element (start_tag (tag_name) @_tag) (text) @text.title) - (#match? @_tag "^(h[0-9]|title)$")) - -((element (start_tag (tag_name) @_tag) (text) @text.strong) - (#match? @_tag "^(strong|b)$")) - -((element (start_tag (tag_name) @_tag) (text) @text.emphasis) - (#match? @_tag "^(em|i)$")) - -((element (start_tag (tag_name) @_tag) (text) @text.strike) - (#match? @_tag "^(s|del)$")) - -((element (start_tag (tag_name) @_tag) (text) @text.underline) - (#eq? @_tag "u")) - -((element (start_tag (tag_name) @_tag) (text) @text.literal) - (#match? @_tag "^(code|kbd)$")) - -((element (start_tag (tag_name) @_tag) (text) @text.uri) - (#eq? @_tag "a")) - -((attribute - (attribute_name) @_attr - (quoted_attribute_value (attribute_value) @text.uri)) - (#match? @_attr "^(href|src)$")) - -(tag_name) @tag -(attribute_name) @property -(erroneous_end_tag_name) @error -(comment) @comment - -[ - (attribute_value) - (quoted_attribute_value) -] @string - -[ - (text) - (raw_text_expr) -] @none - -[ - (special_block_keyword) - (then) - (as) -] @keyword - -[ - "{" - "}" -] @punctuation.bracket - -"=" @operator - -[ - "<" - ">" - "" - "#" - ":" - "/" - "@" -] @tag.delimiter diff --git a/queries/svelte/indents.scm b/queries/svelte/indents.scm deleted file mode 100644 index 716a3f2..0000000 --- a/queries/svelte/indents.scm +++ /dev/null @@ -1,24 +0,0 @@ -;src: https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/svelte/indents.scm -;licence https://github.com/nvim-treesitter/nvim-treesitter/blob/master/LICENSE -; spdx: Apache-2.0 - -[ - (element) - (if_statement) - (each_statement) - (await_statement) - (script_element) - (style_element) -] @indent - -[ - (end_tag) - (else_statement) - (if_end_expr) - (each_end_expr) - (await_end_expr) - ">" - "/>" -] @branch - -(comment) @ignore diff --git a/queries/svelte/injections.scm b/queries/svelte/injections.scm deleted file mode 100644 index f24f89b..0000000 --- a/queries/svelte/injections.scm +++ /dev/null @@ -1,32 +0,0 @@ -; src: https://github.com/helix-editor/helix/blob/master/runtime/queries/svelte/injections.scm -; licence: https://github.com/helix-editor/helix/blob/master/LICENSE -; spdx: MPL-2.0 - -((style_element - (raw_text) @injection.content) - (#set! injection.language "css")) - -((attribute - (attribute_name) @_attr - (quoted_attribute_value (attribute_value) @css)) - (#eq? @_attr "style")) - -((script_element - (raw_text) @injection.content) - (#set! injection.language "javascript")) - -((raw_text_expr) @injection.content - (#set! injection.language "javascript")) - -( - (script_element - (start_tag - (attribute - (quoted_attribute_value (attribute_value) @_lang))) - (raw_text) @injection.content) - (#match? @_lang "(ts|typescript)") - (#set! injection.language "typescript") -) - -((comment) @injection.content - (#set! injection.language "comment")) diff --git a/queries/svelte/locals.scm b/queries/svelte/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/svelte/structure.scm b/queries/svelte/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/svelte/tags.scm b/queries/svelte/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/svelte/textobjects.scm b/queries/svelte/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/sway/folds.scm b/queries/sway/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/sway/highlights.scm b/queries/sway/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/sway/indents.scm b/queries/sway/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/sway/injections.scm b/queries/sway/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/sway/locals.scm b/queries/sway/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/sway/structure.scm b/queries/sway/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/sway/tags.scm b/queries/sway/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/sway/textobjects.scm b/queries/sway/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/swift/folds.scm b/queries/swift/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/swift/highlights.scm b/queries/swift/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/swift/indents.scm b/queries/swift/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/swift/injections.scm b/queries/swift/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/swift/locals.scm b/queries/swift/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/swift/structure.scm b/queries/swift/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/swift/tags.scm b/queries/swift/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/swift/textobjects.scm b/queries/swift/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/tcl/folds.scm b/queries/tcl/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/tcl/highlights.scm b/queries/tcl/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/tcl/indents.scm b/queries/tcl/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/tcl/injections.scm b/queries/tcl/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/tcl/locals.scm b/queries/tcl/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/tcl/structure.scm b/queries/tcl/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/tcl/tags.scm b/queries/tcl/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/tcl/textobjects.scm b/queries/tcl/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/toml/folds.scm b/queries/toml/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/toml/highlights.scm b/queries/toml/highlights.scm deleted file mode 100644 index ca2f0c7..0000000 --- a/queries/toml/highlights.scm +++ /dev/null @@ -1,33 +0,0 @@ -; Properties -;----------- - -(bare_key) @property -(quoted_key) @string - -; Literals -;--------- - -(boolean) @constant.builtin -(comment) @comment -(string) @string -(integer) @number -(float) @number -(offset_date_time) @string.special -(local_date_time) @string.special -(local_date) @string.special -(local_time) @string.special - -; Punctuation -;------------ - -"." @punctuation.delimiter -"," @punctuation.delimiter - -"=" @operator - -"[" @punctuation.bracket -"]" @punctuation.bracket -"[[" @punctuation.bracket -"]]" @punctuation.bracket -"{" @punctuation.bracket -"}" @punctuation.bracket \ No newline at end of file diff --git a/queries/toml/indents.scm b/queries/toml/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/toml/injections.scm b/queries/toml/injections.scm deleted file mode 100644 index 321c90a..0000000 --- a/queries/toml/injections.scm +++ /dev/null @@ -1,2 +0,0 @@ -((comment) @injection.content - (#set! injection.language "comment")) diff --git a/queries/toml/locals.scm b/queries/toml/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/toml/structure.scm b/queries/toml/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/toml/tags.scm b/queries/toml/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/toml/textobjects.scm b/queries/toml/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/typescript/folds.scm b/queries/typescript/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/typescript/highlights.scm b/queries/typescript/highlights.scm deleted file mode 100644 index 4074335..0000000 --- a/queries/typescript/highlights.scm +++ /dev/null @@ -1,35 +0,0 @@ -; Types - -(type_identifier) @type -(predefined_type) @type.builtin - -((identifier) @type - (#match? @type "^[A-Z]")) - -(type_arguments - "<" @punctuation.bracket - ">" @punctuation.bracket) - -; Variables - -(required_parameter (identifier) @variable.parameter) -(optional_parameter (identifier) @variable.parameter) - -; Keywords - -[ "abstract" - "declare" - "enum" - "export" - "implements" - "interface" - "keyof" - "namespace" - "private" - "protected" - "public" - "type" - "readonly" - "override" - "satisfies" -] @keyword \ No newline at end of file diff --git a/queries/typescript/indents.scm b/queries/typescript/indents.scm deleted file mode 100644 index 5b8c8f2..0000000 --- a/queries/typescript/indents.scm +++ /dev/null @@ -1,3 +0,0 @@ -; See runtime/queries/ecma/README.md for more info. - -; inherits: _typescript,ecma diff --git a/queries/typescript/injections.scm b/queries/typescript/injections.scm deleted file mode 100644 index 5b8c8f2..0000000 --- a/queries/typescript/injections.scm +++ /dev/null @@ -1,3 +0,0 @@ -; See runtime/queries/ecma/README.md for more info. - -; inherits: _typescript,ecma diff --git a/queries/typescript/locals.scm b/queries/typescript/locals.scm deleted file mode 100644 index 5b8c8f2..0000000 --- a/queries/typescript/locals.scm +++ /dev/null @@ -1,3 +0,0 @@ -; See runtime/queries/ecma/README.md for more info. - -; inherits: _typescript,ecma diff --git a/queries/typescript/structure.scm b/queries/typescript/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/typescript/tags.scm b/queries/typescript/tags.scm deleted file mode 100644 index 5b8c8f2..0000000 --- a/queries/typescript/tags.scm +++ /dev/null @@ -1,3 +0,0 @@ -; See runtime/queries/ecma/README.md for more info. - -; inherits: _typescript,ecma diff --git a/queries/typescript/textobjects.scm b/queries/typescript/textobjects.scm deleted file mode 100644 index 5b8c8f2..0000000 --- a/queries/typescript/textobjects.scm +++ /dev/null @@ -1,3 +0,0 @@ -; See runtime/queries/ecma/README.md for more info. - -; inherits: _typescript,ecma diff --git a/queries/typst/folds.scm b/queries/typst/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/typst/highlights.scm b/queries/typst/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/typst/indents.scm b/queries/typst/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/typst/injections.scm b/queries/typst/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/typst/locals.scm b/queries/typst/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/typst/structure.scm b/queries/typst/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/typst/tags.scm b/queries/typst/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/typst/textobjects.scm b/queries/typst/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/vala/folds.scm b/queries/vala/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/vala/highlights.scm b/queries/vala/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/vala/indents.scm b/queries/vala/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/vala/injections.scm b/queries/vala/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/vala/locals.scm b/queries/vala/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/vala/structure.scm b/queries/vala/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/vala/tags.scm b/queries/vala/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/vala/textobjects.scm b/queries/vala/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/verilog/folds.scm b/queries/verilog/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/verilog/highlights.scm b/queries/verilog/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/verilog/indents.scm b/queries/verilog/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/verilog/injections.scm b/queries/verilog/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/verilog/locals.scm b/queries/verilog/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/verilog/structure.scm b/queries/verilog/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/verilog/tags.scm b/queries/verilog/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/verilog/textobjects.scm b/queries/verilog/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/vue/folds.scm b/queries/vue/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/vue/highlights.scm b/queries/vue/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/vue/indents.scm b/queries/vue/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/vue/injections.scm b/queries/vue/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/vue/locals.scm b/queries/vue/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/vue/structure.scm b/queries/vue/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/vue/tags.scm b/queries/vue/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/vue/textobjects.scm b/queries/vue/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wasm/folds.scm b/queries/wasm/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wasm/highlights.scm b/queries/wasm/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wasm/indents.scm b/queries/wasm/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wasm/injections.scm b/queries/wasm/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wasm/locals.scm b/queries/wasm/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wasm/structure.scm b/queries/wasm/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wasm/tags.scm b/queries/wasm/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wasm/textobjects.scm b/queries/wasm/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wast/folds.scm b/queries/wast/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wast/highlights.scm b/queries/wast/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wast/indents.scm b/queries/wast/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wast/injections.scm b/queries/wast/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wast/locals.scm b/queries/wast/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wast/structure.scm b/queries/wast/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wast/tags.scm b/queries/wast/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wast/textobjects.scm b/queries/wast/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wgsl/folds.scm b/queries/wgsl/folds.scm deleted file mode 100644 index 6cccbbc..0000000 --- a/queries/wgsl/folds.scm +++ /dev/null @@ -1,10 +0,0 @@ -[ - (struct_declaration) - (function_declaration) - (if_statement) - (switch_statement) - (switch_body) - (loop_statement) - (for_statement) - (while_statement) -] @fold \ No newline at end of file diff --git a/queries/wgsl/highlights.scm b/queries/wgsl/highlights.scm deleted file mode 100644 index 7c72e9b..0000000 --- a/queries/wgsl/highlights.scm +++ /dev/null @@ -1,111 +0,0 @@ -(int_literal) @number -(float_literal) @float -(bool_literal) @boolean - -(type_declaration [ "bool" "u32" "i32" "f16" "f32" ] @type.builtin) -(type_declaration) @type - -(function_declaration - (identifier) @function) - -(parameter - (variable_identifier_declaration (identifier) @parameter)) - -(struct_declaration - (identifier) @structure) - -(struct_declaration - (struct_member (variable_identifier_declaration (identifier) @field))) - -(attribute - (identifier) @attribute) - -(identifier) @variable - -(type_constructor_or_function_call_expression - (type_declaration) @function.call) - -[ - "struct" - "bitcast" - "discard" - "enable" - "fallthrough" - "let" - "type" - "var" - "override" - (texel_format) -] @keyword - -[ - "private" - "storage" - "uniform" - "workgroup" -] @storageclass - -[ - "read" - "read_write" - "write" -] @type.qualifier - -"fn" @keyword.function - -"return" @keyword.return - -[ "," "." ":" ";" "->" ] @punctuation.delimiter - -["(" ")" "[" "]" "{" "}"] @punctuation.bracket - -[ - "loop" - "for" - "while" - "break" - "continue" - "continuing" -] @repeat - -[ - "if" - "else" - "switch" - "case" - "default" -] @conditional - -[ - "&" - "&&" - "/" - "!" - "=" - "==" - "!=" - ">" - ">=" - ">>" - "<" - "<=" - "<<" - "%" - "-" - "+" - "|" - "||" - "*" - "~" - "^" - "@" - "++" - "--" -] @operator - -[ - (line_comment) - (block_comment) -] @comment - -(ERROR) @error diff --git a/queries/wgsl/indents.scm b/queries/wgsl/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wgsl/injections.scm b/queries/wgsl/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wgsl/locals.scm b/queries/wgsl/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wgsl/structure.scm b/queries/wgsl/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wgsl/tags.scm b/queries/wgsl/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wgsl/textobjects.scm b/queries/wgsl/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wit/folds.scm b/queries/wit/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wit/highlights.scm b/queries/wit/highlights.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wit/indents.scm b/queries/wit/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wit/injections.scm b/queries/wit/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wit/locals.scm b/queries/wit/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wit/structure.scm b/queries/wit/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wit/tags.scm b/queries/wit/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/wit/textobjects.scm b/queries/wit/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/xml/folds.scm b/queries/xml/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/xml/highlights.scm b/queries/xml/highlights.scm deleted file mode 100644 index aabf4fb..0000000 --- a/queries/xml/highlights.scm +++ /dev/null @@ -1,44 +0,0 @@ -; highlights.scm - -(comment) @comment - -[ - "DOCTYPE" - "ELEMENT" - "ATTLIST" -] @keyword - -[ - "#REQUIRED" - "#IMPLIED" - "#FIXED" - "#PCDATA" -] @keyword.directive - -[ - "EMPTY" - "ANY" - "SYSTEM" - "PUBLIC" -] @constant - -(doctype) @module -(element_name) @module - -"xml" @tag -(tag_name) @tag - -[ - "encoding" - "version" - "standalone" -] @attribute -(attribute_name) @attribute - -(system_literal) @string -(pubid_literal) @string -(attribute_value) @string - -[ - "<" ">" "" "" "" -] @punctuation.bracket \ No newline at end of file diff --git a/queries/xml/indents.scm b/queries/xml/indents.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/xml/injections.scm b/queries/xml/injections.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/xml/locals.scm b/queries/xml/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/xml/structure.scm b/queries/xml/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/xml/tags.scm b/queries/xml/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/xml/textobjects.scm b/queries/xml/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/yaml/folds.scm b/queries/yaml/folds.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/yaml/highlights.scm b/queries/yaml/highlights.scm deleted file mode 100644 index e4fed27..0000000 --- a/queries/yaml/highlights.scm +++ /dev/null @@ -1,43 +0,0 @@ -(block_mapping_pair - key: (flow_node [(double_quote_scalar) (single_quote_scalar)] @variable.other.member)) -(block_mapping_pair - key: (flow_node (plain_scalar (string_scalar) @variable.other.member))) - -(flow_mapping - (_ key: (flow_node [(double_quote_scalar) (single_quote_scalar)] @variable.other.member))) -(flow_mapping - (_ key: (flow_node (plain_scalar (string_scalar) @variable.other.member)))) - -(boolean_scalar) @constant.builtin.boolean -(null_scalar) @constant.builtin -(double_quote_scalar) @string -(single_quote_scalar) @string -(block_scalar) @string -(string_scalar) @string -(escape_sequence) @constant.character.escape -(integer_scalar) @constant.numeric.integer -(float_scalar) @constant.numeric.float -(comment) @comment -(anchor_name) @type -(alias_name) @type -(tag) @type -(yaml_directive) @keyword -(ERROR) @error - -[ -"," -"-" -":" -">" -"?" -"|" -] @punctuation.delimiter - -[ -"[" -"]" -"{" -"}" -] @punctuation.bracket - -["*" "&" "---" "..."] @punctuation.special diff --git a/queries/yaml/indents.scm b/queries/yaml/indents.scm deleted file mode 100644 index 87853eb..0000000 --- a/queries/yaml/indents.scm +++ /dev/null @@ -1,36 +0,0 @@ -(block_scalar) @indent @extend - -; indent sequence items only if they span more than one line, e.g. -; -; - foo: -; bar: baz -; - quux: -; bar: baz -; -; but not -; -; - foo -; - bar -; - baz -((block_sequence_item) @item @indent.always @extend - (#not-one-line? @item)) - -; map pair where without a key -; -; foo: -((block_mapping_pair - key: (_) @key - !value - ) @indent.always @extend -) - -; map pair where the key and value are on different lines -; -; foo: -; bar: baz -((block_mapping_pair - key: (_) @key - value: (_) @val - (#not-same-line? @key @val) - ) @indent.always @extend -) \ No newline at end of file diff --git a/queries/yaml/injections.scm b/queries/yaml/injections.scm deleted file mode 100644 index 52b437a..0000000 --- a/queries/yaml/injections.scm +++ /dev/null @@ -1,54 +0,0 @@ -((comment) @injection.content - (#set! injection.language "comment")) - -; The remaining code in this file incorporates work covered by the following -; copyright and permission notice: -; -; Copyright 2023 the nvim-treesitter authors -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -; Modified for Helix from https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/yaml/injections.scm - -;; Github actions ("run") / Gitlab CI ("scripts") -(block_mapping_pair - key: (flow_node) @_run (#match? @_run "^(run|script|before_script|after_script)$") - value: (flow_node - (plain_scalar - (string_scalar) @injection.content) - (#set! injection.language "bash"))) - -(block_mapping_pair - key: (flow_node) @_run (#match? @_run "^(run|script|before_script|after_script)$") - value: (block_node - (block_scalar) @injection.content - (#set! injection.language "bash"))) - -(block_mapping_pair - key: (flow_node) @_run (#match? @_run "^(run|script|before_script|after_script)$") - value: (block_node - (block_sequence - (block_sequence_item - (flow_node - (plain_scalar - (string_scalar) @injection.content)) - (#set! injection.language "bash"))))) - -(block_mapping_pair - key: (flow_node) @_run (#match? @_run "^(run|script|before_script|after_script)$") - value: (block_node - (block_sequence - (block_sequence_item - (block_node - (block_scalar) @injection.content - (#set! injection.language "bash")))))) diff --git a/queries/yaml/locals.scm b/queries/yaml/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/yaml/structure.scm b/queries/yaml/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/yaml/tags.scm b/queries/yaml/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/yaml/textobjects.scm b/queries/yaml/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/zig/folds.scm b/queries/zig/folds.scm deleted file mode 100644 index 9659874..0000000 --- a/queries/zig/folds.scm +++ /dev/null @@ -1,16 +0,0 @@ -[ - (Block) - (ContainerDecl) - (SwitchExpr) - (InitList) - (AsmExpr) - (ErrorSetDecl) - (LINESTRING) - ( - [ - (IfPrefix) - (WhilePrefix) - (ForPrefix) - ] - ) -] @fold diff --git a/queries/zig/highlights.scm b/queries/zig/highlights.scm deleted file mode 100644 index 0989704..0000000 --- a/queries/zig/highlights.scm +++ /dev/null @@ -1,233 +0,0 @@ -[ - (container_doc_comment) - (doc_comment) - (line_comment) -] @comment @spell - -[ - variable: (IDENTIFIER) - variable_type_function: (IDENTIFIER) -] @variable - -parameter: (IDENTIFIER) @parameter - -[ - field_member: (IDENTIFIER) - field_access: (IDENTIFIER) -] @field - -;; assume TitleCase is a type -( - [ - variable_type_function: (IDENTIFIER) - field_access: (IDENTIFIER) - parameter: (IDENTIFIER) - ] @type - (#match? @type "^[A-Z]([a-z]+[A-Za-z0-9]*)*$") -) -;; assume camelCase is a function -( - [ - variable_type_function: (IDENTIFIER) - field_access: (IDENTIFIER) - parameter: (IDENTIFIER) - ] @function - (#match? @function "^[a-z]+([A-Z][a-z0-9]*)+$") -) - -;; assume all CAPS_1 is a constant -( - [ - variable_type_function: (IDENTIFIER) - field_access: (IDENTIFIER) - ] @constant - (#match? @constant "^[A-Z][A-Z_0-9]+$") -) - -[ - function_call: (IDENTIFIER) - function: (IDENTIFIER) -] @function - -exception: "!" @exception - -( - (IDENTIFIER) @variable.builtin - (#eq? @variable.builtin "_") -) - -(PtrTypeStart "c" @variable.builtin) - -( - (ContainerDeclType - [ - (ErrorUnionExpr) - "enum" - ] - ) - (ContainerField (IDENTIFIER) @constant) -) - -field_constant: (IDENTIFIER) @constant - -(BUILTINIDENTIFIER) @function.builtin - -((BUILTINIDENTIFIER) @include - (#any-of? @include "@import" "@cImport")) - -(INTEGER) @number - -(FLOAT) @float - -[ - "true" - "false" -] @boolean - -[ - (LINESTRING) - (STRINGLITERALSINGLE) -] @string @spell - -(CHAR_LITERAL) @character -(EscapeSequence) @string.escape -(FormatSequence) @string.special - -(BreakLabel (IDENTIFIER) @label) -(BlockLabel (IDENTIFIER) @label) - -[ - "asm" - "defer" - "errdefer" - "test" - "struct" - "union" - "enum" - "opaque" - "error" -] @keyword - -[ - "async" - "await" - "suspend" - "nosuspend" - "resume" -] @keyword.coroutine - -[ - "fn" -] @keyword.function - -[ - "and" - "or" - "orelse" -] @keyword.operator - -[ - "return" -] @keyword.return - -[ - "if" - "else" - "switch" -] @conditional - -[ - "for" - "while" - "break" - "continue" -] @repeat - -[ - "usingnamespace" -] @include - -[ - "try" - "catch" -] @exception - -[ - "anytype" - (BuildinTypeExpr) -] @type.builtin - -[ - "const" - "var" - "volatile" - "allowzero" - "noalias" -] @type.qualifier - -[ - "addrspace" - "align" - "callconv" - "linksection" -] @storageclass - -[ - "comptime" - "export" - "extern" - "inline" - "noinline" - "packed" - "pub" - "threadlocal" -] @attribute - -[ - "null" - "unreachable" - "undefined" -] @constant.builtin - -[ - (CompareOp) - (BitwiseOp) - (BitShiftOp) - (AdditionOp) - (AssignOp) - (MultiplyOp) - (PrefixOp) - "*" - "**" - "->" - ".?" - ".*" - "?" -] @operator - -[ - ";" - "." - "," - ":" -] @punctuation.delimiter - -[ - ".." - "..." -] @punctuation.special - -[ - "[" - "]" - "(" - ")" - "{" - "}" - (Payload "|") - (PtrPayload "|") - (PtrIndexPayload "|") -] @punctuation.bracket - -; Error -(ERROR) @error diff --git a/queries/zig/indents.scm b/queries/zig/indents.scm deleted file mode 100644 index a2af44e..0000000 --- a/queries/zig/indents.scm +++ /dev/null @@ -1,22 +0,0 @@ -[ - (Block) - (ContainerDecl) - (SwitchExpr) - (InitList) -] @indent - -[ - "(" - ")" - "[" - "]" - "{" - "}" -] @branch - -[ - (line_comment) - (container_doc_comment) - (doc_comment) - (LINESTRING) -] @ignore diff --git a/queries/zig/injections.scm b/queries/zig/injections.scm deleted file mode 100644 index e3ff406..0000000 --- a/queries/zig/injections.scm +++ /dev/null @@ -1,5 +0,0 @@ -[ - (container_doc_comment) - (doc_comment) - (line_comment) -] @comment diff --git a/queries/zig/locals.scm b/queries/zig/locals.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/zig/structure.scm b/queries/zig/structure.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/zig/tags.scm b/queries/zig/tags.scm deleted file mode 100644 index e69de29..0000000 diff --git a/queries/zig/textobjects.scm b/queries/zig/textobjects.scm deleted file mode 100644 index e69de29..0000000 diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..a3839de --- /dev/null +++ b/src/main.rs @@ -0,0 +1,172 @@ +use anyhow::{anyhow, bail, Result}; +use clap::Parser; +use dunce::canonicalize; +use serde::{Deserialize, Serialize}; +use std::{ + fs::{self}, + path::{Path, PathBuf}, + process::Command, +}; +use tracing::{error, Level}; +use tracing_subscriber::FmtSubscriber; + +#[derive(Parser)] +struct Cli { + dir: Option, + #[clap(short, long)] + output: PathBuf, + #[clap(short, long)] + tmp: PathBuf, +} + +#[non_exhaustive] +#[derive(Debug, Deserialize, Serialize)] +struct GrammarsFile { + grammars: std::collections::HashMap, +} + +#[derive(Debug, Deserialize, Serialize)] +struct GrammarSource { + git: String, + rev: String, + subpath: Option, +} + +#[derive(Debug, Deserialize, Serialize)] +struct GrammarConfig { + name: String, + source: GrammarSource, +} + +#[derive(Debug, Deserialize, Serialize)] +struct LanaugeConfig { + grammar: Vec, +} + +#[non_exhaustive] +#[derive(Debug, Deserialize, Serialize)] +struct GrammarBuildInfo { + git: String, + rev: Option, + path: PathBuf, + cpp: Option, + relative: Option, + generate: Option, +} + +fn logging() -> Result<()> { + let subscriber = FmtSubscriber::builder() + .with_max_level(Level::DEBUG) + .finish(); + tracing::subscriber::set_global_default(subscriber)?; + Ok(()) +} + +fn main() -> Result<()> { + logging()?; + + let cli = Cli::parse(); + + if !cli.output.exists() { + if let Err(e) = std::fs::create_dir_all(&cli.output) { + error!("Failed to create output dir: {}", e); + bail!(e); + }; + } + let output_dir = match canonicalize(&cli.output) { + Ok(v) => v, + Err(e) => { + bail!("Failed to canonicalize '{}': {e}", &cli.output.display()); + } + }; + + let tmp_dir = match canonicalize(&cli.tmp) { + Ok(v) => v, + Err(e) => { + bail!("Failed to canonicalize '{}': {e}", &cli.tmp.display()); + } + }; + + let helix_dir = tmp_dir.join("helix"); + checkout_repo( + &helix_dir, + "https://github.com/helix-editor/helix", + "0a4432b104099534f7a25b8ea4148234db146ab6", + )?; + + let Ok(languages_config) = &fs::read_to_string(helix_dir.join("languages.toml")) + else { + error!("Failed to read grammars config"); + bail!("Failed to read grammars config"); + }; + let Ok(config) = toml::from_str::(languages_config) else { + error!("Failed to deserialize config"); + bail!("Failed to deserialize config"); + }; + + for grammar in config.grammar { + let path = tmp_dir.join(format! {"tree-sitter-{}",grammar.name}); + checkout_repo(&path, &grammar.source.git, &grammar.source.rev)?; + let path = if let Some(subpath) = grammar.source.subpath.as_ref() { + path.join(subpath) + } else { + path + }; + build_tree_sitter(&grammar.name, &path, &output_dir)?; + } + Ok(()) +} + +fn checkout_repo(path: &Path, repo: &str, rev: &str) -> Result<()> { + if path.join(".git").exists() { + let output = Command::new("git") + .current_dir(path) + .arg("fetch") + .output()?; + if !output.status.success() { + return Err(anyhow!("git fetch failed for {repo}")); + } + + let _ = Command::new("git") + .current_dir(path) + .arg("checkout") + .arg(rev) + .output(); + } else { + std::fs::create_dir_all(path)?; + let output = Command::new("git") + .current_dir(path) + .arg("clone") + .arg(repo) + .arg(".") + .output()?; + if !output.status.success() { + return Err(anyhow!("git clone failed for {repo}")); + } + + let _ = Command::new("git") + .current_dir(path) + .arg("checkout") + .arg(rev) + .output(); + } + + Ok(()) +} + +fn build_tree_sitter(name: &str, path: &Path, output: &Path) -> Result<()> { + println!("now building tree sitter for {name}"); + let output = Command::new("tree-sitter") + .current_dir(path) + .arg("build") + .arg("--output") + .arg(output.join(format!( + "libtree-sitter-{name}.{}", + std::env::consts::DLL_EXTENSION + ))) + .output()?; + if !output.status.success() { + return Err(anyhow!("tree sitter build failed for {name}")); + } + Ok(()) +} From ad0e759f6a67c4654fc273dfa28cc1443f8e920b Mon Sep 17 00:00:00 2001 From: Dongdong Zhou Date: Sat, 3 Aug 2024 00:00:10 +0100 Subject: [PATCH 2/8] update release --- .github/workflows/release.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8105c60..c5c1c0a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -50,17 +50,13 @@ jobs: run: | cargo install tree-sitter-cli@^0.22 --locked - - uses: actions/setup-python@v5 - with: - python-version: '3.x' - - uses: actions/setup-node@v4 with: node-version: lts/* - name: Build grammars if: always() - run: python ./make.py + run: cargo run --release -- --output ./output --/tmp ./tmp - name: Create tarball run: | From c805edd720699def0517229879bd47bfbd488eda Mon Sep 17 00:00:00 2001 From: Dongdong Zhou Date: Sat, 3 Aug 2024 00:00:28 +0100 Subject: [PATCH 3/8] update release --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c5c1c0a..137efdb 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -56,7 +56,7 @@ jobs: - name: Build grammars if: always() - run: cargo run --release -- --output ./output --/tmp ./tmp + run: mkdir ./output && mkdir ./tmp && cargo run --release -- --output ./output --/tmp ./tmp - name: Create tarball run: | From 54fd6a765ba92b9c1e8777c2114c02d78f923533 Mon Sep 17 00:00:00 2001 From: Dongdong Zhou Date: Sat, 3 Aug 2024 00:01:37 +0100 Subject: [PATCH 4/8] update relase --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 137efdb..3858453 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -56,7 +56,7 @@ jobs: - name: Build grammars if: always() - run: mkdir ./output && mkdir ./tmp && cargo run --release -- --output ./output --/tmp ./tmp + run: mkdir ./output && mkdir ./tmp && cargo run --release -- --output ./output --tmp ./tmp - name: Create tarball run: | From e0f686e9fa4a42f7ab7e412d8e314aa99fc4e14b Mon Sep 17 00:00:00 2001 From: Dongdong Zhou Date: Sat, 3 Aug 2024 00:03:55 +0100 Subject: [PATCH 5/8] update --- queries-helix | 1 - 1 file changed, 1 deletion(-) delete mode 160000 queries-helix diff --git a/queries-helix b/queries-helix deleted file mode 160000 index cfe80ac..0000000 --- a/queries-helix +++ /dev/null @@ -1 +0,0 @@ -Subproject commit cfe80acb6f8893e20dc04ff9a99c4551c3129624 From fc1c80313ceff9827670e248718d8032ced85641 Mon Sep 17 00:00:00 2001 From: Dongdong Zhou Date: Sat, 3 Aug 2024 00:10:11 +0100 Subject: [PATCH 6/8] update --- .github/workflows/release.yaml | 8 ++------ src/main.rs | 27 +++++++++++++++++++-------- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3858453..efb98a8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -79,10 +79,6 @@ jobs: # before running, and would therefore delete the downloaded artifacts - uses: actions/checkout@v4 - - name: Checkout helix repo - run: | - git submodule update --init ./queries-helix/ - - uses: actions/download-artifact@v4 with: path: ./artefacts @@ -92,8 +88,8 @@ jobs: run: | mkdir -p ./queries-output/ - rsync -avh --progress ./queries-helix/runtime/queries/ ./queries-output/ - cp ./queries-helix/LICENSE ./queries/helix.LICENSE + rsync -avh --progress ./tmp/helix/runtime/queries/ ./queries-output/ + cp ./tmp/helix/LICENSE ./queries/helix.LICENSE tar -C ./queries-output -cvf ./artefacts/queries.tar . zstd ./artefacts/queries.tar -o ./artefacts/queries.tar.zst diff --git a/src/main.rs b/src/main.rs index a3839de..11eb985 100644 --- a/src/main.rs +++ b/src/main.rs @@ -105,14 +105,9 @@ fn main() -> Result<()> { }; for grammar in config.grammar { - let path = tmp_dir.join(format! {"tree-sitter-{}",grammar.name}); - checkout_repo(&path, &grammar.source.git, &grammar.source.rev)?; - let path = if let Some(subpath) = grammar.source.subpath.as_ref() { - path.join(subpath) - } else { - path - }; - build_tree_sitter(&grammar.name, &path, &output_dir)?; + if let Err(e) = build_grammar(&grammar, &output_dir, &tmp_dir) { + println!("error build grammar {}: {e}", grammar.name,) + } } Ok(()) } @@ -154,6 +149,22 @@ fn checkout_repo(path: &Path, repo: &str, rev: &str) -> Result<()> { Ok(()) } +fn build_grammar( + grammar: &GrammarConfig, + output_dir: &Path, + tmp_dir: &Path, +) -> Result<()> { + let path = tmp_dir.join(format! {"tree-sitter-{}",grammar.name}); + checkout_repo(&path, &grammar.source.git, &grammar.source.rev)?; + let path = if let Some(subpath) = grammar.source.subpath.as_ref() { + path.join(subpath) + } else { + path + }; + build_tree_sitter(&grammar.name, &path, output_dir)?; + Ok(()) +} + fn build_tree_sitter(name: &str, path: &Path, output: &Path) -> Result<()> { println!("now building tree sitter for {name}"); let output = Command::new("tree-sitter") From 0d3dca3e2f632baf8e01cd9b1060864f754f79dd Mon Sep 17 00:00:00 2001 From: Dongdong Zhou Date: Sat, 3 Aug 2024 00:14:58 +0100 Subject: [PATCH 7/8] update output --- src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 11eb985..a8e0cc9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,7 +3,8 @@ use clap::Parser; use dunce::canonicalize; use serde::{Deserialize, Serialize}; use std::{ - fs::{self}, + fs, + io::{stderr, stdout}, path::{Path, PathBuf}, process::Command, }; @@ -166,6 +167,7 @@ fn build_grammar( } fn build_tree_sitter(name: &str, path: &Path, output: &Path) -> Result<()> { + println!("-----------------------------------"); println!("now building tree sitter for {name}"); let output = Command::new("tree-sitter") .current_dir(path) @@ -175,6 +177,8 @@ fn build_tree_sitter(name: &str, path: &Path, output: &Path) -> Result<()> { "libtree-sitter-{name}.{}", std::env::consts::DLL_EXTENSION ))) + .stdout(stdout()) + .stderr(stderr()) .output()?; if !output.status.success() { return Err(anyhow!("tree sitter build failed for {name}")); From c0ac443ed7a5091fe2817f1f7398e350ecf0c0bf Mon Sep 17 00:00:00 2001 From: Dongdong Zhou Date: Sat, 3 Aug 2024 07:51:53 +0100 Subject: [PATCH 8/8] update readme --- README.md | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) diff --git a/README.md b/README.md index 2872b7e..b04bc5b 100644 --- a/README.md +++ b/README.md @@ -1,50 +1 @@ # tree-sitter-grammars - -## Grammars - -### Checkout - -```shell -git submodule update --init -``` - -### Checkout recursively (for tests and etc.) - -```shell -git submodule update --init --recursive -``` - -### Build - -```shell -./make.py -``` - -Built artefacts are in `./output` - -### Clean - -Removes untracked files - -```shell -git submodule foreach git clean -f -``` - -Removes untracked and ignored files - -```shell -git submodule foreach git clean -f -x -``` - -## Update - -### Update sequence - -```shell -git clone https://github.com/$USER/tree-sitter-grammars.git -git submodule init grammars/tree-sitter-$NAME/ -git -C ./grammars/tree-sitter-$NAME/ checkout -git add ./grammars/tree-sitter-$NAME -git checkout -b feature/update-$NAME-grammar -git push -```