622 Commits

Author SHA1 Message Date
Liam Newman
d378206d0a Generated Test Cleanup 2018-07-18 15:43:32 -07:00
Liam Newman
c289213920 Fix regular expressions 2018-07-18 15:42:34 -07:00
Liam Newman
5f44759790 CSS Beautifier using InputScanner 2018-07-18 14:01:21 -07:00
Liam Newman
1eae819f77 Remove PeekCharCode 2018-07-16 23:40:30 -07:00
Liam Newman
a10fa5e1d9 Improve python regex performance 2018-07-16 13:13:54 -07:00
Liam Newman
c34633b73e Add readWhile for matching 2018-07-16 12:46:07 -07:00
Liam Newman
54f8e464b4 Add first unit test for input scanner 2018-07-10 00:15:54 -07:00
Liam Newman
2fe86d18ad Add mocha for unit testing 2018-07-10 00:15:24 -07:00
L. D. MacKrell
fc231b101b Refactor beautifier startStatement function 2018-07-09 11:10:07 -07:00
L. D. MacKrell
91ffb9babd Update copyright dates 2018-07-09 10:42:23 -07:00
L. D. MacKrell
94a8231c1f Refactor Options with comments 2018-07-09 10:39:20 -07:00
L. D. MacKrell
7548943100 Refactor inputscanner with comments 2018-07-09 10:31:10 -07:00
Liam Newman
054cf55dcd Fix hanging run 2018-07-08 20:39:32 -07:00
L. D. MacKrell
713ff7b370 WIP python tokenizer update with xml detection 2018-07-08 18:48:19 -07:00
L. D. MacKrell
a63c5c6cc1 Fix xml detection and test 2018-07-08 18:48:19 -07:00
Liam Newman
dc9c185dcd Python 1.8.0-rc2 2018-07-07 16:21:45 -07:00
Liam Newman
24eb273f50 Python 1.8.0-rc1 2018-07-07 15:29:57 -07:00
Liam Newman
6abc46d50d Test for comment position
Closes #1440
2018-07-06 15:57:09 -07:00
Liam Newman
e6591ba224 Package updates 2018-07-06 15:56:50 -07:00
Liam Newman
6c6fa835c9 Test for increment indent
Fixed #814
2018-06-30 15:46:22 -07:00
Liam Newman
7f0cfda40f Await import() support
Fixed #1228
2018-06-30 14:18:56 -07:00
L. D. MacKrell
b2b7517aeb Fixes :hover for @extend issue 2018-06-30 09:49:27 -07:00
Liam Newman
43fac5caa3
Merge branch 'master' into 1283-Javascript++OperatorGetsWrongIndentation 2018-06-28 20:23:49 -07:00
L. D. MacKrell
3be5928c6d Fixed incorrect unindent for if else blocks
Fixes #1378
2018-06-28 14:29:16 -07:00
Elrendio
d16b21ae47 1283 - Javascript ++ Operator Gets Wrong Indentation
Resolves #1283

**What was done:**
 - Adapted function print_newline to restore mode if last_test was operator ++ or --
 - Added corresponding test.

**Example of behavior:**
== Input ==
{this.foo++
bar}

== Expexted Output ==
{
    this.foo++
    bar
}

== Unchanged ==
axios.interceptors.request.use(
    config => {
        // loading
        window.store.loading++
        let extraParams = {}
    }
)
2018-05-25 10:45:45 +02:00
Liam Newman
56a6270bc0 Handle null input strings
Fixes #1120
2018-05-21 15:20:10 -07:00
Liam Newman
6ed2116c4c
Merge pull request #1303 from thejoshwolfe/bigint
Add support for BigInt literals in JavaScript
2018-05-11 16:29:34 -07:00
Liam Newman
eaeab28757 Add tests for BigInt 2018-05-11 16:19:27 -07:00
Liam Newman
5329720021 Support dynamic import
Fixes #1393
2018-05-11 16:03:25 -07:00
Liam Newman
01111faed5 Rearrange expression start formatting code 2018-05-11 15:28:45 -07:00
Liam Newman
35e2a550d4 Add tests and tweaks for newline rules and comments
Fixes #531
Fixes #857
2018-05-09 14:15:42 -07:00
Liam Newman
2c514e3daf Remove WSEat tracking 2018-05-08 23:10:26 -07:00
Liam Newman
4b1748190d Add newline preservation after inline comments 2018-05-08 22:43:27 -07:00
Liam Newman
66383d7938 Added some newline tests 2018-05-07 18:56:25 -07:00
Liam Newman
ef7e2cdd61
Merge branch 'master' into master 2018-05-07 17:59:04 -07:00
swan46
b0e5f23a2d
Update packer.py
Fixed Codeclimate's notices, except Line too long (95 > 79 characters), line 66: Code has been always like that, not sure, how to modify.
2018-05-04 21:47:52 +02:00
swan46
0a83e5acdd
Update test-packer.py
added test case for radix=[]
2018-05-03 11:08:06 +02:00
swan46
11008f1926
Update packer.py
added case, that radix is [] (default), and not numeric
2018-05-03 11:01:15 +02:00
swan46
df10f2bde8
Update packer.py
Optimized using pep8 online
2018-04-24 22:46:59 +02:00
swan46
090f478ad1
Update test-packer.py
optimized with pep8 online
2018-04-24 22:45:02 +02:00
swan46
63013ff707
Create test-packer.py
test packer part of python jsbeautifier
2018-04-23 18:49:01 +02:00
swan46
df72b52de0
Update packer.py
fixed index error
2018-04-22 12:04:31 +02:00
swan46
41466eb470
Update packer.py
updated to handle string begin and end properly
2018-04-21 18:44:30 +02:00
Liam Newman
83123545de
Update packer.py 2018-04-10 23:07:02 -07:00
swan46
2e84220a99
Update packer.py
fixed elements 37...61 usage
2018-04-10 08:00:09 +02:00
Liam Newman
aa1b498e43
Merge branch 'master' into bigint 2018-03-22 13:53:11 -07:00
Liam Newman
cfafd3dff1
Merge branch 'master' into master 2018-03-22 13:52:42 -07:00
Liam Newman
0be836b005
Merge branch 'master' into cssbeautify-python-cli 2018-03-20 11:37:27 -07:00
Liam Newman
472bf83a97 Added #1156 to python implementation 2018-03-15 11:10:09 -07:00
Liam Newman
a475e310f9
Merge branch 'master' into master 2018-03-01 16:09:42 -08:00