Index stub and IReparseableElementType
Answered
Hi,
I created a stub index for my custom language and it works fine.
But how can I index a fragment of code embedded in an other custom language?
Example:
// CODE OF LANGUAGE 1
something {
// CODE OF LANGUAGE 2
[code to index]
}
// CODE OF LANGUAGE 1
Currently I am using an implementation of IReparseableElementType to parse my custom language.
Any hint?
Please sign in to leave a comment.
The general answer is "manually" :) A more concrete answer depends on the specific languages and indices involved.
I solved myself.
In getFileNodeType of ParserDefinition I extended ILightStubFileElementType insted of IStubFileElementType.
Thank you anyway