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

LESS improvements #356

Closed
wants to merge 8 commits into from
Closed

Conversation

mokkabonna
Copy link
Contributor

Testcase for things that do work added as well (nesting).

Python to come

@bitwiseman
Copy link
Member

I think we're just waiting on the python version to do this. Also needs merge resolution now.

@mokkabonna
Copy link
Contributor Author

Sure I just forgot this. But I'm still very interested in getting this merged. I have more less support coming, but let's keep the PR's small for easy merges.

@mokkabonna
Copy link
Contributor Author

Have fixed all the isses on the js side of things.. However the python implementation was not up to date with the js one, this functionality was not implemented for instance.
f416b0b#diff-e6bf79593be5e3c81e776945fac0fdda

@mokkabonna
Copy link
Contributor Author

To avoid features to be implemented only in js or python, and to ensure 100% js/python compability, it would be a idea to extract the input/expected testcases to files. And write js/python code that loads the input, processes, and compares against the expected.

That way you have 100% equal test coverage.

nponiros added a commit to get-the-service/js-beautify that referenced this pull request Mar 18, 2014
JavaScript:
css beautifier checks if the colon it encounters
is part of a property: value or part of a nested pseudo-class/
parent reference. In case of nested pseudo-class or parent reference
it does not output a space after the colon.

Added general test for parent reference, nested pseudo-class and
SASS import statement. Added special test for issues beautifier#410 and beautifier#414.

Python:
Best effort to support parent reference and nested pseudo-class.
When it encounters a colon it checks if the colon is part
of a property: value or part of parent reference/nested pseudo-class.
In case of parent reference/nested pseudo-class it does not output
a space after the colon.

Added tests for reference/nested pseudo-class. Add tests for
issues beautifier#410, beautifier#414

Fixes issues beautifier#410 and beautifier#414
Related to issue beautifier#356
nponiros added a commit to get-the-service/js-beautify that referenced this pull request Mar 18, 2014
JavaScript:
css beautifier checks if the colon it encounters
is part of a property: value or part of a nested pseudo-class/
parent reference. In case of nested pseudo-class or parent reference
it does not output a space after the colon.

Added general test for parent reference, nested pseudo-class and
SASS import statement. Added special test for issues beautifier#410 and beautifier#414.

Python:
Best effort to support parent reference and nested pseudo-class.
When it encounters a colon it checks if the colon is part
of a property: value or part of parent reference/nested pseudo-class.
In case of parent reference/nested pseudo-class it does not output
a space after the colon.

Added tests for reference/nested pseudo-class. Add tests for
issues beautifier#410, beautifier#414

Fixes issues beautifier#410 and beautifier#414
Related to issue beautifier#356
nponiros added a commit to get-the-service/js-beautify that referenced this pull request Mar 18, 2014
JavaScript:
css beautifier checks if the colon it encounters
is part of a property: value or part of a nested pseudo-class/
parent reference. In case of nested pseudo-class or parent reference
it does not output a space after the colon.

Added general test for parent reference, nested pseudo-class and
SASS import statement. Added special test for issues beautifier#410 and beautifier#414.

Python:
Best effort to support parent reference and nested pseudo-class.
When it encounters a colon it checks if the colon is part
of a property: value or part of parent reference/nested pseudo-class.
In case of parent reference/nested pseudo-class it does not output
a space after the colon.

Added tests for reference/nested pseudo-class. Add tests for
issues beautifier#410, beautifier#414

Fixes issues beautifier#410 and beautifier#414
Related to issue beautifier#356
@bitwiseman
Copy link
Member

Yes, the two may not be fully up to date because we weren't being as hard core about parity.

Please port the missing features or at least file issues so people know what needs porting .

@bitwiseman
Copy link
Member

I took your code amended it and made further changes. The fixes are now live in v1.5.3.

@mokkabonna
Copy link
Contributor Author

👍

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.

2 participants