Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: earlgrey on September 07, 2014, 08:08:50 pm

Title: GNU as syntax coloring
Post by: earlgrey on September 07, 2014, 08:08:50 pm
I have made a patch ( scintilla lexer + C::B modifs ) that enable coloring GNU as within C::B ( you have to recompile C::B ).

For those who use gcc and want to see what it does. ( I find it very good in optimizations )

Check out here : http://lxfsw.blogspot.fr/p/page-02.html (http://lxfsw.blogspot.fr/p/page-02.html)

Title: Re: GNU as syntax coloring
Post by: earlgrey on September 07, 2014, 09:20:45 pm
Unfortunately, as soon as I posted, the patch stopped to work with a "no extension handler could be found".

So, use of this patch is discouraged until I find the bug.

Something wrong with C::B integration, because I still have my modified Scite version working.

Sorry for the inconvenience.
Title: Re: GNU as syntax coloring
Post by: oBFusCATed on September 07, 2014, 09:21:11 pm
Please post this patch to the scintilla project if this lexer is available there...

And posting patches in an archive is not very suitable, so there is very little chance they can be integrated in the project.

See this http://wiki.codeblocks.org/index.php?title=Creating_a_patch_to_submit_to_BerliOS_%28Patch_Tracker%29 for details (it is a bit outdated).
Title: Re: GNU as syntax coloring
Post by: earlgrey on September 07, 2014, 09:25:37 pm
The next step for me was to propose the lexer to scintilla/scite, but I want to debug the C::B patch before.

>> Edit : Problem is due to 2 simultaneous versions of C::B, one in /usr and one in /usr/local ; seems that a simple ldconfig solve it, so I keep the links in my page for those who are interested.

Anyway, thanks for the answer.
Title: Re: GNU as syntax coloring
Post by: earlgrey on September 09, 2014, 08:25:07 pm
Neil Hodgson, from Scintilla/Scite, is ok for integrating the lexer.(  Im currently working on getting rid of some warnings ).

I forgot to mention the lexer supports code folding.

Regards -
Title: Re: GNU as syntax coloring
Post by: oBFusCATed on September 09, 2014, 08:32:58 pm
Great to hear... we'll have it in c::b after it has been release in an official release of scintilla.
Title: Re: GNU as syntax coloring
Post by: earlgrey on September 09, 2014, 08:45:39 pm
Thats why I wanted to give a patch, because it may be a (relatively ) long process.
Title: Re: GNU as syntax coloring
Post by: oBFusCATed on September 09, 2014, 09:08:29 pm
If you've posted a patch to us it could have been quite a lot longer:)
Now it will just happen with the next scintilla release...
Title: Re: GNU as syntax coloring
Post by: earlgrey on September 13, 2014, 02:13:05 pm
Received from Neil Hodgson  : "The value of SCLEX_GAS will be 117 as the BibTeX lexer took 116."

It is on the rails !