On Tue, 15 Sep 2009 11:26:29 +1000 Lex Trotman elextr@gmail.com wrote:
Have you submitted a patch that successfully integrates either your own or the scintilla lexer into geany? Including the filetype code & a filetypes.??? file (what is the extension for cobol?)
For most filetypes the conf file is just the lowercase filetype name - filetypes.cobol.
A few points: We use an unmodified version of Scintilla - any changes to the COBOL lexer should be passed to Scintilla before we apply them. Using the C lexer style constants also means we don't have to update and maintain the cobol copies in editor.c.
I will submit this new lexer to the Scintilla project after the changes are made.
I wasn't clear; there's already a COBOL scintilla lexer - so I think the Scintilla maintainer would only accept a patch to improve the existing one.
Awesome, I see this in scintzilla 2.01. what needs to happen to get this merged?
We decided to wait for the 2.02 release. Isn't there a LexCOBOL.cxx in a pre-2.0 Scintilla release?
[nmt@localhost geany]$ fgrep COBOL scintilla/include/SciLexer.h #define SCLEX_COBOL 92
You could change your patch to use the official COBOL lexer and send it here, then (optionally) send a patch for any enhancements for the lexer to the Scintilla project. Then when we next merge Scintilla, we'll automatically inherit the new enhancements.
Regards, Nick