summaryrefslogtreecommitdiffstats
path: root/src/lexscanner.l
Commit message (Collapse)AuthorAgeFilesLines
* issue #8552 Javadoc: strange issue with @verbatim ... @endverbatimalbert-github2021-05-151-2/+9
| | | | | | | | | | | | | - Similar problems can occur with the `\startuml` and `msc` command. ``` /** * @startuml * {\f} @code * @enduml */ ``` - some further needed corrections (for lexcode) - `\endvhdlflow` does not exist
* issue #8552 Javadoc: strange issue with @verbatim ... @endverbatimalbert-github2021-05-141-2/+13
| | | | | The end condition of a block was not detected correctly. in `scanner.l` (and thus `lexscanner.l` too) either the second part was missing or the compete test was missing. Furthermore some conditions weren't handled correctly / incomplete.
* Merge branch 'master' into feature/bug_formula_mjDimitri van Heesch2021-04-281-172/+233
|\
| * Merge branch 'feature/bug_lex_option' of ↵Dimitri van Heesch2021-04-271-4/+50
| |\ | | | | | | | | | https://github.com/albert-github/doxygen into albert-github-feature/bug_lex_option
| | * Better handling of option possibility in lex scanneralbert-github2021-03-081-4/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - improved handling of `%option` - multiple options on 1 line - handling of unknown options that contain part of a handled option (like noreentrant) - correction of definition yylex function definition, signature depends on usage of - reentrant - bison-bridge - bison-locations (automatically include bison-bridge) (found as part of some Fossies tests)
| * | Merge branch 'feature/bug_lex_rules' of ↵Dimitri van Heesch2021-04-271-23/+39
| |\ \ | | | | | | | | | | | | https://github.com/albert-github/doxygen into albert-github-feature/bug_lex_rules
| | * | Better handling of rules in lex scannersalbert-github2021-03-101-21/+39
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | - handling of square brackets, an opening square bracket inside a pair of square brackets has no special meaning unless followed by a colon (resulting in `[:...:]`. - handling of sharp brackets so that `<tst><<<WORD` is correctly hanlded - better handling of escaped charcters - handling of `(?...)` (Found during tests on some lex files available on Fossies).
| * | Refactoring: remove implicit conversion from QCString to const char *Dimitri van Heesch2021-04-221-147/+146
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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()'
* | | Problems with some commands in MathJaxalbert-github2021-04-201-2/+2
|/ / | | | | | | | | Especially with commands like `\f$\mbox{\LaTeX}\f$`MathJax has some problem as it is not, yet, able to use the commands `\raise` and `lower` inside the `\mbox` as used in this LaTeX command. Also switching in and out of math-mode doesn't work as the resulting code either doesn't work in MathJax or in LaTeX, hence the new command s `\f(` and `\f)`.
* | Refactoring: replace QGString by std::ostringstreamDimitri van Heesch2021-03-231-1/+1
|/
* Adding support for lex filesalbert-github2021-02-181-34/+51
| | | | | - 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
* Adding support for lex filesalbert-github2021-02-121-0/+938
Adding support for lex. The lex files consist of a mixture of lex specific structures, that are handled in the the lexcode.l and lexscanner.l, abd C code that is handled by the C parsers (hence the rules used are partly copied from scanner.l). Special attention has been paid to memberdef.cpp as the initial values should not be handled by the lex parsers but by the C parsers.