justinmeza / lci

A LOLCODE interpreter written in C.
http://lolcode.org
GNU General Public License v3.0
784 stars 105 forks source link

Colon and quotation mark conflict in strings #56

Open sjoqvist opened 5 years ago

sjoqvist commented 5 years ago

This program

HAI 1.2
  VISIBLE ":"::"
KTHXBYE

prints ": as expected. However,

HAI 1.2
  VISIBLE ":::""
KTHXBYE

produces the error message test.lol:2: expected token delimiter after string literal. I would have expected it to print :".

It should be mentioned that VISIBLE "::" ":"" solves the problem, but I don't see why the second version would be incorrect.