forked from Mirrors/helix
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.
4e877de54d
* 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 | 3 years ago | |
c | 3 years ago | |
c-sharp | 3 years ago | |
cmake | 3 years ago | |
comment | 3 years ago | |
cpp | 3 years ago | |
css | 3 years ago | |
dart | 3 years ago | |
dockerfile | 3 years ago | |
eex | 3 years ago | |
ejs | 3 years ago | |
elixir | 3 years ago | |
elm | 3 years ago | |
erb | 3 years ago | |
erlang | 3 years ago | |
fish | 3 years ago | |
gdscript | 3 years ago | |
git-commit | 3 years ago | |
git-config | 3 years ago | |
git-diff | 3 years ago | |
git-rebase | 3 years ago | |
gleam | 3 years ago | |
glsl | 3 years ago | |
go | 3 years ago | |
graphql | 3 years ago | |
haskell | 3 years ago | |
hcl | 3 years ago | |
heex | 3 years ago | |
html | 3 years ago | |
iex | 3 years ago | |
java | 3 years ago | |
javascript | 3 years ago | |
json | 3 years ago | |
jsx | 3 years ago | |
julia | 3 years ago | |
kotlin | 3 years ago | |
latex | 3 years ago | |
lean | 3 years ago | |
ledger | 3 years ago | |
llvm | 3 years ago | |
llvm-mir | 3 years ago | |
llvm-mir-yaml | 3 years ago | |
lua | 3 years ago | |
make | 3 years ago | |
markdown | 3 years ago | |
nix | 3 years ago | |
ocaml | 3 years ago | |
ocaml-interface | 3 years ago | |
org | 3 years ago | |
perl | 3 years ago | |
php | 3 years ago | |
protobuf | 3 years ago | |
python | 3 years ago | |
r | 3 years ago | |
regex | 3 years ago | |
rescript | 3 years ago | |
rmarkdown | 3 years ago | |
ron | 3 years ago | |
ruby | 3 years ago | |
rust | 3 years ago | |
scala | 3 years ago | |
solidity | 3 years ago | |
sql | 3 years ago | |
svelte | 3 years ago | |
swift | 3 years ago | |
tablegen | 3 years ago | |
toml | 3 years ago | |
tsq | 3 years ago | |
tsx | 3 years ago | |
twig | 3 years ago | |
typescript | 3 years ago | |
vue | 3 years ago | |
wgsl | 3 years ago | |
yaml | 3 years ago | |
zig | 3 years ago |