Skip to content

Expose byte index in tokenizer's position. #249

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

Merged
merged 1 commit into from
May 29, 2019
Merged

Conversation

emilio
Copy link
Member

@emilio emilio commented May 29, 2019

I need it to finish my implementation of Properties and Values syntax.

It works on bytes rather than CSS tokens, but it calls the consume a name
algorithm, for which I'm using cssparser.

However I need to know how much of the input was actually consumed
after consuming a name to continue the parse.


This change is Reviewable

@emilio
Copy link
Member Author

emilio commented May 29, 2019

r? @SimonSapin

@jdm
Copy link
Member

jdm commented May 29, 2019

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit ddb7384 has been approved by jdm

@bors-servo
Copy link
Contributor

⌛ Testing commit ddb7384 with merge ccfc813...

bors-servo pushed a commit that referenced this pull request May 29, 2019
Expose byte index in tokenizer's position.

I need it to finish my implementation of Properties and Values syntax.

It works on bytes rather than CSS tokens, but it calls the consume a name
algorithm, for which I'm using cssparser.

However I need to know how much of the input was actually consumed
after consuming a name to continue the parse.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-cssparser/249)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

💔 Test failed - checks-travis

@emilio
Copy link
Member Author

emilio commented May 29, 2019

@bors-servo retry

bors-servo pushed a commit that referenced this pull request May 29, 2019
Expose byte index in tokenizer's position.

I need it to finish my implementation of Properties and Values syntax.

It works on bytes rather than CSS tokens, but it calls the consume a name
algorithm, for which I'm using cssparser.

However I need to know how much of the input was actually consumed
after consuming a name to continue the parse.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-cssparser/249)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

⌛ Testing commit ddb7384 with merge d92fe34...

@bors-servo
Copy link
Contributor

💔 Test failed - checks-travis

I need it to finish my implementation of Properties and Values syntax.

It works on bytes rather than CSS tokens, but it calls the consume a name
algorithm, for which I'm using cssparser.

However I need to know how much of the input was actually consumed afterwards to
continue the parse.
@emilio emilio force-pushed the position-byte-index branch from ddb7384 to 6649a8f Compare May 29, 2019 18:49
@emilio
Copy link
Member Author

emilio commented May 29, 2019

@bors-servo r=jdm

@bors-servo
Copy link
Contributor

📌 Commit 6649a8f has been approved by jdm

@bors-servo
Copy link
Contributor

⌛ Testing commit 6649a8f with merge 89476cf...

bors-servo pushed a commit that referenced this pull request May 29, 2019
Expose byte index in tokenizer's position.

I need it to finish my implementation of Properties and Values syntax.

It works on bytes rather than CSS tokens, but it calls the consume a name
algorithm, for which I'm using cssparser.

However I need to know how much of the input was actually consumed
after consuming a name to continue the parse.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-cssparser/249)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - checks-travis
Approved by: jdm
Pushing 89476cf to master...

@bors-servo bors-servo merged commit 6649a8f into master May 29, 2019
emilio added a commit to emilio/css-typed-om-syntax that referenced this pull request May 29, 2019
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.

3 participants