MarkusAmshove / natls

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

Create hover for attributes #429

Open MarkusAmshove opened 9 months ago

MarkusAmshove commented 9 months ago

When the user hovers over attributes, e.g. (AD=MI) (AD=P) etc., a hover should show all the attributes and their meaning

Statement parameter

The documentation calls attributes that directly follow the INPUT keyword statement parameter. These set the attributes vor all variable operands, but not literals:

The parameter settings applied here will only be regarded for variable fields, but they have no effect on text-constants. If you would like to set field attributes for a text-constant, they have to be set explicitly for this element.

The following attributes can be statement parameter:

Element parameter

The documentation calls attributes that follow an operand element parameter. The following attributes can be element parameter:

Attribute priority

The following priority is taken when designating which attributes an operand has: Element Parameter > Statement Parameter > SET GLOBALS