Skip to content

Commit

Permalink
Merge pull request #3574 from masatake/ctags6
Browse files Browse the repository at this point in the history
Universal Ctags 6.0.0,  slightly safer ctags
  • Loading branch information
masatake authored Dec 15, 2022
2 parents 2fd9b0c + 373863f commit 3af4135
Show file tree
Hide file tree
Showing 28 changed files with 41 additions and 44 deletions.
22 changes: 11 additions & 11 deletions Tmain/json-output-format.d/stdout-expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{"_type": "tag", "name": "main", "path": "input.go", "pattern": "/^func main() {$/", "language": "Go", "line": 3, "kind": "func", "signature": "()", "scope": "main", "scopeKind": "package", "roles": "def", "end": 4}
{"_type": "tag", "name": "main", "path": "input.go", "pattern": "/^package main$/", "language": "Go", "line": 1, "kind": "package", "roles": "def"}
# json --languages=+man --fields=*-T --extras=*
{"_type": "ptag", "name": "JSON_OUTPUT_VERSION", "path": "0.0", "pattern": "in development"}
{"_type": "ptag", "name": "JSON_OUTPUT_VERSION", "path": "1.0", "pattern": "in development"}
{"_type": "ptag", "name": "TAG_EXTRA_DESCRIPTION", "path": "anonymous", "pattern": "Include tags for non-named objects like lambda"}
{"_type": "ptag", "name": "TAG_EXTRA_DESCRIPTION", "path": "fileScope", "pattern": "Include tags of file scope"}
{"_type": "ptag", "name": "TAG_EXTRA_DESCRIPTION", "path": "guest", "pattern": "Include tags generated by guest parsers"}
Expand Down Expand Up @@ -90,16 +90,16 @@
{"_type": "ptag", "name": "TAG_PROGRAM_AUTHOR", "path": "Universal Ctags Team", "pattern": ""}
{"_type": "ptag", "name": "TAG_PROGRAM_NAME", "path": "Universal Ctags", "pattern": "Derived from Exuberant Ctags"}
{"_type": "ptag", "name": "TAG_PROGRAM_URL", "path": "https://ctags.io/", "pattern": "official site"}
{"_type": "ptag", "name": "TAG_ROLE_DESCRIPTION", "parserName": "C!header", "path": "local", "pattern": "local header"}
{"_type": "ptag", "name": "TAG_ROLE_DESCRIPTION", "parserName": "C!header", "path": "system", "pattern": "system header"}
{"_type": "ptag", "name": "TAG_ROLE_DESCRIPTION", "parserName": "C!macro", "path": "undef", "pattern": "undefined"}
{"_type": "ptag", "name": "TAG_ROLE_DESCRIPTION", "parserName": "Go!package", "path": "imported", "pattern": "imported package"}
{"_type": "ptag", "name": "TAG_ROLE_DESCRIPTION", "parserName": "Go!unknown", "path": "receiverType", "pattern": "receiver type"}
{"_type": "ptag", "name": "TAG_ROLE_DESCRIPTION", "parserName": "Python!module", "path": "imported", "pattern": "imported modules"}
{"_type": "ptag", "name": "TAG_ROLE_DESCRIPTION", "parserName": "Python!module", "path": "indirectlyImported", "pattern": "module imported in alternative name"}
{"_type": "ptag", "name": "TAG_ROLE_DESCRIPTION", "parserName": "Python!module", "path": "namespace", "pattern": "namespace from where classes\\/variables\\/functions are imported"}
{"_type": "ptag", "name": "TAG_ROLE_DESCRIPTION", "parserName": "Python!unknown", "path": "imported", "pattern": "imported from the other module"}
{"_type": "ptag", "name": "TAG_ROLE_DESCRIPTION", "parserName": "Python!unknown", "path": "indirectlyImported", "pattern": "classes\\/variables\\/functions\\/modules imported in alternative name"}
{"_type": "ptag", "name": "TAG_ROLE_DESCRIPTION", "parserName": "C", "kindName": "header", "path": "local", "pattern": "local header"}
{"_type": "ptag", "name": "TAG_ROLE_DESCRIPTION", "parserName": "C", "kindName": "header", "path": "system", "pattern": "system header"}
{"_type": "ptag", "name": "TAG_ROLE_DESCRIPTION", "parserName": "C", "kindName": "macro", "path": "undef", "pattern": "undefined"}
{"_type": "ptag", "name": "TAG_ROLE_DESCRIPTION", "parserName": "Go", "kindName": "package", "path": "imported", "pattern": "imported package"}
{"_type": "ptag", "name": "TAG_ROLE_DESCRIPTION", "parserName": "Go", "kindName": "unknown", "path": "receiverType", "pattern": "receiver type"}
{"_type": "ptag", "name": "TAG_ROLE_DESCRIPTION", "parserName": "Python", "kindName": "module", "path": "imported", "pattern": "imported modules"}
{"_type": "ptag", "name": "TAG_ROLE_DESCRIPTION", "parserName": "Python", "kindName": "module", "path": "indirectlyImported", "pattern": "module imported in alternative name"}
{"_type": "ptag", "name": "TAG_ROLE_DESCRIPTION", "parserName": "Python", "kindName": "module", "path": "namespace", "pattern": "namespace from where classes\\/variables\\/functions are imported"}
{"_type": "ptag", "name": "TAG_ROLE_DESCRIPTION", "parserName": "Python", "kindName": "unknown", "path": "imported", "pattern": "imported from the other module"}
{"_type": "ptag", "name": "TAG_ROLE_DESCRIPTION", "parserName": "Python", "kindName": "unknown", "path": "indirectlyImported", "pattern": "classes\\/variables\\/functions\\/modules imported in alternative name"}
{"_type": "tag", "name": "Foo", "path": "input.py", "pattern": "/^class Foo:$/", "language": "Python", "line": 1, "kind": "class", "inherits": false, "access": "public", "roles": "def", "end": 3}
{"_type": "tag", "name": "Foo.doIt", "path": "input.py", "pattern": "/^ def doIt():$/", "language": "Python", "line": 2, "kind": "member", "access": "public", "signature": "()", "scope": "Foo", "scopeKind": "class", "roles": "def", "extras": "qualified", "end": 3}
{"_type": "tag", "name": "N\tA\tM\tE", "path": "input.1", "pattern": "/^.SH \"\tN\tA\tM\tE\t\"$/", "language": "Man", "line": 1, "kind": "section", "roles": "def", "end": 1}
Expand Down
2 changes: 1 addition & 1 deletion Tmain/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,5 @@ check_encoding()

