[Geany] Code folding doesn't work right.

John Yeung gallium.arsenide at xxxxx
Wed Aug 4 14:38:15 UTC 2010


On Wed, Aug 4, 2010 at 8:22 AM, Daniel Carrera <dcarrera at gmail.com> wrote:
> On Wed, Aug 4, 2010 at 1:28 PM, Erik de Castro Lopo
> <mle+tools at mega-nerd.com> wrote:
>> In C and C++ (and probably Java) you can do:
>>
>>   char * mult_line = "the first line\n"
>>                "second line\n"
>>                "third "
>>                "line!" ;
>
> Really? Looking at that, it feels... wrong. In Perl, PHP, Python,
> JavaScript, Ruby and Lua you would have to add something to
> concatenate these strings together.

As someone pointed out elsewhere in this thread, literal strings are
concatenated at compile time in several languages (generation of
byte-code for interpreted languages).  However, this part of the
discussion is rather off the point, because the example above isn't
what causes the folding problem.  It's when a single literal string
spans multiple lines in the source code, not when multiple lines of
source each have a literal string.

I agree with the others who say the problem should be tackled by
improving Scintilla.

John



More information about the Users mailing list