Re: CC Mode multi-line strings [Was: Adding Vala support]

Theodor Thornhill via CC-Mode-help <[email protected]>
Newsgroups gmane.emacs.cc-mode.general
Message-ID <[email protected]>
Hi Alan!

>
> No problem!  My guess is that inside the @" string, there are no escape
> characters.  So "\u0063" stands for the six characters \ u 0 0 6 3
> rather than the single unicode c.  If that's the case, then this isn't a
> problem with C# Mode or CC Mode.
>

Hmm, that might be true, however I think there still is a problem
somewhere.

For example:

```
var x = "Hello, \"World\"";
```
In this case, `Hello, \"` is fontified as a string, then `World \"` has
no fontification, then, the last `"` has a warning face, then at last,
the `;` is fontified as a string.  This will cause the next expressions
to be fontified as strings as well, possibly rendering the whole file as
a string.  It seems to make no difference if the string is preceeded
with a `@`.  It seems like escaping quotes is not working properly
somehow.

What am I missing :)?

All the best,
Theo!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.