Skip to content

Add eat_char2 for the lexer#6968

Merged
dhruvmanila merged 1 commit intomainfrom
dhruv/eat-char2
Aug 29, 2023
Merged

Add eat_char2 for the lexer#6968
dhruvmanila merged 1 commit intomainfrom
dhruv/eat-char2

Conversation

@dhruvmanila
Copy link
Member

Summary

This PR adds a new helper method on the Cursor called eat_char2 which is
similar to eat_char but accepts 2 characters instead of 1. It'll bump the
cursor twice if both characters are found on lookahead.

Test Plan

cargo test

@dhruvmanila
Copy link
Member Author

dhruvmanila commented Aug 29, 2023

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@github-actions
Copy link
Contributor

PR Check Results

Ecosystem

✅ ecosystem check detected no changes.

@dhruvmanila dhruvmanila merged commit 4d49d5e into main Aug 29, 2023
@dhruvmanila dhruvmanila deleted the dhruv/eat-char2 branch August 29, 2023 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

parser Related to the parser

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants