Fix file names of generated tags files for C, PHP and Python

This commit is contained in:
Enrico Tröger 2016-12-28 23:20:47 +01:00
parent 59f080d058
commit 16ea1d35a6
3 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@
#
tmpfile="tmp.c.tags"
tagfile="data/tags/c99.tags"
tagfile="data/tags/std99.c.tags"
headers="\
assert.h \

View File

@ -7,7 +7,7 @@
# This script downloads the PHP tag definitions in JSON format from
# http://doc.php.net/downloads/json/php_manual_en.json.
# From those defintions all function tags are extracted and written
# to ../data/tags/php.tags (relative to the script's location, not $CWD).
# to ../data/tags/std.php.tags (relative to the script's location, not $CWD).
from json import loads
from os.path import dirname, join
@ -85,7 +85,7 @@ def parse_and_create_php_tags_file():
# write tags
script_dir = dirname(__file__)
tags_file_path = join(script_dir, '..', 'data', 'tags', 'php.tags')
tags_file_path = join(script_dir, '..', 'data', 'tags', 'std.php.tags')
with open(tags_file_path, 'w') as tags_file:
tags_file.write('# format=tagmanager\n')
for tag_name, tag_type, return_type, arg_list, scope in sorted(tag_list):

View File

@ -9,7 +9,7 @@
# This script should be run in the top source directory.
#
# Parses all files given on command line for Python classes or functions and write
# them into data/tags/python.tags (internal tagmanager format).
# them into data/tags/std.py.tags (internal tagmanager format).
# If called without command line arguments, a preset of common Python libs is used.
#
# WARNING
@ -51,7 +51,7 @@ TA_SCOPE = '%c' % 206
TYPE_CLASS = '%d' % 1
TYPE_FUNCTION = '%d' % 128
tag_filename = 'data/tags/python.tags'
tag_filename = 'data/tags/std.py.tags'
tag_regexp = '^[ \t]*(def|class)[ \t]+([a-zA-Z0-9_]+)[ \t]*(\(.*\))[:]'