jkmnt
23126f937c
fixed ( #2291 )
2024-09-09 09:43:33 -07:00
GitHub Action
f53ce3a5ff
Bump version numbers for 1.15.1
2024-02-16 16:14:54 +00:00
Liam Newman
96340d5d43
Turn off new angular templating by default in html
2024-02-16 07:29:04 -08:00
GitHub Action
a609668031
Bump version numbers for 1.15.0
2024-02-15 17:35:30 +00:00
gergely-gyorgy-both
5aff965e0b
Fixed #2219 - formatting of new Angular control flow syntax ( #2221 )
...
* Fixed #2219 - formatting of new Angular control flow syntax
* Add 'angular' templating option; use it for html beautifier control flow syntax
* Add more precise selection for angular control flow close tag
* Print angular control flow tokens with basic formatting
* Add tests for fixing issue #2219
* Change angular control flow selection to do via pattern
* Fix selecting control flow closing brace if it is not preceded by whitespace
* Fix regex for control flow start pattern; only select control flow open if indent_handlebars is true
* Changing angular at-string detection regex
Limiting this to a smaller set.
---------
Co-authored-by: Liam Newman <bitwiseman@gmail.com>
2024-02-15 09:26:26 -08:00
GitHub Action
dd95b10d08
Bump version numbers for 1.14.11
2023-11-07 00:22:33 +00:00
GitHub Action
4944f58769
Bump version numbers for 1.14.10
2023-11-07 00:07:05 +00:00
Nikita Sobolev
33d9bf2e5d
Use raw strings to define a regex in packer.py
...
`'\('` raises a `DeprecationWarning`, because `\(` is not a valid escape sequence in Python:
```
tests/unit/test_cli/test_schema_commands.py::test_openapi_typescript_command[Custom-]
D:\a\litestar\litestar\.venv\Lib\site-packages\jsbeautifier\unpackers\packer.py:31: DeprecationWarning: invalid escape sequence '\('
"eval[ ]*\([ ]*function[ ]*\([ ]*p[ ]*,[ ]*a[ ]*,[ ]*c["
```
Link: https://github.com/litestar-org/litestar/actions/runs/6282794210/job/17062629903#step:11:71
But, `r'\('` is actually fine. So, let use it!
2023-09-23 13:44:14 +03:00
Liam Newman
87483fcbeb
Merge branch 'main' into json-invalid-wrap-with-line-length-and-signed-number
2023-08-30 14:24:25 -07:00
Liam Newman
88c0ab5767
Fix tokenizer to recognize es6 code point syntax
2023-08-30 14:12:17 -07:00
Roja A M
8a4f552291
Fix - Invalid prettification of object with unicode as key
2023-08-26 20:01:46 +05:30
GitHub Action
d47e41867f
Bump version numbers for 1.14.9
2023-07-20 07:31:44 +00:00
Liam Newman
a669239930
Re-enable python javascript tests
2023-06-12 11:03:15 -07:00
GitHub Action
023645e664
Bump version numbers for 1.14.8
2023-06-01 15:30:23 +00:00
Liam Newman
9b61173b07
Merge branch 'main' into json-invalid-wrap-with-line-length-and-signed-number
2023-04-28 09:28:12 -07:00
Liam Newman
4a3ea270b5
Clean up python formatting
2023-04-26 18:26:52 -07:00
Tim Gates
6d032d3739
docs: Fix a few typos
...
There are small typos in:
- python/jsbeautifier/javascript/beautifier.py
- tools/template/beautify.wrapper.js
Fixes:
- Should read `conditional` rather than `conditionial`.
- Should read `overridden` rather than `overriden`.
Signed-off-by: Tim Gates <tim.gates@iress.com>
2022-12-25 12:53:00 +11:00
Muhammad Hammad
97d0f43c4d
Merge branch 'main' into json-invalid-wrap-with-line-length-and-signed-number
2022-11-28 17:08:46 -05:00
Antonius Anggito Arissaputro
a700321057
Minor style check
2022-11-25 14:50:28 +07:00
Antonius Anggito Arissaputro
7c05020785
Change js and py jsbeautifier for record as START_BLOCK token
2022-11-25 03:03:15 +07:00
Antonius Anggito
5cedf34305
Merge branch 'main' into cwthedev-Iss2062_records
2022-11-25 02:47:04 +07:00
Muhammad Hammad
c90470061c
fix - semicolon followed by block statement doesnt have new line
...
This change makes sure that a new line is added everytime a semicolon is followed by a block statement
fixes #1852
2022-11-17 18:43:39 -05:00
Muhammad Hammad
4a2995e8ad
fix - invalid line wrap with signed numbers in json property
...
This fix makes sure we can identify signed numbers correctly when they are used as an object property to avoid having issues with line wrapping
fixes #1932
2022-11-17 16:59:13 -05:00
GitHub Action
fded96df28
Bump version numbers for 1.14.7
2022-10-21 16:33:55 +00:00
cw100dev
ada9f66ea1
changes to both js and python jsbeautifiers for issue #2062 to accoutn for new record types
2022-09-08 17:14:37 -07:00
GitHub Action
d86a249d3a
Bump version numbers for 1.14.6
2022-08-21 04:43:32 +00:00
GitHub Action
b7917f4cf0
Bump version numbers for 1.14.5
2022-08-07 07:29:33 +00:00
Håvard F. Aasen
457c571d78
Fix test 'Do not remove whitespace after number'
...
The Python version changed the wrong variable, which means that the
test fails.
This patch changes the variable from '_flags.whitespace_before' to
'_output.space_before_token'.
2022-08-04 21:52:38 +02:00
GitHub Action
3256a5aa0d
Bump version numbers for 1.14.4
2022-06-20 23:50:26 +00:00
Liam Newman
4cc5e6ef5b
Merge branch 'main' into feature/space-after-named-function-classes
2022-04-21 17:30:35 -07:00
Liam Newman
4b6ba1be74
Merge branch 'main' into in-class-method
2022-04-21 10:01:39 -07:00
Liam Newman
11f2dae290
Merge branch 'main' into feature/space-after-named-function-classes
2022-04-20 21:12:20 -07:00
Hammad
0b35ee91b9
Instead of just relying on the text to confirm last token, also check for the type to be reserved token this way we will be sure that it is actually the special word class instead of a property called class
2022-04-13 03:24:20 -02:30
Liam Newman
73e57eef86
Merge pull request #2011 from bhaveshvasnani/remove_whitespace_number
...
[Issue 1950] Do not remove whitespace after number
2022-04-12 14:50:17 -07:00
Bhavesh Vasnani
073f66f29b
modifying pyhton regex search function
2022-04-13 01:28:32 +05:30
Hammad
1f1f5db201
Accommodating for the fact that the last last token can be of type class but it doesn't necessarily have to be the keyword class
2022-04-12 03:33:09 -02:30
Hammad
9cceee0d74
Fix issue #1095 where special words like return without semicolon are followed by prefix operators on newlines
2022-04-11 18:48:10 -02:30
Hammad
027026093e
#1622 - Adds space_after_named_function option for ES6 classes
2022-04-11 03:33:56 -02:30
Liam Newman
5ca6beed8a
Merge branch 'main' into remove_whitespace_number
2022-04-09 08:56:24 -07:00
GitHub Action
ecd5278e88
Bump version numbers for 1.14.3
2022-04-09 05:31:09 +00:00
Liam Newman
a5995d0b5d
Merge branch 'main' into in-class-method
2022-04-06 23:24:29 -07:00
Hammad
f0740309dd
Identifying block statements from object literals for objects that have class/interface as key type. Also added some regression tests
2022-04-05 21:34:47 -02:30
Hammad
6ed8dc8bc4
Checking to make sure that the token with text 'class' or 'interface' has whitespace after it to be considered a block statement, otherwise treat as object literal
2022-04-02 22:42:35 -02:30
Liam Newman
4e56dca3e1
Merge branch 'main' into remove_whitespace_number
2022-03-31 08:59:46 -07:00
bhaveshvasnani
54e524cf39
latest version of black doesn't support py27
2022-03-31 15:07:03 +05:30
kcamsanc
9f644ab73e
[ISSUE 1846] Remove unnecessary imports
2022-03-30 19:40:40 -04:00
Liam Newman
33df40fcdc
Merge pull request #1997 from mhnaeem/feature/support-import-meta-syntax
...
feature: support import.meta syntax
2022-03-29 11:59:19 -07:00
Liam Newman
43a9df83b9
Merge branch 'main' into feature/add-logical-assignments
2022-03-29 11:38:50 -07:00
Liam Newman
5f3cc9ad99
Merge branch 'main' into feature/support-import-meta-syntax
2022-03-29 11:38:40 -07:00
GitHub Action
a877e951fd
Bump version numbers for 1.14.2
2022-03-29 08:30:49 +00:00