Syntax Coloring for DoxyGen comments

Discussion about CodeLite development process and patches
apa
CodeLite Enthusiast
Posts: 11
Joined: Fri Apr 17, 2009 11:56 pm
Contact:

Syntax Coloring for DoxyGen comments

Post by apa »

Hi,

this is a very small observation ...

Say, your C code (actually an .h file) has the following DoxyGen-style documentation

Code: Select all

@subsection SEC1 MySection1
some text here
@code 
void MyExampleFunc(int Par1) {
...
/* this is some multi-line comment that spawns
over 
multiple lines
*/
...
}
@endcode 
And here we have some more DoxyGen documentation. Unfortunately, this documentation 
is coloured not as "comment", but as "regular code". 
If I remove the closing comment tag ("*/") and/or replace everything with single-line comments ("//"), the
colouring works fine.

Rgds
Arndt
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Syntax Coloring for DoxyGen comments

Post by eranif »

This is because that C style comment can not be nested (this is the C/C++ restrictions) it will always end up at the first closing characters sequence ('*/')

So, there is no such thing as "this is some multi-line comment that spawns".
Eran
Make sure you have read the HOW TO POST thread
apa
CodeLite Enthusiast
Posts: 11
Joined: Fri Apr 17, 2009 11:56 pm
Contact:

Re: Syntax Coloring for DoxyGen comments

Post by apa »

thx for the explanation
Arndt
Post Reply