• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/ucode/tests/custom/99_bugs/51_preserve_lexer_flags

  1 Ensure keyword and regexp flags are preserved across comments when lexing
  2 object literals and division operators.
  3 
  4 -- Testcase --
  5 {%
  6         printf("%.J\n", [
  7                 { /* comment */ default: true },
  8                 4 /* comment */ /2/1
  9         ]);
 10 %}
 11 -- End --
 12 
 13 -- Expect stdout --
 14 [
 15         {
 16                 "default": true
 17         },
 18         2
 19 ]
 20 -- End --

This page was automatically generated by LXR 0.3.1.  •  OpenWrt