Line markers on a script/query body element

Answered

Hi,

I'm implementing a plugin for a language (XQuery) that has a query body element for the query to be run by a file. I'm adding line markers to the query body to link to REST endpoint definitions and (in the future) to a runnable test.

Reading the LineMarker documentation, it advises against using an element like this for the line marker, but instead using a leaf element. The issue here is that the element I'm placing the marker on (query body) does not have an identifier defining it like a function or class does.

What is the best approach in this case? -- Would using the first token in the query (regardless of what it is) work?

Kind regards,

Reece

0

Please sign in to leave a comment.