Nested types

Help
o_z
2012-03-07
2013-06-12
  • o_z
    o_z
    2012-03-07

    Hi,

    Is there a way to define and display nested types in custom languages. I have, for example, functions that are part of struct. How can I have them show as children of the struct in tree view?

    Thanks,
    o

     
  • UFO
    UFO
    2012-03-07

    Hi,

    unfortunately it is not possible to support scoping for custom languages.
    You would need to write a language parser in C in order to extend ctags.

    greets

     
  • o_z
    o_z
    2012-03-09

    Thanks for the quick reply!

    Another question about the custom languages: can I define comments? I have both line comments and block comments in the language I'm trying to define, and right now the regexps catch also definitions that are commented out.

    Thanks,
    o

     
  • UFO
    UFO
    2012-03-10

    Line comments should be doable - e.g. by excluding characters in the regex.
    While multiline comments are not supported by the regex approach, since ctags
    regex is working on single lines only..