Skip to content

Commit 27019d1

Browse files
author
Patrick Thomson
committed
demonstrate that select-adjacent works
1 parent 65da86f commit 27019d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/section-8-code-navigation-systems.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ You can use the `tree-sitter tags` command to test out a tags query file, passin
8282
``` ruby
8383
module Foo
8484
class Bar
85-
# wow!
85+
# won't be included
86+
87+
# is adjacent, will be
8688
def baz
8789
end
8890
end
@@ -95,7 +97,7 @@ Invoking `tree-sitter tags test.rb` produces the following console output, repre
9597
test.rb
9698
Foo | module def (0, 7) - (0, 10) `module Foo`
9799
Bar | class def (1, 8) - (1, 11) `class Bar`
98-
baz | method def (2, 8) - (2, 11) `def baz` "wow!"
100+
baz | method def (2, 8) - (2, 11) `def baz` "is adjacent, will be"
99101
```
100102

101103
It is expected that tag queries for a given language are located at `queries/tags.scm` in that language's repository.

0 commit comments

Comments
 (0)