# file : unit-tests/lexer/comment.test # copyright : Copyright (c) 2014-2016 Code Synthesis Ltd # license : MIT; see accompanying LICENSE file # Single-line comments. $* <>:EOO # single-only # comment EOI EOO $* <>EOO # single-first # comment foo EOI 'foo' EOO $* <>EOO # single-last foo # comment EOI 'foo' EOO $* <>EOO # single-few foo # comment # comment EOI 'foo' EOO $* <>EOO # single-cont foo # comment\\ bar EOI 'foo' 'bar' EOO $* <>EOO # single-same foo # comment bar # comment EOI 'foo' 'bar' EOO # Multi-line comments. # $* <>:EOO # multi-only #\ comment comment #\ EOI EOO $* <>:EOO # multi-empty #\ #\ EOI EOO $* <>EOO # multi-start-same foo #\ comment comment #\ EOI 'foo' EOO $* <>EOO # multi-end-same #\ comment comment foo #\ bar EOI 'bar' EOO $* <>EOO # multi-end-not #\ comment #\ not an end foo #\ bar EOI 'bar' EOO $* <>EOE != 0 # multi-unterm #\ comment EOI stdin:3:1: error: unterminated multi-line comment EOE