Keyword arguments are interpreted as variables (python)
Brought to you by:
dhiebert
Kwargs to functions or constructors are interpreted as variables, which greatly polluted the output with bogus data.
Here's a very brief example to quickly reproduce the issue:
from datetime import datetime
class A:
when = datetime(
year=2017,
month=9,
day=10,
)
a = float(
x=99,
)
Output:
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
!_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
!_TAG_PROGRAM_NAME Exuberant Ctags //
!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
!_TAG_PROGRAM_VERSION 5.8 //
A test.py /^class A:$/;" c
a test.py /^a = float($/;" v
datetime test.py /^from datetime import datetime$/;" i
day test.py /^ day=10,$/;" v class:A
month test.py /^ month=9,$/;" v class:A
when test.py /^ when = datetime($/;" v class:A
x test.py /^ x=99,$/;" v
year test.py /^ year=2017,$/;" v class:A
Universal-ctags(https://ctags.io) forked from Exuberant-ctags works well.
Universal-ctags still doesn't have any stable releases yet, regrettably.