Pedro A ARANDA wrote:
actually it is _not_ a block comment on a block comment.

It is, if you comment this code section. Re-read my explanation, please.

The second block comment is _inside_ a string !!!
It came up while working on a program to generate
C code. I was debugging it, so I decided to print the
comment in order to look at the code I was generating

Inside the outside comment, the lexer won't make any difference between plain text, keywords or strings. It just sees a block comment terminator, and that's all.

If you can compile this, you have a strange compiler...

I tried with tcc, I get:

test.c:13: stray '\' in program

And indeed, it is shown in red in SciTE...

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --

_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to