jdropver()
{
sed -e 's/, "version": "5.9.0"//'
sed -e 's/, "version": "[0-9.]*"//'
}
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.64])
AC_INIT([universal-ctags],[5.9.0])
AC_INIT([universal-ctags],[6.0.0])

if ! test -e "${srcdir}/config.h.in"; then
echo "---"
Expand Down
2 changes: 1 addition & 1 deletion docs/man/ctags-client-tools.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ctags-client-tools

Hints for developing a tool using ctags command and tags output

:Version: 5.9.0
:Version: 6.0.0
:Manual group: Universal Ctags
:Manual section: 7

Expand Down
2 changes: 1 addition & 1 deletion docs/man/ctags-faq.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ctags-faq

Universal Ctags FAQ

:Version: 5.9.0
:Version: 6.0.0
:Manual group: Universal Ctags
:Manual section: 7

Expand Down
2 changes: 1 addition & 1 deletion docs/man/ctags-incompatibilities.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ctags-incompatibilities

Incompatibilities between Universal Ctags and Exuberant Ctags

:Version: 5.9.0
:Version: 6.0.0
:Manual group: Universal Ctags
:Manual section: 7

Expand Down
2 changes: 1 addition & 1 deletion docs/man/ctags-lang-asm.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ctags-lang-asm

