summaryrefslogtreecommitdiffhomepage
path: root/tests/custom/99_bugs/51_preserve_lexer_flags
blob: aba646c1f3f64f92374b8f096ae20915b0da03f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Ensure keyword and regexp flags are preserved across comments when lexing
object literals and division operators.

-- Testcase --
{%
	printf("%.J\n", [
		{ /* comment */ default: true },
		4 /* comment */ /2/1
	]);
%}
-- End --

-- Expect stdout --
[
	{
		"default": true
	},
	2
]
-- End --