dokuwiki/inc/Parsing/Lexer
Andreas Gohr 46028c4c32 Move defines to their own file
As described in
https://github.com/dwp-forge/columns/issues/5#issuecomment-638467603
sometime the Lexer constants have not been (auto)loaded when a syntax plugin
is invoked (I'm not sure why).

In general PSR2 discourages a mix of main code and function/class setup
with the call to define() being considered main code.

This patch moves these the define calls to a separate new file, solving
both of the above problems.

These are not all our defines. Instead I focused on the ones that are
ENUM-like.

In the future we should think about what defines can be replaced by
class constants and what other define() calls should be moved.
2020-06-04 08:22:16 +02:00
..
Lexer.php Move defines to their own file 2020-06-04 08:22:16 +02:00
ParallelRegex.php moved all parsing related namespaces to their own 2018-05-04 14:22:09 +02:00
StateStack.php Make lexer/state stack more understandable 2018-05-23 18:27:58 +01:00