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

Sources/ucode/tests/custom/99_bugs/25_lexer_shifted_offsets

  1 When lexing a source buffer with a non-zero offset, e.g. due to a
  2 skipped interpreter line, lexical tokens reported a wrong offset
  3 to the compiler, causing error locations and source context lines
  4 to be incorrectly shifted.
  5 
  6 -- Testcase --
  7 #!/usr/bin/env ucode
  8 {%
  9         die("Error");
 10 %}
 11 -- End --
 12 
 13 -- Expect stderr --
 14 Error
 15 In line 3, byte 13:
 16 
 17  `    die("Error");`
 18   Near here -----^
 19 
 20 
 21 -- End --

This page was automatically generated by LXR 0.3.1.  •  OpenWrt