Author Topic: GNU as syntax coloring  (Read 3906 times)

Offline earlgrey

  • Multiple posting newcomer
  • *
  • Posts: 102
GNU as syntax coloring
« 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

* OS = Debian Buster - Linux 4.19.06 x64 SMP
* C::B = svn11267 wx-3.0.4 - Linux, unicode 64 bit

Offline earlgrey

  • Multiple posting newcomer
  • *
  • Posts: 102
Re: GNU as syntax coloring
« Reply #1 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.
« Last Edit: September 07, 2014, 09:22:20 pm by earlgrey »
* OS = Debian Buster - Linux 4.19.06 x64 SMP
* C::B = svn11267 wx-3.0.4 - Linux, unicode 64 bit

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12122
    • Travis build status
Re: GNU as syntax coloring
« Reply #2 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).
(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 earlgrey

  • Multiple posting newcomer
  • *
  • Posts: 102
Re: GNU as syntax coloring
« Reply #3 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.
« Last Edit: September 07, 2014, 10:43:02 pm by earlgrey »
* OS = Debian Buster - Linux 4.19.06 x64 SMP
* C::B = svn11267 wx-3.0.4 - Linux, unicode 64 bit

Offline earlgrey

  • Multiple posting newcomer
  • *
  • Posts: 102
Re: GNU as syntax coloring
« Reply #4 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 -
* OS = Debian Buster - Linux 4.19.06 x64 SMP
* C::B = svn11267 wx-3.0.4 - Linux, unicode 64 bit

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12122
    • Travis build status
Re: GNU as syntax coloring
« Reply #5 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.
(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 earlgrey

  • Multiple posting newcomer
  • *
  • Posts: 102
Re: GNU as syntax coloring
« Reply #6 on: September 09, 2014, 08:45:39 pm »
Thats why I wanted to give a patch, because it may be a (relatively ) long process.
* OS = Debian Buster - Linux 4.19.06 x64 SMP
* C::B = svn11267 wx-3.0.4 - Linux, unicode 64 bit

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12122
    • Travis build status
Re: GNU as syntax coloring
« Reply #7 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...
(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 earlgrey

  • Multiple posting newcomer
  • *
  • Posts: 102
Re: GNU as syntax coloring
« Reply #8 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 !
* OS = Debian Buster - Linux 4.19.06 x64 SMP
* C::B = svn11267 wx-3.0.4 - Linux, unicode 64 bit