0

Is it possible to generate ctags for QML? Except for writing the parser by my own? It is not in the list of supported languages on http://ctags.sourceforge.net/ but I still hope there is a chance to avoid writing my own parser.

closed as off-topic by statox, EvergreenTree, jamessan, Martin Tournoij Nov 3 '16 at 2:33

  • This question does not appear to be about Vi and Vim family of editors, within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 3
    I may be wrong but I think this question is not about Vim but about the utility ctags (or its equivalent) thus your question would be more appropriate for a site like the original SO or maybe U&L – statox Nov 2 '16 at 19:00
1

You can add ctags support for external languages not included on default parsing config.

docs: extending ctags

By using --langdef=QML and then creating a regex to help define the types of patterns ctags will parse as tags.

--langdef=QML
--langmap=QML:.QML,.qml
--regex-QML=/^qml tag definitions/

This extra config info needs to be stored in your home directory in file named .ctags. (I don't know the Windows locations for this.)

Not the answer you're looking for? Browse other questions tagged or ask your own question.