Author Topic: Syntax / Folding problem?  (Read 7561 times)

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Syntax / Folding problem?
« on: November 27, 2005, 07:07:05 am »
I downloaded the first SVN install, and i noticed 2 things:

a) Comments aren't highlighted as "comments", they look like source code.

b) if statements need a closing "endif" for the folding to work properly. Brackets don't match anymore.

Any ideas?

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Syntax / Folding problem?
« Reply #1 on: November 27, 2005, 04:43:41 pm »
I just noticed something VERY STRANGE in the config file (i had to delete it to get the syntax working).

Look:
Code
        <color_sets>
            <default>
                <set0>
                    <NAME>
                        <str>Lua</str>
                    </NAME>
                   ...
                    <editor>
                         ...
                        <FILEMASKS>
                            <str>*.c,*.cpp,*.cc,*.cxx,*.h,*.hpp,*.hh,*.hxx,*.inl,</str>
                        </FILEMASKS>
                    </editor>
                </set0>
                <set1>
                    <NAME>
                        <str>C_C++</str>
                    </NAME>
                    ---
                        <FILEMASKS>
                            <str>*.gm,</str>
                        </FILEMASKS>
               </set1>
                <set2>
                    <NAME>
                        <str>Hitachi asm</str>
                    </NAME>
                    ...
                        <FILEMASKS>
                            <str>*.s20,</str>
                        </FILEMASKS>
                    </editor>
                </set2>

The filemasks are all wrong, but show correctly on the Editor configuration dialog. What happened?

[attachment deleted by admin]

Offline Frank3000

  • Multiple posting newcomer
  • *
  • Posts: 17
Re: Syntax / Folding problem?
« Reply #2 on: December 04, 2005, 11:09:01 pm »
Hello,
here is another pic of strange syntax highlighting:
(Windows XP SP 2, wxWidgets 261, Code::blocks SVN revision 1447)

Frank


[attachment deleted by admin]
Klingon multitasking systems do not support 'time-sharing'. When a Klingon program wants to run,
it challenges the scheduler in hand-to-hand combat and owns the machine.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Syntax / Folding problem?
« Reply #3 on: December 04, 2005, 11:16:30 pm »
Try deleting "C:\Documents and Settings\<username>\Application Data\codeblocks\default.conf".
Be patient!
This bug will be fixed soon...

Offline Frank3000

  • Multiple posting newcomer
  • *
  • Posts: 17
Re: Syntax / Folding problem?
« Reply #4 on: December 04, 2005, 11:25:46 pm »
that did the trick !
 :D
thank you for the quick help
Klingon multitasking systems do not support 'time-sharing'. When a Klingon program wants to run,
it challenges the scheduler in hand-to-hand combat and owns the machine.

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Syntax / Folding problem?
« Reply #5 on: December 05, 2005, 12:39:22 am »
Yeah but I'm intrigued. Why did it get messed up in the first place? Is it fixed already or what?  :?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Syntax / Folding problem?
« Reply #6 on: December 05, 2005, 12:54:50 am »
Yeah but I'm intrigued. Why did it get messed up in the first place? Is it fixed already or what?  :?

Yes, it is fixed.
Be patient!
This bug will be fixed soon...

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Syntax / Folding problem?
« Reply #7 on: December 05, 2005, 02:13:54 am »
whew :) Thanks!

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Syntax / Folding problem?
« Reply #8 on: December 07, 2005, 07:54:08 pm »
Yiannis, a question. In what revision did you fix the problem? See here.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Syntax / Folding problem?
« Reply #9 on: December 08, 2005, 12:18:19 am »
That was probably the bug where editor colours were incorrectly saved, and you kept around the old config file for two weeks, so the new (correctly working) version made a mess out of it (naturally).
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."