Skip to content

Add test_dedent#108

Open
adsharma wants to merge 1 commit intowe-like-parsers:mainfrom
adsharma:dedent_behavior
Open

Add test_dedent#108
adsharma wants to merge 1 commit intowe-like-parsers:mainfrom
adsharma:dedent_behavior

Conversation

@adsharma
Copy link

Add a test case to document and discuss a change in tokenizer behavior around DEDENT + NEWLINE

Related to: #107

OP,
STRING,
NEWLINE,
DEDENT,
Copy link
Author

@adsharma adsharma Jan 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like the tokenizer to output DEDENT + NEWLINE here.

That would allow the parser I'm working on to parse

pmatch-statement NEWLINE return-statement

as two statements separated by a newline. The current tokenizer behavior makes it awkward to parse.

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

Successfully merging this pull request may close these issues.

1 participant