Liam Newman
0357431d1c
Refactor comment tokenization
2015-06-12 17:28:46 -07:00
Liam Newman
5f09c45524
Version update for 1.5.6
2015-05-27 18:02:05 -07:00
Liam Newman
f8dcef139c
Correctly indent functions followed by comments
...
Fixes #583
Fixes #691
2015-05-27 16:43:38 -07:00
Liam Newman
1dba7379b0
Allow python --replace on files in the current directory
...
Fixes #686
2015-05-27 15:04:03 -07:00
Liam Newman
3e267770e9
Do not add extra newline for non-header comments
...
Fixes #609
2015-05-26 18:11:53 -07:00
Liam Newman
fea94e6fce
Merge pull request #684 from rlindner81/Fix587
...
Fixes issue #587 for javascript implementation
2015-05-26 11:32:58 -07:00
Paul Tremberth
6ff52daab5
Add tests and fix js based tokenizer too
2015-05-17 20:19:57 +02:00
Paul Tremberth
252dd3b3ef
Fix tokenizer's bracket pairs' open stack
2015-05-17 19:05:47 +02:00
Richard Lindner
40ac6c023c
Python/CSSBeautifier: added missing comma
2015-05-06 10:27:59 +02:00
Richard Lindner
720efe8b78
Python/CSSBeautifier: added indent_with_tabs to default options
2015-05-06 10:14:26 +02:00
Richard Lindner
6aa2aea764
Fixes missing tabs option for python implementation of CSS beautifier
2015-05-05 15:35:18 +02:00
Liam Newman
d5da0ad780
Make @page pseudo-class format correctly
...
Fixes #661
2015-03-31 17:08:33 -07:00
Liam Newman
59e9d045f2
Add "eol" option to support non-newline line endings
...
Note: this is still a bit hacky. There are cases in some constructs where newlines will not be normalized.
We'll address these as people see the need for them. This handles the 90% case.
Fixes #260
2015-03-23 15:11:19 -07:00
Liam Newman
8c3ddc5c64
Additional jsx tests
...
Related to #425
2015-03-16 13:29:32 -07:00
Liam Newman
f8abc1561d
Improve jsx support in e4x
...
Related to #425
2015-03-16 12:53:01 -07:00
Liam Newman
5d9e49e590
Allow whitespace in attribute assignment in e4x (reactJS)
...
Also migrated e4x tests to data generated, and added a few more tests
Fixes #646
2015-03-12 16:29:13 -07:00
Liam Newman
c5813e054f
Support handlebar testing in the generated tests
...
This also removes some previous hacks around content testing for handlebars.
2015-03-11 16:44:13 -07:00
Liam Newman
b22d297805
Convert regression tests
2015-03-09 13:21:37 -07:00
Liam Newman
edefb7b9b0
Move more tests to data file
2015-03-08 15:09:42 -07:00
Chris Thomas
46cf32151a
async function should stay on the same line
...
Fixes #630
Closes #634
2015-03-08 10:32:59 -07:00
Liam Newman
c86f9c15fd
Python 1.5.5
2015-03-06 13:56:24 -08:00
Moez Bouhlel
2b13664b4f
Add support for less functions with parameters
...
Closes #568
2015-03-06 13:31:15 -08:00
Liam Newman
f67aa02ef7
More fixes for unary operator formatting
...
Fixes #570
2015-03-06 11:47:29 -08:00
Liam Newman
182bda5cde
Fix dropping equal signs
...
Fixes #599
2015-03-05 23:21:46 -08:00
Liam Newman
f8cf725b09
Add Comma-first formatting option
...
This doesn't try to fight the user but given the opportunity it will put commas at the start of lines instead of the ends.
Fixes #245
Fixes #80
Closes #369
Closes #350
2015-03-04 17:55:42 -08:00
Liam Newman
b5426a8558
Yield statement should not be forced to a new line
...
Fixes #560
2015-03-04 16:50:16 -08:00
Liam Newman
4d66bb25f5
Clean up empty lines that contain extra spaces
2015-02-24 13:58:36 -08:00
Liam Newman
c832ecac97
Improve and test unchanged file behavior
...
Related to #597 and #613 .
While testing, python was missing -r option and also not running some tests.
2015-02-19 13:44:52 -08:00
Liam Newman
ccf88f8c53
Merge pull request #613 from coderhaoxin/rewrite-only-when-file-changed
...
rewrite file only when file data changed
2015-02-19 11:58:16 -08:00
Siddhartha Gudipati
e4ee640526
Fixing the issue #598
2015-02-10 13:36:53 -08:00
haoxin
b2f14afe4a
rewrite file only when file data changed
...
also fix #597
2015-02-10 11:13:36 +08:00
梁杰
44df1f123b
CSS: support add newline between rules
...
It's suggested by
[Google](https://google-styleguide.googlecode.com/svn/trunk/htmlcssguide.xml#CSS_Formatting_Rules )
that newline should be added between rules, so I think we should support
that and try to make it.
I added this behavior to both JS and Python with tests. Besides, I added
the new option to README and cli.js.
If I need to modify other files, please let me know.
Thanks!
complete cli.js
fix bugs in test.py
fix tests
use newLine function
fix python tests
fix tests
use indentLevel instead of nestedLevel
match default js tests
still
Revert "still"
This reverts commit 32797e83f07541c248ebe7fe9926e8a754556c98.
Find it!
update tests file
add more tests
add test
fix test
fix test
fix test
fix test
fix test
fix test
fix test
2014-11-19 14:30:04 +08:00
Liam Newman
f980a6f5f4
More test conversion, minor generation fixes
2014-10-17 12:38:27 -07:00
Liam Newman
1c34779073
Add ability to generate comments
...
Moves the formatters into the generator file. Not ideal factoring, but attempting not to repeat myself.
2014-10-16 10:39:32 -07:00
Liam Newman
ad47d04883
Move more javascript tests
2014-10-16 00:14:39 -07:00
Liam Newman
b23a9efc76
Add tests for empty braces
2014-10-13 12:32:47 -07:00
Liam Newman
d40e024a96
Add css test generation
...
Related to #216
2014-10-09 12:39:54 -07:00
Liam Newman
fb7cbb16a2
Comment the test data file and protect test generation
2014-10-08 15:00:06 -07:00
Liam Newman
3105657a40
Convert some more tests to generated
...
Related to #216
2014-10-08 15:00:06 -07:00
Liam Newman
4b0c4cb3fa
Remove semicolons from python tests
2014-10-08 15:00:06 -07:00
Liam Newman
4b6909b065
Add matrix text generation to test infrastructure
...
Relates to #216
2014-10-08 15:00:06 -07:00
Liam Newman
d437430bc6
Begin generating tests from data file
...
The conversion is far from complete. But this gets the first layer of framework in place.
Relates to #216
2014-10-08 15:00:06 -07:00
Liam Newman
54ca21bd55
Merge pull request #554 from c32hedge/c32hedge/brace-style-none
...
Add brace_style "none" option + tests for javascript, then cleanup all brace_style tests
2014-10-06 09:40:44 -07:00
c32hedge
8f97d0d03e
Copy over (cleaned up) brace position tests to python.
2014-10-05 21:20:21 -04:00
c32hedge
0fa529f8f0
Preserve opening brace position other than whitespace / indentation in Python version
2014-10-05 20:59:39 -04:00
Liam Newman
7e19aaa0d1
Avoid storing and processing indent strings until final output
...
This should yield some speed improvement on huge files. More than that it simplifies output code, especially when modifying output.
2014-10-05 11:18:59 -07:00
Liam Newman
ef8a820187
Added test for typescript interface
...
Related to #552
2014-10-04 13:35:23 -07:00
Liam Newman
f6a4b230d3
Python 1.5.4
2014-10-03 23:16:12 -07:00
Liam Newman
8a400da0af
TypeScript is not really supported but trying not to break it
...
Fixes #552
2014-10-03 22:51:22 -07:00
Liam Newman
6fa815a5ff
Perfornace tests added to test run for python and javascript
...
Closes #220
2014-10-03 15:30:40 -07:00