MarkusAmshove / natls

Language Server implementation for the Natural 4GL programming language
MIT License
13 stars 3 forks source link

Include local comments for used data areas on hover #422

Closed MarkusAmshove closed 11 months ago

MarkusAmshove commented 11 months ago

Having the following code:

DEFINE DATA
LOCAL USING LDAONE /* One
LOCAL USING LDATWO  /* Two
LOCAL USING PDAONE /* Uno
LOCAL USING PDATWO /* Dos
END-DEFINE

LDAONE.VARONE := LDATWO.VARTWO
MOVE BY NAME PDAONE(*) TO PDATWO(*)

END

the comments "One", "Two", "Uno" and "Dos" can't be found when hovering any variable or group name.

Hovering a variable should include the comments from the USING site.