Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
poorna2152 opened this issue May 10, 2024 · 0 comments
Labels
Area/Parser Everything related to the ballerina lexer and the parser #Compiler Lang/XML XML design related issues Type/Bug

Comments

@poorna2152
Copy link
Contributor

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 poorna2152 added Type/Bug Area/Parser Everything related to the ballerina lexer and the parser #Compiler labels May 10, 2024
@ballerina-bot ballerina-bot added needTriage The issue has to be inspected and labeled manually userCategory/Compilation labels May 10, 2024
@poorna2152 poorna2152 added Lang/XML XML design related issues and removed needTriage The issue has to be inspected and labeled manually userCategory/Compilation labels May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/Parser Everything related to the ballerina lexer and the parser #Compiler Lang/XML XML design related issues Type/Bug
Projects
None yet
Development

No branches or pull requests

2 participants