[Geany-Users] Adding a filetype

Alain Aupeix alain.aupeix at xxxxx
Wed Jan 27 19:52:49 UTC 2016


Le 27/01/2016 19:16, Colomban Wendling a écrit :
> Le 27/01/2016 15:24, Alain Aupeix a écrit :
>> Le 27/01/2016 15:04, Colomban Wendling a écrit :
>>> […]
>>> in your custom filetype.  Custom filetypes have additional keys you need
>>> to fill in.  (BTW, you probably also want to fill in tag_parser).
>> What's the purpose ?
>> Auto-completion ?
> Parsing symbols from the file, which populates the Symbols pane, and
> yes, is also used for auto-completion purposes (and type highlighting).
>
>> I notice too, that with filetypes.c, there were symbols (some were wrong)
>> But now, no more symbols.
>>
>> How to activate it ?
>> How to have a good parsing of functions and variables ?
> Well, extracting symbols is done by some C code, so if none of the
> existing parsers work for your case, you'll have to write it -- a CTags
> parser -- and integrate it.  Harder, but not impossible.
>
> However, if C was (mostly) good, just use tag_parser=C and done.  You
> can also try C++, C#, Java, Vala or whatnot, depending on who much alike
> your language is similar to one of those ("similar" here having a subtle
> meaning of "how well the parser for it handles your language").
Thanks, I'll try to do it
A+
-- 
------------------------------------------------------------------------
Alain Aupeix
http://jujuland.pagesperso-orange.fr/
http://pissobi-lacassagne.pagesperso-orange.fr/
------------------------------------------------------------------------
U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2016-01-24 12:06) |
HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2516)
------------------------------------------------------------------------


More information about the Users mailing list