Random notes about tagging Assembly language source code with Universal Ctags

:Version: 5.9.0
:Version: 6.0.0
:Manual group: Universal Ctags
:Manual section: 7

Expand Down
2 changes: 1 addition & 1 deletion docs/man/ctags-lang-elm.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ctags-lang-elm

Random notes about tagging Elm source code with Universal Ctags

:Version: 5.9.0
:Version: 6.0.0
:Manual group: Universal Ctags
:Manual section: 7

Expand Down
2 changes: 1 addition & 1 deletion docs/man/ctags-lang-gdscript.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ctags-lang-gdscript

Random notes about tagging GDScript source code with Universal Ctags

:Version: 5.9.0
:Version: 6.0.0
:Manual group: Universal Ctags
:Manual section: 7

Expand Down
2 changes: 1 addition & 1 deletion docs/man/ctags-lang-iPythonCell.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ctags-lang-iPythonCell

The man page of the iPythonCell parser for Universal Ctags

:Version: 5.9.0
:Version: 6.0.0
:Manual group: Universal Ctags
:Manual section: 7

Expand Down
2 changes: 1 addition & 1 deletion docs/man/ctags-lang-inko.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ctags-lang-inko
======================================================================

:Version: 5.9.0
:Version: 6.0.0
:Manual group: Universal Ctags
:Manual section: 7

Expand Down
2 changes: 1 addition & 1 deletion docs/man/ctags-lang-javascript.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ctags-lang-javascript

Random notes about tagging JavaScript source code with Universal Ctags

:Version: 5.9.0
:Version: 6.0.0
:Manual group: Universal Ctags
:Manual section: 7

Expand Down
2 changes: 1 addition & 1 deletion docs/man/ctags-lang-julia.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ctags-lang-julia

Random notes about tagging Julia source code with Universal-ctags

:Version: 5.9.0
:Version: 6.0.0
:Manual group: Universal-ctags
:Manual section: 7

Expand Down
2 changes: 1 addition & 1 deletion docs/man/ctags-lang-python.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ctags-lang-python

Random notes about tagging python source code with Universal Ctags

:Version: 5.9.0
:Version: 6.0.0
:Manual group: Universal Ctags
:Manual section: 7

Expand Down
2 changes: 1 addition & 1 deletion docs/man/ctags-lang-r.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ctags-lang-r

Random notes about tagging R source code with Universal Ctags

:Version: 5.9.0
:Version: 6.0.0
:Manual group: Universal Ctags
:Manual section: 7

Expand Down
2 changes: 1 addition & 1 deletion docs/man/ctags-lang-rmarkdown.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ctags-lang-rmarkdown

Random notes about tagging R Markdown source code with Universal Ctags

:Version: 5.9.0
:Version: 6.0.0
:Manual group: Universal Ctags
:Manual section: 7

Expand Down
2 changes: 1 addition & 1 deletion docs/man/ctags-lang-sql.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ctags-lang-sql

The man page of the SQL parser for Universal Ctags

:Version: 5.9.0
:Version: 6.0.0
:Manual group: Universal Ctags
:Manual section: 7

Expand Down
2 changes: 1 addition & 1 deletion docs/man/ctags-lang-tcl.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ctags-lang-tcl

Random notes about tagging tcl source code with Universal Ctags

:Version: 5.9.0
:Version: 6.0.0
:Manual group: Universal Ctags
:Manual section: 7

Expand Down
2 changes: 1 addition & 1 deletion docs/man/ctags-lang-verilog.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ctags-lang-verilog
The man page about SystemVerilog/Verilog parser for Universal Ctags


:Version: 5.9.0
:Version: 6.0.0
:Manual group: Universal Ctags
:Manual section: 7

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 @@ -6,7 +6,7 @@ ctags-optlib

