Skip to content

Commit 85b6b39

Browse files
committed
Units,DocBook: import a test case from Geany
The input is taken from universal-ctags#2106 submitted by @techee.
1 parent 1a8dfec commit 85b6b39

File tree

5 files changed

+62
-3
lines changed

5 files changed

+62
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--sort=no
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
nsb3014c060101 input.docbook /^<article xmlns='http:\/\/docbook.org\/ns\/docbook'>$/;" n uri:http://docbook.org/ns/docbook
2+
chapter1 input.docbook /^ <chapter id="chapter1"><title>Required Chapter<\/title>$/;" i
3+
intro input.docbook /^ <section id="intro">$/;" i
4+
sect1 input.docbook /^ <sect1 id="sect1">$/;" i
5+
sect2 input.docbook /^ <sect2 id="sect2">$/;" i
6+
sect3 input.docbook /^ <sect3 id="sect3">$/;" i
7+
conclusion input.docbook /^ <section id="conclusion">$/;" i
8+
My first docbook document input.docbook /^ <title>My first docbook document<\/title>$/;" t parentTag:info
9+
Required Chapter input.docbook /^ <chapter id="chapter1"><title>Required Chapter<\/title>$/;" t parentTag:chapter parentId:chapter1
10+
Introduction input.docbook /^ <title>Introduction<\/title>$/;" t parentTag:section parentId:intro
11+
Section with a title input.docbook /^ <title>Section with a title<\/title>$/;" t parentTag:sect1 parentId:sect1
12+
Section with a title input.docbook /^ <title>Section with a title<\/title>$/;" t parentTag:sect2 parentId:sect2
13+
Section with a title input.docbook /^ <title>Section with a title<\/title>$/;" t parentTag:sect3 parentId:sect3
14+
Conclusion input.docbook /^ <title>Conclusion<\/title>$/;" t parentTag:section parentId:conclusion
15+
Demonstration Appendix input.docbook /^ <appendix><title>Demonstration Appendix<\/title>$/;" t parentTag:appendix
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
xpath
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<article xmlns='http://docbook.org/ns/docbook'>
2+
<info>
3+
<title>My first docbook document</title>
4+
<author><personname>
5+
<firstname>Seth</firstname>
6+
<surname>Kenlon</surname>
7+
</personname></author>
8+
<publisher><publishername>opensource.com</publishername></publisher>
9+
<pubdate>2017</pubdate>
10+
</info>
11+
12+
<chapter id="chapter1"><title>Required Chapter</title>
13+
<para>
14+
At least one chapter, reference, part, or article is required in a book.
15+
</para>
16+
</chapter>
17+
18+
<section id="intro">
19+
<title>Introduction</title>
20+
<para>Introductory text goes here.</para>
21+
</section>
22+
23+
<sect1 id="sect1">
24+
<title>Section with a title</title>
25+
<para>Main body text goes here.</para>
26+
</sect1>
27+
28+
<sect2 id="sect2">
29+
<title>Section with a title</title>
30+
<para>Main body text goes here.</para>
31+
</sect2>
32+
33+
<sect3 id="sect3">
34+
<title>Section with a title</title>
35+
<para>Main body text goes here.</para>
36+
</sect3>
37+
38+
<section id="conclusion">
39+
<title>Conclusion</title>
40+
<para>Exciting and inspiring conclusion goes here.</para>
41+
</section>
42+
43+
<appendix><title>Demonstration Appendix</title>
44+
</appendix>
45+
</article>

docs/other-projects.rst

-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ They have these additional language parsers:
3434
* `Abaqus <http://en.wikipedia.org/wiki/Abaqus>`_
3535
* `ActionScript <http://en.wikipedia.org/wiki/ActionScript>`_
3636
* `AsciiDoc <http://en.wikipedia.org/wiki/AsciiDoc>`_
37-
* `DocBook <http://en.wikipedia.org/wiki/DocBook>`_
3837
* `Ferite (c.c) <http://en.wikipedia.org/wiki/Ferite>`_
3938
* `GLSL (c.c) <http://en.wikipedia.org/wiki/OpenGL_Shading_Language>`_
4039
* `Haskell <http://en.wikipedia.org/wiki/Haskell_%28programming_language%29>`_
@@ -92,5 +91,3 @@ Linux kernel
9291

9392
See linux/scripts/tags.sh of Linux kernel source tree.
9493
It utilizes c parser to the utmost limit.
95-
96-

0 commit comments

Comments
 (0)