[@ Lex: sorry for double-posting] On Mon, 21 Jun 2010 08:29:53 +1000 Lex Trotman <[email protected]> wrote:
> On 20 June 2010 22:50, spir <[email protected]> wrote: > > Hello, > > > > I have installed geany 0.19 (*) mainly to use the new Custom filetypes > > feature; but cannot have it work. Below what I did for an Oberon filetype: > > > > * In filetype_extensions.conf: added "Oberon=*.ob;". > > > > * Created a filetype.oberon file with settings adapted from filetype.pascal > > and the additional followong lines in the [settings] section: > > tag_parser="pascal" > > lexer_filetype="pascal" > > I think in both cases this should be "Pascal" Capitalizing does not change anything (still no highlighting, and also no symbol list in side-panel: message "No tags found"). > > (also tried without quotes) > > > > * Created Oberon-specific data in menu Build/Set Build Commands. > > > > Compilation works, which proves the filetype is taken into account; but > > syntax highlighting does not at all (all test remains in default style). > > Help/pointer welcome. > > > > Also, I don't understand the respective roles of these 2 settings. > > Explanation/pointer welcome. I think there may be a short and clear running > > example for this new feature. > > The lexer_filetype is the name of the parser used to generate the > highlighting in the editor, this parser should be able to parse just > the area around where the user is editing to minimise overhead whilst > editing. It is part of Scintilla. > > The tag_parser is the name of the parser used to generate symbols in > the sidebar, this parser is only run when the file is saved and has to > parse the whole file and create a hierarchical symbol table so its > generally constructed differently to the other one. Thank you for this clear answer :-) > Cheers > Lex Denis ________________________________ vit esse estrany ☣ spir.wikidot.com _______________________________________________ Geany mailing list [email protected] http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
