summaryrefslogtreecommitdiffstats
path: root/src/pyscanner.l
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #7283 from luzpaz/typosDimitri van Heesch2019-10-091-3/+3
|\ | | | | Fix typos
| * Fix typosluz.paz2019-09-281-3/+3
| | | | | | | | | | | | Found via ``` codespell -q 3 -S *.js,*.po,./src/translator*,*.eps,./doc/changelog.doc -L ang,ans,attribs,ba,behaviour,classe,colour,german,iff,initialise,nam,nd,que,russian,statics,te,tim,uint ```
* | Use smartpointers to manage the lifetime of Entry objectsDimitri van Heesch2019-10-071-80/+28
|/
* Consistent way to show scanner statealbert-github2019-09-051-0/+2
| | | | | Create a consistent way to display the state mnemonics of the different scanners (analogous to the fortranscanner.l) Use an automatic procedure to generate the routine with the translation of the states to a string.
* issue #7009 Python class diagram not created for the base class while works ↵Dimitri van Heesch2019-08-061-3/+1
| | | | for the derived class (fix)
* issue #7009 Python class diagram not created for the base class while works ↵Dimitri van Heesch2019-08-041-27/+40
| | | | for the derived class
* take doc group out of commentscan.lAdrian Negreanu2019-07-261-5/+5
| | | | Signed-off-by: Adrian Negreanu <groleo@gmail.com>
* Merge pull request #6916 from albert-github/feature/bug_py_classDimitri van Heesch2019-05-191-0/+26
|\ | | | | Class definition with collections
| * Class definition with collectionsalbert-github2019-04-071-0/+26
| | | | | | | | | | | | | | | | | | | | | | Class definitions can have collections and these can have strings e.g.: class Url(namedtuple('Url', url_attrs)): and this results in: warning: Detected potential recursive class relation between class conda::_vendor::urllib3::util::url::Url and base class Url! Strings are now possible and seen as strings. See also (including example with namedtuble): https://docs.python.org/3/library/collections.html
* | Improved const correctness and added support for inline namespacesDimitri van Heesch2019-04-211-2/+2
|/
* issue #6734 parsing performance worsenedDimitri van Heesch2019-01-071-2/+3
|
* Fix for 'Definition at line' points to end of multiple-lined definition for ↵Dimitri van Heesch2018-12-231-1/+1
| | | | Python #6706
* Add support of dict/set in annotations and default valuesSergey Kozlov2018-10-081-0/+6
|
* Fix annotation with default value parsingSergey Kozlov2018-10-081-1/+2
|
* Add function annotations supportSergey Kozlov2018-10-081-28/+131
|
* Merge pull request #6499 from albert-github/feature/bug_python_linebreakDimitri van Heesch2018-09-151-1/+1
|\ | | | | Namespace with name docstrings_linebreak
| * Namespace with name docstrings_linebreakalbert-github2018-09-111-1/+1
| | | | | | | | | | As a regression on pull request #674 in respect to the moving of the markdown handling place the `\_linebreak` command is not translated anymore. In fact the `\_linebreak` is not necessary at all only the space is required as the `\namespace` command takes just one word as argument.
* | Fixing coverity messagesalbert-github2018-09-131-1/+0
|/ | | | Note: especially latexdocvisitor (dead code that should not be dead code).
* Issue 6494: asterisks before args and kwargs are ignored in pythonalbert-github2018-09-101-1/+6
| | | | | | Added asterisks in the type field. The type is temporary stored in a variable as the argument field has not yet been defined for its argument.
* Update pyscanner.lArmin Müller2018-08-211-2/+2
|
* Small problems when displaying python codealbert-github2018-05-221-1/+0
| | | | | | - with was not colored (in pyscanner the KEYWORD item was not used, so removed as dead code) - incorrect handling of a 'triquote' at end of string - incorrect handling of a stringprefix followed by the end of a string
* Merge pull request #676 from albert-github/feature/bug_788940Dimitri van Heesch2018-04-221-3/+6
|\ | | | | Bug 788940 - Bad handling of Python class members when a class declaration line contains a comment
| * Bug 788940 - Bad handling of Python class members when a class declaration ↵albert-github2018-03-051-3/+6
| | | | | | | | | | | | line contains a comment Made comments possible after a class declaration.
* | Bug 778012 - Python List as Default Parameter not parsed correctlyalbert-github2018-03-041-8/+22
|/ | | | Added handling of square brackets, single quoted strings and double quoted strings (could contain comma's as well) to default values of arguments.
* flex: use %option instead of command line options.Adrian Negreanu2016-09-211-0/+2
|
* Initialization of python variables and type determinationalbert-github2016-08-241-14/+26
| | | | A bit better python initialization (not only the fist "word") and subsequent determination of the type.
* Bug 761139 - python unicode docstrings are ignoredalbert-github2016-01-291-4/+6
| | | | End of the doctrings can be only triple double or single quotes not with optional u or r or even ! at the end.
* Bug 761139 - python unicode docstrings are ignoredalbert-github2016-01-271-4/+4
| | | | Added support for raw and unicode docstrings in python scanner (was already available in python code scanner)
* Changed configuration mechanism to directly access options in order to ↵Dimitri van Heesch2016-01-171-1/+1
| | | | improve performance
* Bug 595186 - Python ignores \private tagalbert-github2015-12-271-9/+0
| | | | Don't overwrite the protection settings in current entry, they may result from a comment block
* Merge pull request #429 from albert-github/feature/bug_732356Dimitri van Heesch2015-12-261-1/+1
|\ | | | | Bug 732356 - doxygen's \param command is confused by some python default values
| * Bug 732356 - doxygen's \param command is confused by some python default valuesalbert-github2015-12-261-1/+1
| | | | | | | | Decrement brace count only in case of a ')' not in case of a ','
* | Merge pull request #431 from albert-github/feature/bug_361814Dimitri van Heesch2015-12-261-0/+14
|\ \ | | | | | | Bug 361814 - python: tuple assignment not recognized as variable initialization
| * | Bug 361814 - python: tuple assignment not recognized as variable initializationalbert-github2015-12-261-0/+14
| |/ | | | | | | | | | | | | added possibility for the separate variables from a tuple assignment: a,b,c = and (a,b,c) =
* | Merge pull request #427 from albert-github/feature/bug_641036Dimitri van Heesch2015-12-261-0/+4
|\ \ | | | | | | Bug 641036 - python script with #!/usr/bin/python are not documented correctly
| * | Bug 641036 - python script with #!/usr/bin/python are not documented correctlyalbert-github2015-12-251-0/+4
| |/ | | | | | | Handle #! at first line as a special comment (on *nix systems starts the mentioned program with the file as input)
* | Bug 735152 - Python: Allow undocumented "cls" parameter for class methodsalbert-github2015-12-261-1/+19
|/ | | | Made 'cls' parameter analogous to the 'self' parameter. See also https://www.python.org/dev/peps/pep-0008 (paragraph: Function and method arguments)
* Correct / set types for python variablesalbert-github2015-12-121-5/+25
| | | | | | | | | | The bool python type was not handled. In case of the initialization by means of a method call a variables was was aid to be a tuple (e.g. env= os.environ.copy()) Methods with initialization with defaults were shown without arguments in the brief description (e.g. def create_dir(dir, create=True):) Arguments with values in method calls were seen as variables variables in case of continuation lines (e.g. parser.add_argument("--https_proxy", nargs="?", help="Proxy to be used for https requests", action="store", const="myproxy.domain.com:8080") in this case action was seen as variable).
* Bug 648865 - PYTHON: stops processing the file after encountering \""""albert-github2015-07-291-1/+4
| | | | Proper handling of escaped character inside a triple quoted string (""" and ''')
* Merge pull request #372 from albert-github/feature/bug_752657Dimitri van Heesch2015-07-261-0/+6
|\ | | | | Bug 752657 - XML not documenting a class in python
| * Bug 752657 - XML not documenting a class in pythonalbert-github2015-07-261-0/+6
| | | | | | | | Problem looks like to be the improper handling of strings in this case a single quote was not seen as the start of a string and thus the double quote was mistreated.
* | Bug 752658 - XML empty <argsstring/> in pythonalbert-github2015-07-251-1/+3
|/ | | | Problem comes from the fact that the last argument has a default value and in this case the routine argListToString is mot called as it is done in case of ')' after an argument without default value (see section "FunctionParams").
* drop #include <unistd.h>Adrian Negreanu2015-05-151-3/+2
| | | | Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
* Bump copyright yearDimitri van Heesch2015-02-261-1/+1
|
* Remove unused local and static global variablesalbert-github2014-12-271-3/+0
| | | | Remove unused local and static global variables. Variables have been identified by Understand (version 758) from Scitools.
* Bug 739056 - Python xml - argsstring is empty, while HTML have argumentsDimitri van Heesch2014-11-161-0/+1
|
* Bug 739054 - Python xml not outputting info of functions inside __init__.pyDimitri van Heesch2014-11-161-0/+13
|
* Bug 726219 - python3 import style causes doxygen to ignore some inheritancesDimitri van Heesch2014-04-121-0/+2
|
* Updated copyrightDimitri van Heesch2014-02-111-1/+1
|
* Debug output for lexical analyzerAlbert2013-11-131-0/+2
| | | | | | | | | | | | | | In case of error messages like: input buffer overflow, can't enlarge buffer because scanner uses REJECT it is not always directly clear from which lexical analyzer (.l file) this problem comes. This patch helps to find these problems and does the following things: - when using the option -d lex with doxygen each time a lexical analyzer is called at the start a line like the following line will be given: Entering lexical analyzer: pre.l (for: ..../file.c) and at the end: Finished lexical analyzer: pre.l (for: ..../file.c) - in case the lexical analyzer has been translated with the -d option of lex / flex the above mentioned lines will be given as part of the lexical analyzer output (to stderr) and look like: --entering lexical analyzer: pre.l (for: ..../file.c) --finished lexical analyzer: pre.l (for: ..../file.c)