Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Wed, 28 Dec 2016 22:20:47 UTC Commit: 16ea1d35a6fa9cd0164bddf2b2813b7db8e2455e https://github.com/geany/geany/commit/16ea1d35a6fa9cd0164bddf2b2813b7db8e245...
Log Message: ----------- Fix file names of generated tags files for C, PHP and Python
Modified Paths: -------------- scripts/create_c_tags.sh scripts/create_php_tags.py scripts/create_py_tags.py
Modified: scripts/create_c_tags.sh 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -7,7 +7,7 @@ #
tmpfile="tmp.c.tags" -tagfile="data/tags/c99.tags" +tagfile="data/tags/std99.c.tags"
headers="\ assert.h \
Modified: scripts/create_php_tags.py 4 lines changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -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):
Modified: scripts/create_py_tags.py 4 lines changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -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 @@ 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]*((.*))[:]'
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).