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