blob: 3610f70b5017c074c0fde31b833a929b4e446e79 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
// a backtick ends the source only where the lexer would read it as a token.
// this one, in a line comment: ` does not end anything.
/* nor does this, in a block comment ` with a star / and a slash */
fn main() {
let s = "a`b", t = "q\"`", c = '`', d = '\'';
put_n(len_w(s)); put_c(' '); put_n(len_w(t)); put_c(' '); put_n(c); put_c(' '); put_n(d); put_c(' ');
while (!eof()) put_c(get_c());
return 0;
}
|