You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helix-plus/runtime/queries
Michael Davis 4e877de54d
Fix Golang textobject queries (#2153)
* log textobject query construction errors

The current behavior is that invalid queries are discarded silently
which makes it difficult to debug invalid textobjects (either invalid
syntax or an update may have come through that changed the valid set
of nodes).

* fix golang textobject query

`method_spec_list` used to be a named node but was removed (I think
for Helix, it was when updated to pull in the support for generics).
Instead of a named node for the list of method specs we have a bunch
of `method_spec` children nodes now. We can match on the set of them
with a `+` wildcard.

Example go for this query:

    type Shape interface {
       area() float64
       perimeter() float64
    }

Which is parsed as:

    (source_file
      (type_declaration
        (type_spec
          name: (type_identifier)
          type: (interface_type
            (method_spec
              name: (field_identifier)
              parameters: (parameter_list)
              result: (type_identifier))
            (method_spec
              name: (field_identifier)
              parameters: (parameter_list)
              result: (type_identifier))))))
2 years ago
..
bash Update bash tree sitter (#1917) 2 years ago
c Indentation rework (#1562) 2 years ago
c-sharp C# highlighting improvements (#1795) 2 years ago
cmake Indentation rework (#1562) 2 years ago
comment Add tree-sitter-comment (#1300) 3 years ago
cpp Indentation rework (#1562) 2 years ago
css tree sitter comments injections (#1527) 2 years ago
dart Indentation rework (#1562) 2 years ago
dockerfile Support dockerfiles (#1303) 3 years ago
eex add tree-sitter-eex 2 years ago
ejs add tree-sitter-embedded-template (erb & ejs) (#2055) 2 years ago
elixir add tree-sitter-heex 2 years ago
elm feat(languages): Elm (#1514) 2 years ago
erb add tree-sitter-embedded-template (erb & ejs) (#2055) 2 years ago
erlang Update tree-sitters Erlang and HEEx (#2149) 2 years ago
fish Fixing (in two ways) a small typo (#2156) 2 years ago
gdscript gdscript support (#1985) 2 years ago
git-commit update tree-sitter-git-commit (#1838) 2 years ago
git-config add tree-sitter-git-config (#1426) 3 years ago
git-diff Add tree-sitter-git-diff (#1373) 3 years ago
git-rebase add tree-sitter-git-rebase (#1402) 3 years ago
gleam add tree-sitter-gleam 2 years ago
glsl Indentation rework (#1562) 2 years ago
go Fix Golang textobject queries (#2153) 2 years ago
graphql feat(languages): GraphQL (#1515) 2 years ago
haskell tree sitter comments injections (#1527) 2 years ago
hcl Indentation rework (#1562) 2 years ago
heex Update tree-sitters Erlang and HEEx (#2149) 2 years ago
html tree sitter comments injections (#1527) 2 years ago
iex add tree-sitter-iex (#1576) 2 years ago
java tree sitter comments injections (#1527) 2 years ago
javascript Add JavaScript control keywords (#2140) 2 years ago
json Indentation rework (#1562) 2 years ago
jsx separate JSX queries from javascript (#1921) 2 years ago
julia tree sitter comments injections (#1527) 2 years ago
kotlin Add kotlin language (#1689) 2 years ago
latex tree sitter comments injections (#1527) 2 years ago
lean feat(languages): Lean experimental tree-sitter-lean (#1422) 2 years ago
ledger Add tree-sitter-comment (#1300) 3 years ago
llvm Indentation rework (#1562) 2 years ago
llvm-mir Indentation rework (#1562) 2 years ago
llvm-mir-yaml Indentation rework (#1562) 2 years ago
lua Indentation rework (#1562) 2 years ago
make tree sitter comments injections (#1527) 2 years ago
markdown Allow separate styles for markup headings (#1618) 2 years ago
nix Indentation rework (#1562) 2 years ago
ocaml Indentation rework (#1562) 2 years ago
ocaml-interface tree sitter comments injections (#1527) 2 years ago
org Initial basic Org markup support thanks to tree-sitter-org (#1845) 2 years ago
perl Indentation rework (#1562) 2 years ago
php Indentation rework (#1562) 2 years ago
protobuf Indentation rework (#1562) 2 years ago
python Indentation rework (#1562) 2 years ago
r add languages `r` and `rmarkdown` (#1998) 2 years ago
regex add tree-sitter-regex (#1362) 3 years ago
rescript Fix Rescript hightlights query (#1863) 2 years ago
rmarkdown add languages `r` and `rmarkdown` (#1998) 2 years ago
ron add language `ron` (#1925) 2 years ago
ruby Ruby TextObjects and more file extensions (#2143) 2 years ago
rust Indentation rework (#1562) 2 years ago
scala Indentation rework (#1562) 2 years ago
solidity Add syntax highlighting for Solidity (#1854) 2 years ago
sql feat(languages): SQL (#2097) 2 years ago
svelte Indentation rework (#1562) 2 years ago
swift Add swift language (#2033) 2 years ago
tablegen Indentation rework (#1562) 2 years ago
toml tree sitter comments injections (#1527) 2 years ago
tsq Add tree-sitter-comment (#1300) 3 years ago
tsx tree sitter comments injections (#1527) 2 years ago
twig epocsquadron/add tree sitter twig (#1602) 2 years ago
typescript Indentation rework (#1562) 2 years ago
vue tree sitter comments injections (#1527) 2 years ago
wgsl tree sitter comments injections (#1527) 2 years ago
yaml Indentation rework (#1562) 2 years ago
zig Indentation rework (#1562) 2 years ago