Move defines to their own fileAs described inhttps://github.com/dwp-forge/columns/issues/5#issuecomment-638467603sometime the Lexer constants have not been (auto)loaded when a syntax pluginis in
Move defines to their own fileAs described inhttps://github.com/dwp-forge/columns/issues/5#issuecomment-638467603sometime the Lexer constants have not been (auto)loaded when a syntax pluginis invoked (I'm not sure why).In general PSR2 discourages a mix of main code and function/class setupwith the call to define() being considered main code.This patch moves these the define calls to a separate new file, solvingboth of the above problems.These are not all our defines. Instead I focused on the ones that areENUM-like.In the future we should think about what defines can be replaced byclass constants and what other define() calls should be moved.
show more ...
fix phpdocCo-authored-by: Matthias Gutjahr <mattsches@gmail.com>
Fix accessing callsSome plugins need access to the handler (and rewriter) calls. Oneexample is the do plugin.This adds some accessing methods to the callWriter objects, ensures$calls can be acc
Fix accessing callsSome plugins need access to the handler (and rewriter) calls. Oneexample is the do plugin.This adds some accessing methods to the callWriter objects, ensures$calls can be accessed and removes some duplicate code by introducing anabstract base class.
Let plugins access the lexer mode stack
Fix php styling of too long regexp
Fixed broken link rendering for external links at start of lineExternal links at the start of line like 'www.example.com' werenot rendered as links any more. The issue was introduced with PR #1988
Fixed broken link rendering for external links at start of lineExternal links at the start of line like 'www.example.com' werenot rendered as links any more. The issue was introduced with PR #1988.Fixes #2399.
Restore some backwards compatibility for injected handlersSome plugins, for example the move plugin, use their own handler class.We need to give these plugins time to adjust their code.This shou
Restore some backwards compatibility for injected handlersSome plugins, for example the move plugin, use their own handler class.We need to give these plugins time to adjust their code.This should restore the functionality of the move plugin. We still needto extract the handler class itself.It also adds another debug method for triggering the deprecation event,since none of the two existing methods are suitable here. ThisdbgCustomDeprecationEvent method should be used sparingly and only wherethe other two don't work.Co-authored-by: Phy <git@phy25.com>
Merge branch 'master' into psr2* master: upgraded JSON class to latest (2006) version continue is break in switch translation update reference existing proper progress gif. fixes #2441 Fi
Merge branch 'master' into psr2* master: upgraded JSON class to latest (2006) version continue is break in switch translation update reference existing proper progress gif. fixes #2441 Fix missing ui-bg_glass_95_fef1ec_1x400.png and be/jquery.ui.datepicker.js for jquery removed accidental merges of outdated translations Change `const` use to `var` for Safari 9 (on iOS) Fix .htaccess files for Apache 2.4 (and 2.2) add logic if the server uses unlimited memory settings in is_mem_available() removed safemode hack
Make lexer/state stack more understandable- rename lexer $mode property to avoid two different uses of "mode" variables in the lexer- clarify/improve comments
do not use DOKU_PARSER_EOL outside of testing
moved Parser to Parsing namespace
moved all parsing related namespaces to their own
1234