News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

StyledTextCtrl:IsComment() and friends language independant, was C/C++ only

Started by danselmi, December 16, 2010, 11:27:36 PM

Previous topic - Next topic

danselmi

Hi
Patch #3103 extends cbStyledTextCtrl in a way that 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
spell checker plugin: [url="http://developer.berlios.de/projects/spellchecker/"]http://developer.berlios.de/projects/spellchecker/[/url]
nassi shneiderman plugin: [url="http://developer.berlios.de/projects/nassiplugin"]http://developer.berlios.de/projects/nassiplugin[/url]

MortenMacFly

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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

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!]

danselmi

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.
spell checker plugin: [url="http://developer.berlios.de/projects/spellchecker/"]http://developer.berlios.de/projects/spellchecker/[/url]
nassi shneiderman plugin: [url="http://developer.berlios.de/projects/nassiplugin"]http://developer.berlios.de/projects/nassiplugin[/url]

MortenMacFly

...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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]