Author Topic: StyledTextCtrl:IsComment() and friends language independant, was C/C++ only  (Read 4675 times)

Offline danselmi

  • Developer
  • Almost regular
  • *****
  • Posts: 206
Hi
Patch #3103 extends cbStyledTextCtrl in a way that
Code
IsCharacter(), IsString(), IsPreprocessor() and IsComment() 
are not C/C++ only anymore. The needed Information is stored in the lexer configuration files. The configuration files for C/C++, D, verilog and VHDL are adjusted in the patch. We need to adjust the other language files step by step (if ithe patch will find it's way into trunk).

regards danselmi
« Last Edit: December 16, 2010, 11:29:25 pm by danselmi »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
For the record: I am already testing this patch on windows and it looks OK so far. danselmi and I had discussed to bring this patch into public for further testing. Any feedback is welcome! Especially on Linux / Mac.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
I can test it, but what are the user visible changes/bugs, I should look for?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline danselmi

  • Developer
  • Almost regular
  • *****
  • Posts: 206
There are no user visible changes. The four methods compared the style against constants from the c/c++ lexer for example wxSCI_C_CHARACTER. With this patch the styles have to be configured for the different lexers (in the respective xml file) and not hardcoded in cbstyledtextctrl.cpp anymore.

These methods are mainly used for auto-indent and cc.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
...any news / comment soon this one from other devs?

I tend to apply this to trunk as I believe it's a way better style that the one currently...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