Skip to content

Fix lexer 2.13

John Johansen requested to merge jjohansen/apparmor:fix-lexer-2.13 into apparmor-2.13

This is a backport of the fix-lexer patch series for 2.13

Atm it has more patches than are strictly necessary. The open question is how much of that series do we actually want to bring back?

technically the only patch we need to keep CI working and fix the issues that have been discovered are

Remove TODO for half-quoted abi rule
parser: split newline and end of rule handling into separate rules
parser: update rule to process newlines to include states that eat WS
parser: add ABI_MODE to WS consumption state

However that would keep us from being able to catch other errors. If we want to be able to catch other potential lexer pass-through errors, at a minimum we need to include.

Error out on unhandled parts when parsing a profile

Which excludes only

parser: add missing states to the default rule and improve the error msg

While its nice to have better debug output, I am not sure it is worth backporting this patch

Merge request reports