Allow drop patterns to execute lexer user code blocks

This commit is contained in:
josh committed 2026-02-13 20:45:08 -05:00
1 parent 43c0f50874
commit f4bc719aed
5 files changed
+99 -4

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
import testparser;
import std.stdio;
import testutils;
int main()
{
return 0;
}
unittest
{
string input = " # comment 1\n# comment 2\na\n";
p_context_t context;
p_context_init(&context, input);
assert(p_parse(&context) == P_SUCCESS);
}