Skip to content

Commit

Permalink
Merge pull request #2389 from masatake/improve-docs-and-man-pages-1
Browse files Browse the repository at this point in the history
Move "SOURCE FILES" section after "OPTION ITEMS" section (and more)
  • Loading branch information
masatake authored Feb 19, 2020
2 parents 381d6ba + 1a00d33 commit 926fe23
Show file tree
Hide file tree
Showing 9 changed files with 2,623 additions and 2,582 deletions.
33 changes: 21 additions & 12 deletions docs/man/ctags-incompatibilities.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,24 @@ incompatibility.
options are helpful to verify and the file extensions and the file
name patterns of given *language*.

Unexpected synchronization between ``--file-scope`` option and "F/fileScope" extra
Remove ``--file-tags`` and ``--file-scope`` options
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Universal-ctags introduces "F/fileScope" extra as the alternative to
``--file-scope`` option.
Even in Exuberant-ctags, "--file-tags" is not documented in its man page.
Instead of specifying "--file-tags" or "--file-tags=yes", use
"--extras=+f" or "--extras=+{inputFile}".

Instead of specifying "--file-tags=no", use
"--extras=-f" or "--extras=-{inputFile}".

Providing the two way to control the same thing in Universal-ctags
internal can cause a trouble.
Universal-ctags introduces "F/fileScope" extra as the replacement for
``--file-scope`` option.

A user, expecting "--file-scope=yes" is enabled by default, gives
"--extras=q". The intention of the user may be just enabling
"q/qualified". However, "--extras=q" is evaluated as "disabling all
extras including F/fileScope, then enabling only
q/qualified". Unexpectedly the command line becomes as if
"--file-scope=no" is set.
Instead of specifying "--file-tags" or "--file-tags=yes", use
"--extras=+F" or "--extras=+{fileScope}".

In this case, the user should set "--extras=+q" instead of "--extras=q".
Instead of specifying "--file-tags=no", use
"--extras=-F" or "--extras=-{fileScope}".

Language and kind definitions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -170,6 +171,14 @@ letters other than initial letter of the name part.
The kinds "heading1", "heading2", and "heading3" in the HTML parser
are the examples.

Truncating the pattern for long input lines
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

To prevent generating overly large tags files, a pattern field is
truncated, by default, when its size exceeds 96 bytes. A different
limit can be specified with ``--pattern-length-limit=N``. Specifying
0 as *N* results no truncation as Exuberant-ctags does not.

Option files loading at starting up time (preload files)
-------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/man/ctags-optlib.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ This is the definition (pod.ctags) used in ctags for parsing pod
--regex-pod=/^=head4[ \t]+(.+)/\1/t/


OPTION ITEMS
OPTIONS
------------

``--langdef=name``
Expand Down
Loading

0 comments on commit 926fe23

Please sign in to comment.