Skip to content

Commit d0c0924

Browse files
committed
fixup! docs(man): add a page for GDScript parser
Write about the "extended" role.
1 parent 4833106 commit d0c0924

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

docs/man/ctags-lang-gdscript.7.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,22 @@ with "--options=NONE --fields=+Ki --extras-GDScript=+{implicitClass} -o - input.
189189
190190
C input.gd /^class_name C$/;" class inherits:B
191191
192+
When `--extras=+r` is given, the parser extracts the class specified with the
193+
`extends` keyword as a referece tag of ``class`` kind with ``extended`` role.
194+
195+
"input.gd"
196+
197+
.. code-block:: GDScript
198+
199+
extends B
200+
201+
"output.tags"
202+
with "--options=NONE --fields=+rEK --extras=+r -o - input.gd"
203+
204+
.. code-block:: tags
205+
206+
B input.gd /^extends B$/;" class roles:extended extras:reference
207+
192208
SEE ALSO
193209
--------
194210
:ref:`ctags(1) <ctags(1)>`

man/ctags-lang-gdscript.7.rst.in

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,22 @@ with "--options=NONE --fields=+Ki --extras-GDScript=+{implicitClass} -o - input.
189189

190190
C input.gd /^class_name C$/;" class inherits:B
191191

192+
When `--extras=+r` is given, the parser extracts the class specified with the
193+
`extends` keyword as a referece tag of ``class`` kind with ``extended`` role.
194+
195+
"input.gd"
196+
197+
.. code-block:: GDScript
198+
199+
extends B
200+
201+
"output.tags"
202+
with "--options=NONE --fields=+rEK --extras=+r -o - input.gd"
203+
204+
.. code-block:: tags
205+
206+
B input.gd /^extends B$/;" class roles:extended extras:reference
207+
192208
SEE ALSO
193209
--------
194210
ctags(1)

0 commit comments

Comments
 (0)