ballerina-lang icon indicating copy to clipboard operation
ballerina-lang copied to clipboard

[Bug]: Invalid parsing of an xml name pattern which is invalid and has an xml namespace

Open poorna2152 opened this issue 1 year ago • 0 comments

Description

Consider the following code,

xmlns "a" as ns;
function foo() {
    xml x = xml `<item><book>Study</book></item>`;
    _ = x.<ns::book>;
}

This is parsed as, Screenshot 2024-05-10 at 09 27 37

The second colon here is skipped.

Steps to Reproduce

No response

Affected Version(s)

2201.9.0

OS, DB, other environment details and versions

No response

Related area

-> Compilation

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

poorna2152 avatar May 10 '24 03:05 poorna2152