summaryrefslogtreecommitdiffstats
path: root/src/pyscanner.l
Commit message (Collapse)AuthorAgeFilesLines
* Enabled stricter compiler warnings and fixed all new warningsDimitri van Heesch2020-03-081-6/+13
|
* Fix compiler warnings on Windows (Visual Studio)Dimitri van Heesch2020-02-121-0/+3
|
* Move DocGroup inside CommentScanner instead of using a globalDimitri van Heesch2020-01-261-5/+5
|
* Cleanup unused/unwanted parser dependencies on code generatorDimitri van Heesch2020-01-261-1/+0
|
* Make commentscan.l reentrantDimitri van Heesch2019-12-301-2/+4
|
* Make pyscanner.l reentrantDimitri van Heesch2019-12-291-875/+908
|
* Changed std::unique_ptr<Entry> to std::shared_ptr<Entry> at avoid use after ↵Dimitri van Heesch2019-12-081-17/+17
| | | | free issues
* Split language parser into "outline parser" and "code parser"Dimitri van Heesch2019-12-031-30/+4
|
* Remove bogus flex codeDimitri van Heesch2019-11-181-7/+0
|
* Fixed use of uninitialized pointer in preprocessorDimitri van Heesch2019-11-091-1/+1
|
* Replaced QList<BaseInfo> with std::vector<BaseInfo>Dimitri van Heesch2019-10-291-2/+2
|
* Changed ArgumentList to be an STL containerDimitri van Heesch2019-10-271-10/+14
|
* 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).