Universal Ctags parser definition language

:Version: 5.9.0
:Version: 6.0.0
:Manual group: Universal Ctags
:Manual section: 7

Expand Down
2 changes: 1 addition & 1 deletion docs/man/ctags.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ctags

Generate tag files for source code

:Version: 5.9.0
:Version: 6.0.0
:Manual group: Universal Ctags
:Manual section: 1

Expand Down
2 changes: 1 addition & 1 deletion docs/man/readtags.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ readtags

Find tag file entries matching specified names

:Version: 5.9.0
:Version: 6.0.0
:Manual group: Universal Ctags
:Manual section: 1

Expand Down
2 changes: 1 addition & 1 deletion main/ctags.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#if defined (HAVE_CONFIG_H)
# define PROGRAM_VERSION PACKAGE_VERSION
#else
# define PROGRAM_VERSION "5.9.0"
# define PROGRAM_VERSION "6.0.0"
#endif
#define PROGRAM_NAME "Universal Ctags"
#define PROGRAM_URL "https://ctags.io/"
Expand Down
2 changes: 1 addition & 1 deletion main/writer-json.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* If they have been added since last release, increment AGE.
* If they have been removed since last release, set AGE to 0
*/
#define JSON_WRITER_CURRENT 0
#define JSON_WRITER_CURRENT 1
#define JSON_WRITER_AGE 0

#ifndef json_boolean /* compat with jansson < 2.4 */
Expand Down
5 changes: 1 addition & 4 deletions misc/git-tag-maybe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

set -e

echo tagging is disabled temporary
exit 0

##################################### util #######################################

COLOR_RED='\033[0;31m' # Red
Expand All @@ -23,7 +20,7 @@ run() {

##################################### main #######################################

base=5.9
base=6.0
cal=$(date +%Y%m%d)
chicken=0
new_tagname="p${base}.${cal}.${chicken}"
Expand Down
6 changes: 3 additions & 3 deletions win32/config_mingw.h
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@
#define PACKAGE_NAME "universal-ctags"

/* Define to the full name and version of this package. */
#define PACKAGE_STRING "universal-ctags 5.9.0"
#define PACKAGE_STRING "universal-ctags 6.0.0"

/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "universal-ctags"
Expand All @@ -515,7 +515,7 @@
#define PACKAGE_URL ""

/* Define to the version of this package. */
#define PACKAGE_VERSION "5.9.0"
#define PACKAGE_VERSION "6.0.0"

/* Define if the pthread_in_use() detection is hard. */
/* #undef PTHREAD_IN_USE_DETECTION_HARD */
Expand Down Expand Up @@ -657,7 +657,7 @@
/* #undef USE_WINDOWS_THREADS */

/* Package version. */
#define VERSION "5.9.0"
#define VERSION "6.0.0"

/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type
'wchar_t'. */
Expand Down
2 changes: 1 addition & 1 deletion win32/ctags.exe.manifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity type="win32" name="Universal Ctags" version="5.9.0.0" />
<assemblyIdentity type="win32" name="Universal Ctags" version="6.0.0.0" />
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
Expand Down
4 changes: 2 additions & 2 deletions win32/ctags.rc
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "Universal Ctags Team"
VALUE "FileDescription", "Universal Ctags"
VALUE "FileVersion", "5.9.0.0"
VALUE "FileVersion", "6.0.0.0"
VALUE "InternalName", "ctags.exe"
VALUE "LegalCopyright", "Copyright \251 2015-2022 Universal Ctags Team"
VALUE "OriginalFilename", "ctags.exe"
VALUE "ProductName", "Universal Ctags"
VALUE "ProductVersion", "5.9.0.0"
VALUE "ProductVersion", "6.0.0.0"
END
END
BLOCK "VarFileInfo"
Expand Down

0 comments on commit 3af4135

Please sign in to comment.