summaryrefslogtreecommitdiffstats
path: root/src/pycode.l
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #8337 from yosshy/masterDimitri van Heesch2021-04-291-1/+7
|\ | | | | issue #8336 Python class only with async methods support
| * issue #8336 Python class only with async methods supportMob2021-01-181-1/+7
| |
* | Merge pull request #8519 from albert-github/feature/issue_8518Dimitri van Heesch2021-04-271-1/+1
|\ \ | | | | | | issue #8518 tag </programlisting> was inserted before </highlight> parsing python file to xml
| * | issue #8518 tag </programlisting> was inserted before </highlight> parsing ↵albert-github2021-04-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | python file to xml Doxygen expects that decorators don't have a return in them, but the complicated decorator: ``` @basetest.unittest.skipIf( api_implementation.Type() != 'cpp' or api_implementation.Version() != 2, 'Errors are only available from the most recent C++ implementation.') ``` has some in them. This leads to the mentioned problem as well as that the line counting is incorrect (we see that the last mentioned lie number in the xml file is 2964 though the file has 2966 lines). By fixing this (and also the line counting in the python scanner) the problem looks to be handled.
* | | Fix issues caused by QCString::rawData and QCString::operator[]Dimitri van Heesch2021-04-261-4/+3
|/ / | | | | | | | | - methods were marked const but still returned a non-const reference, cause wrongly optimized code for some platforms/compilers
* | Refactoring: remove implicit conversion from QCString to const char *Dimitri van Heesch2021-04-221-59/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit changes the following in relation to string use - The implicit convert from 'QCString' to 'const char *' is removed - Strings parameters use 'const QCString &' as much as possible in favor over 'const char *' - 'if (s)' where s is a QCString has been replaced by 'if(!s.isEmpty())' - data() now always returns a valid C-string and not a 0-pointer. - when passing a string 's' to printf and related functions 'qPrint(s)' is used instead of 's.data()' - for empty string arguments 'QCString()' is used instead of '0' - The copy() operation has been removed - Where possible 'qstrcmp(a,b)==0' has been replaces by 'a==b' and 'qstrcmp(a,b)<0' has been replaced by 'a<b' - Parameters of string type that were default initialized with '= 0' are no initialized with '= QCString()'
* | Refactoring: some cleanup and removed text direction logicDimitri van Heesch2021-03-041-7/+4
| |
* | Adding support for lex filesalbert-github2021-02-181-1/+1
| | | | | | | | | | - Correct handling of C comment start and end tokens as well as Cpp comment start in rules. These tokes can give "Reached end of file while still inside a (nested) comment..." - Correct other warnings in respect to lex files
* | Refactoring: modernize MemberListDimitri van Heesch2021-01-221-1/+1
|/
* Refactoring: replace MemberSDict by MemberLinkedRefMapDimitri van Heesch2021-01-041-7/+7
|
* Protect mutable access to members in code generators with mutexesDimitri van Heesch2020-11-281-0/+9
|
* Issue #8206: Incorrect XHTML resultsDimitri van Heesch2020-11-271-3/+2
| | | | | | | | | | | | Changes: - Change TooltipManager back into a singleton - Give the OutputList object a unique output id - Increment the id at each startFile() atomically - Pass the id to the HTML code generator - Store tooltips per output id. - Keep track of tooltips that are already written for a given id - for output formats other than HTML the output id is 0 and tooltips are not collected and written
* Refactoring: replacing dynamic_cast by static_cast to improve performanceDimitri van Heesch2020-11-131-10/+10
|
* Refactoring: Introduce immutable and mutable interfacesDimitri van Heesch2020-11-091-7/+15
| | | | | | Split Definition/ClassDef/NamespaceDef/MemberDef into a immutable and mutable part Aliases are immutable, other symbols are stored using an immutable interface but can be made mutable explicitly by dynamic casting.
* Merge branch 'symbolresolver'Dimitri van Heesch2020-10-281-4/+8
|\
| * Refactoring: introduce SymbolResolver to group symbol lookup routinesDimitri van Heesch2020-10-281-4/+8
| | | | | | | | - Main goal was to avoid use of global state.
* | Merge pull request #8122 from albert-github/feature/bug_warn_lexDimitri van Heesch2020-10-241-1/+1
|\ \ | |/ |/| Remove warnings from lexers
| * Remove warnings from lexersalbert-github2020-10-201-1/+1
| | | | | | | | | | | | | | | | Remove warnings (Windows 64 bit compilation) like: ``` warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data ``` from the different lexers by making use of more consistent data types.
* | Refactoring: modernize Doxygen::symbolMapDimitri van Heesch2020-10-231-15/+3
|/
* Refactoring: modernize TooltipManager class and source reference listsDimitri van Heesch2020-10-201-5/+4
| | | | | - Tooltips are now collected per file instead of globally - Source reference lists now use STL containers
* issue #8098: Python Decorator written below @brief tag and above the ↵Dimitri van Heesch2020-10-161-0/+7
| | | | function leads to documentation error
* Refactoring: Introduce ScopedTypeVariantDimitri van Heesch2020-10-101-161/+54
| | | | | | - Avoid creating new symbol definitions while generating syntax highlighted code. - Add some locking around shared data collection (search index & tooltips) to support concurrent processing - Unify some code that was duplicated in code.l and pycode.l
* Refactoring: making pycode.l reentrantDimitri van Heesch2020-09-061-1174/+1231
|
* Enabled stricter compiler warnings and fixed all new warningsDimitri van Heesch2020-03-081-23/+30
|
* Fix compiler warnings on Windows (Visual Studio)Dimitri van Heesch2020-02-121-0/+3
|
* Split language parser into "outline parser" and "code parser"Dimitri van Heesch2019-12-031-0/+29
|
* Remove bogus flex codeDimitri van Heesch2019-11-181-9/+0
|
* Spelling corrections for src directoryalbert-github2019-11-051-1/+1
| | | | | | | | Spelling corrections as found by codespell and in #561. Some reported problems were already fixed, others are fixed here, with some exceptions (a,o.): - "referenceby" in defgen.cpp as this is in the output and I cannot oversee the consequences (looks like none, but ...) - "HANGEUL_CHARSET" left as is as in some MS documentation is written: 'HANGUL_CHARSET: Also spelled "Hangeul". Specifies the Hangul Korean character set.' (https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-wmf/0d0b32ac-a836-4bd2-a112-b6000a1b4fc9).
* Fix typosluz.paz2019-09-281-2/+2
| | | | | | 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 ```
* 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.
* Some fixes and restructuringDimitri van Heesch2019-08-061-0/+8
| | | | | | - moved unescapeCharsInString to util.cpp - restructured flow keyword counting - make flow keyword counting work for python and fortran code as well
* Merge branch 'feature/bug_endblock_msg' of ↵Dimitri van Heesch2019-08-041-4/+4
|\ | | | | | | https://github.com/albert-github/doxygen into albert-github-feature/bug_endblock_msg
| * Correction warning messagealbert-github2019-06-011-4/+4
| | | | | | | | Consistency
* | Improved constness and avoid using non-const members of aliasesDimitri van Heesch2019-07-291-11/+11
|/
* Further const correctness changesDimitri van Heesch2019-05-051-2/+2
|
* Improved const correctness and added support for inline namespacesDimitri van Heesch2019-04-211-18/+18
|
* Refactored Definition and derived classes such that they are abstract interfacesDimitri van Heesch2019-02-281-5/+5
|
* Double id for tooltips in XHTML Possible.albert-github2019-01-181-5/+0
| | | | The tooltips (XHTML) should not be displayed per code fragment but for the entire (output) file as otherwise tooltips might be added multiple times resulting in double IDs.
* Fixed some more small memory leaksDimitri van Heesch2018-12-261-2/+4
|
* Update pycode.lArmin Müller2018-08-211-2/+2
|
* Small problems when displaying python codealbert-github2018-05-221-4/+26
| | | | | | - 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
* flex: use %option instead of command line options.Adrian Negreanu2016-09-211-0/+2
|
* Python strip code commentsalbert-github2016-09-031-1/+1
| | | | | | | | | | | | | | | | In python the STRIP_CODE_COMMENTS didn't work properly, the "## /file" was not seen by the rule <*>{POUNDCOMMENT}" as the longer "<*>"#".* took precedence. Example file bb.py: ## \file # ## pyfie docu # \include aa.h # \include bb.py # \include cc.f # def pyfie(): pass
* Bug 770660 - Code snippet always shows line numbers from 1albert-github2016-09-031-8/+9
| | | | | | | | | This patch makes the handling of the \snippet and other commands consistent between the different languages (no line numbers anymore with python) and also introduces analogous to \includelineno the command \snippetlineno. Some non relevant changes: - *code.l Calculation of the end line was incorrect, in case of a snippet the end line was the number of lines of the snippet and not reltive to the start line. - *code.l made consistent over the different laguages, enabling exBlock and inlineFragment - testing/indexpage.xml in test 14 the \snippet command was used with python and giving line numbers, linenumbers are now gone (consistency)
* Determination of end of parameter listalbert-github2016-08-271-0/+4
| | | | The determination of a parameter list should not stop at a newline character.
* Bug 766464 - python: missing cross-links in sources (option SOURCE_BROWSER = ↵albert-github2016-05-161-0/+16
| | | | | | YES) Linking first element after "self" or "cls"
* Changed configuration mechanism to directly access options in order to ↵Dimitri van Heesch2016-01-171-3/+3
| | | | improve performance
* Minor change to pycode.l:codifyLinesDimitri van Heesch2015-12-261-3/+3
|
* Merge branch 'feature/bug_593642' of ↵Dimitri van Heesch2015-12-261-29/+110
|\ | | | | | | https://github.com/albert-github/doxygen into albert-github-feature/bug_593642
| * Bug 593642 - Python: STRIP_CODE_COMMENTS Doesn't work within the source codealbert-github2015-12-251-29/+110
| | | | | | | | In case STRIP_CODE_COMMENTS is set the doxygen specific comment is stripped from the output.