Skip to content

Improve EOF handling + handle lonely import statements #176

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 10 commits into from
Nov 12, 2019

Conversation

raxbg
Copy link
Contributor

@raxbg raxbg commented Nov 12, 2019

Resolves #175

@sabberworm
Copy link
Collaborator

Codacy Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- tests/Sabberworm/CSS/ParserTest.php  14
- lib/Sabberworm/CSS/Parsing/ParserState.php  11
- lib/Sabberworm/CSS/CSSList/CSSList.php  22
         

See the complete overview on Codacy

Copy link
Collaborator

@sabberworm sabberworm left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks

@sabberworm sabberworm merged commit 2875198 into MyIntervals:master Nov 12, 2019
westonruter added a commit to westonruter/PHP-CSS-Parser that referenced this pull request Apr 20, 2020
…into fix/selector-comma-parsing

* 'master' of https://github.com/sabberworm/PHP-CSS-Parser: (64 commits)
  Preserve casing for CSS var names
  Fix @import's output when there is no media query
  Convert some more code to make use of ParserState::EOF and UnexpectedEOFException
  Trim the Import's media query
  Add forgotten check for document end
  Resolve issues with using exceptions for flow control
  Resolve MyIntervals#176 (comment)
  Add ParserState::EOL and support it in consumeUntil
  Remove trailing newline from the lonely-import test file
  Replace assumption with certainty for EOF when consuming white space
  Fix PHP 5.3 compatibility
  Fix CSSList::replace with object as the new value
  Improve EOF handling + handle lonely import statements
  Fix PHP 7.3 warning when using count() on non-array value
  Remove an extra 'i' char
  Add test for validating keyframe selectors
  Improve the selector validation to support % based steps in a keyframe definition
  Bug fix in parsing size units
  Simplify the CSS validating regex
  Move selector validation outside of the Selector's constructor
  ...
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.

Missing ';' breaks @import parsing
2 participants