[Geany-devel] COBOL syntax highlighting and filetype support
nick.treleaven at xxxxx
Thu Sep 10 16:27:12 UTC 2009
On Thu, 10 Sep 2009 12:06:54 -0400
Seth Keiper <erstazi at gmail.com> wrote:
> I am attempting to add filetype and highlighting support for COBOL but
> I am running into an error:
> ../scintilla/libscintilla.a(KeyWords.o): In function `Scintilla_LinkLexers()':
> ../scintilla/KeyWords.cxx:177: undefined reference to `lmCOBOL'
> collect2: ld returned 1 exit status
Not sure. Maybe run ./autogen.sh again?
> Provided in the attachment is the svn diff. Can someone maybe point me
> in the right direction with this code, please? I would like to see
> this in before 0.19 is released.
Have you seen the HACKING file?
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.
Also, can you use:
ft->title = g_strdup(_("COBOL file"));
Because the former saves another translation entry.
filetypes.cob should be called filetypes.cobol IIRC so Geany can see it.
Was including filetypes.cpy in the patch a mistake?
More information about the Devel