Kaydet (Commit) 16ea1d35 authored tarafından Enrico Tröger's avatar Enrico Tröger

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

üst 59f080d0
......@@ -7,7 +7,7 @@
#
tmpfile="tmp.c.tags"
tagfile="data/tags/c99.tags"
tagfile="data/tags/std99.c.tags"
headers="\
assert.h \
......
......@@ -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):
......
......@@ -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]*(\(.*\))[:]'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment