crs-al-language-extension icon indicating copy to clipboard operation
crs-al-language-extension copied to clipboard

Extension unquotes fields that start with number

Open ernestasjuska opened this issue 5 years ago • 1 comments

Hi,

CRS Extension removes double quotes surounding field names that start with a number, e.g.:

table 50100 MyTable
{
    fields
    {
        field(1; "1Column"; Code[20])
        {
            DataClassification = CustomerContent;
        }
    }
}

gets turned into

table 50100 MyTable
{
    fields
    {
        field(1; 1Column; Code[20])
        {
            DataClassification = CustomerContent;
        }
    }
}

Then 1Column by itself is invalid identifier and causes syntax errors. Quoted identifier works fine.

For now we will use "1 Column" instead.

Thanks.

P.S.: Name: waldo's CRS AL Language Extension Version: 1.1.22

ernestasjuska avatar Jan 07 '20 10:01 ernestasjuska

Pull request #293 addresses this issue.

cc: @waldo1001

zeande avatar Nov 20 '23 13:11 zeande