Skip to content

Commit 484e78d

Browse files
committed
Add anchors after doc comments in tag query
1 parent c4f5c8f commit 484e78d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

queries/tags.scm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
(
22
(comment)* @doc
3+
.
34
(method_definition
45
name: (property_identifier) @name) @definition.method
56
(#not-eq? @name "constructor")
@@ -9,6 +10,7 @@
910

1011
(
1112
(comment)* @doc
13+
.
1214
[
1315
(class
1416
name: (_) @name)
@@ -21,6 +23,7 @@
2123

2224
(
2325
(comment)* @doc
26+
.
2427
[
2528
(function
2629
name: (identifier) @name)
@@ -37,6 +40,7 @@
3740

3841
(
3942
(comment)* @doc
43+
.
4044
(lexical_declaration
4145
(variable_declarator
4246
name: (identifier) @name
@@ -47,6 +51,7 @@
4751

4852
(
4953
(comment)* @doc
54+
.
5055
(variable_declaration
5156
(variable_declarator
5257
name: (identifier) @name

0 commit comments

Comments
 (0)