demonstrate that select-adjacent works

This commit is contained in:
Patrick Thomson 2022-02-17 18:28:09 -05:00
parent 65da86f16f
commit 27019d1172

View file

@ -82,7 +82,9 @@ You can use the `tree-sitter tags` command to test out a tags query file, passin
``` ruby
module Foo
class Bar
# wow!
# won't be included
# is adjacent, will be
def baz
end
end
@ -95,7 +97,7 @@ Invoking `tree-sitter tags test.rb` produces the following console output, repre
test.rb
Foo | module def (0, 7) - (0, 10) `module Foo`
Bar | class def (1, 8) - (1, 11) `class Bar`
baz | method def (2, 8) - (2, 11) `def baz` "wow!"
baz | method def (2, 8) - (2, 11) `def baz` "is adjacent, will be"
```
It is expected that tag queries for a given language are located at `queries/tags.scm` in that language's repository.