[Geany-devel] COBOL syntax highlighting and filetype support

Nick Treleaven nick.treleaven at xxxxx
Tue Sep 15 15:49:35 UTC 2009

On Tue, 15 Sep 2009 11:26:29 +1000
Lex Trotman <elextr at 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 -

> >>> > 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 at 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.


More information about the Devel mailing list