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

Tokenizer doesn't handle > needed for child combinators #1

Open
elcritch opened this issue Dec 5, 2024 · 0 comments
Open

Tokenizer doesn't handle > needed for child combinators #1

elcritch opened this issue Dec 5, 2024 · 0 comments

Comments

@elcritch
Copy link

elcritch commented Dec 5, 2024

Thanks for the project! I'm getting a bug using the tokenizer and it not handling > properly.

I'm trying to parse child combinators like:

    const src = """
    Button > directChild {
    }

    Button > directChild.field {
    }
    """

    let tokenizer = newTokenizer(src)

    while not tokenizer.isEof():
      echo repr tokenizer.nextToken()

This just prints Token(kind: tkIdent, ident: ">") forever.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant