Use str_starts_with/str_ends_with
code style: line breaks
code style: operator spacing
Apply rector fixes to inc/Parsing
Update core code to make use of sexplode()This makes use of our own explode mechanism everywhere were we expect afixed number of results.
PHP 8: rename match() to apply() in Lexer #3298
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 ...
Let plugins access the lexer mode stack
Make lexer/state stack more understandable- rename lexer $mode property to avoid two different uses of "mode" variables in the lexer- clarify/improve comments
moved all parsing related namespaces to their own