summaryrefslogtreecommitdiffhomepage
path: root/tests/custom/03_bugs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-04-29 00:31:06 +0200
committerJo-Philipp Wich <jo@mein.io>2021-04-29 00:31:06 +0200
commitf73e20158641a96882565852d0e2a6bf1540d950 (patch)
tree800d1fbdfe4f068f897e794d7b114e3545099067 /tests/custom/03_bugs
parent86b4863837edbd9aaac1aeea3f0101076ef55f09 (diff)
lexer: fix infinite loop when parsing regexp literal at EOF
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'tests/custom/03_bugs')
-rw-r--r--tests/custom/03_bugs/16_hang_on_regexp_at_eof9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/custom/03_bugs/16_hang_on_regexp_at_eof b/tests/custom/03_bugs/16_hang_on_regexp_at_eof
new file mode 100644
index 0000000..d8702ca
--- /dev/null
+++ b/tests/custom/03_bugs/16_hang_on_regexp_at_eof
@@ -0,0 +1,9 @@
+When parsing a regexp literal at the end of the source buffer, the lexer
+ended up in an infinite loop watining for a non-flag character.
+
+-- Expect stdout --
+-- End --
+
+-- Testcase --
+{% /a/
+-- End (no-eol) --