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?

1
2 comments

The general answer is "manually" :) A more concrete answer depends on the specific languages and indices involved.

1

I solved myself.

In getFileNodeType of ParserDefinition I extended ILightStubFileElementType insted of IStubFileElementType.

Thank you anyway

1

Please sign in to leave a comment.