waldo1001 / crs-al-language-extension

Make working with the (Dynamics NAV / 365) AL Language easier and more efficient.
MIT License
34 stars 43 forks source link

[BUG] Extend reserved keywords #143

Closed fvet closed 5 years ago

fvet commented 5 years ago

Having formatted al my *.al files (5200+) I get a lot of compilation errors because of surrounding quotes getting removed on names that seem to be keywords. Tried to disable the FormatOnSave, without luck. Had to uninstall the CRS extension ...


field(101; "Area"; Code[10])
        {
            Caption = 'Area';
            TableRelation = Area;
        }

... Action("Actions") ...

is changed to

field(101; Area; Code[10])  // Area result in a compile error
        {
            Caption = 'Area';
            TableRelation = Area;
        }

... Action(Actions) ... // Actions result in a compile error

Can you please extend getAllKeywords with

waldo1001 commented 5 years ago

OOps .. closed it too early. I added the keywords .. will go live in a minute

fvet commented 5 years ago

Thanks a lot Eric!

waldo1001 commented 5 years ago

you're welcoem - thank you for the suggestion!