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