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

Js #11

Open
wants to merge 583 commits into
base: main
Choose a base branch
from
Open

Js #11

Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
583 commits
Select commit Hold shift + click to select a range
d0adfec
Consistent indentation of newtypes (#2294)
Julow Mar 14, 2023
73dd430
Fix indentation of trailing double-semicolons (#2295)
gpetiot Mar 14, 2023
1d5462f
Unify printing of functional arguments (#2298)
Julow Mar 15, 2023
cbdcf1a
Improved error reporting for unstable or dropped comments (#2292)
gpetiot Mar 16, 2023
b80d8c5
GA: Reuse build artifacts when running test_branch (#2296)
Julow Mar 16, 2023
a07ae6e
Janestreet: Do not de-indent top-level 'fun' (#2302)
Julow Mar 16, 2023
622a60b
tools/printast: Print extended AST (#2303)
Julow Mar 16, 2023
cfce574
Dock 'object .. end' blocks in class signatures (#2301)
Julow Mar 16, 2023
9a7d999
Shorter syntax for first class modules (#2300)
Julow Mar 16, 2023
4383750
Remove extra parentheses around module packs (#2305)
gpetiot Mar 16, 2023
8dff00f
ocp-indent-compat: Break label if '->' doesn't fit (#2299)
Julow Mar 16, 2023
1e43982
Avoid breaking after the 'mutable' keyword (#2307)
Julow Mar 17, 2023
de34d2a
Remove double parenthesis around tuple in a match (#2308)
Julow Mar 17, 2023
f56485e
test_branch: Run ocp-indent for the Janestreet profile (#2306)
Julow Mar 17, 2023
99f386c
Remove parens around match sugared type constraint (#2310)
Julow Mar 20, 2023
613a88d
ocp-indent compat: Indent docked module expressions (#2309)
Julow Mar 20, 2023
7fee6a7
Treat *.ml{i} in Linguist as OCaml (#2312)
kevinji Mar 21, 2023
995b987
ocp-indent-compat: Dock trailing fun after infix (#2311)
Julow Mar 22, 2023
913f754
Break infix followed by letop (#2315)
Julow Mar 22, 2023
eda1ede
Control indentation of [@@] attributes after value binding (#2313)
Julow Mar 23, 2023
22de444
JaneStreet profile: improve indentation of function body when max-ind…
gpetiot Mar 23, 2023
fbca1cf
Make *.t files detectable by Linguist (#2318)
gpetiot Mar 28, 2023
3f190c8
doc: explain option enable-outside-detected-project (#2319)
gpetiot Mar 28, 2023
4296bcc
ocp-indent-compat: Docked match after infix (#2316)
Julow Mar 29, 2023
a4d320d
Don't indent attributes after let/val/external (#2317)
Julow Mar 29, 2023
dd54b00
JaneStreet profile: treat comments as doc-comments (#2261)
gpetiot Mar 29, 2023
a0a71d4
[debug] Output the *.boxes.ml filenames on stderr (#2320)
gpetiot Apr 4, 2023
88564b8
Improve formatting of module arguments (#2322)
Julow Apr 4, 2023
b7de250
Fix identation of module-expr extensions (#2323)
gpetiot Apr 4, 2023
0aacc66
Fix context consistency for class fields (#2324)
gpetiot Apr 5, 2023
3766076
Fix context consistency for class type fields (#2325)
gpetiot Apr 5, 2023
d6c72d2
Fix context consistency for module declarations and module bindings (…
gpetiot Apr 5, 2023
b1e42db
Fix context consistency for type declarations (#2327)
gpetiot Apr 5, 2023
4771800
[debug] Output the *.ast filenames on stderr (#2329)
gpetiot Apr 6, 2023
8c11767
Adjust indentation of class-expr function body (#2328)
gpetiot Apr 6, 2023
b07c63c
Remove eol parameter of fmt_class_expr (#2331)
gpetiot Apr 11, 2023
cab4b44
Don't print warnings related to odoc code-blocks when '--quiet' is se…
gpetiot Apr 14, 2023
6138cde
Fix AST changed due to strings in code blocks (#2338)
Julow Apr 19, 2023
30e30af
Update to cmdliner 1.2.0 (#2334)
Julow Apr 19, 2023
358724f
Generate documentation pages for manpages (#2339)
Julow Apr 20, 2023
ca4d971
Cleanup: Remove unwanted execution permission on some files (#2340)
ilankri Apr 20, 2023
ee9cdd7
Remove '--numeric' option and recovery feature (#2333)
gpetiot Apr 20, 2023
a605362
Update opam deps in dune-project file (#2342)
gpetiot Apr 20, 2023
108ad43
ocp-indent-compat: Fix comment changed (#2344)
Julow Apr 21, 2023
e0f668b
Keep literal char value during parsing (#2343)
gpetiot Apr 22, 2023
ef3c1df
Preserve functor concrete syntax in the Parsetree (#2345)
gpetiot Apr 24, 2023
8a33ac8
Consistently wrap (::) (#2347)
Julow Apr 24, 2023
9ffe4b4
Normalize functors in parser (#2350)
gpetiot Apr 28, 2023
7b462be
Fix formatting of cinaps comments with strings (#2349)
Julow Apr 28, 2023
f324b7b
Protect match after `fun _ : _ ->` (#2352)
Julow Apr 28, 2023
6181425
test_branch: Numstat and run ocp-indent once (#2355)
Julow Apr 28, 2023
d04e7b3
Remove unused function Params.semi_sep (#2356)
gpetiot Apr 28, 2023
7c4b9ad
Remove unused option '--range' (#2357)
gpetiot Apr 29, 2023
40dce93
Fix parsing and normalization of cinaps comments (#2354)
Julow May 9, 2023
d8aad66
Align pattern alias (#2359)
Julow May 10, 2023
3e8d9fe
ocp-indent-compat: Docked fun on same line (#2362)
Julow May 10, 2023
3d62b58
Requires ocp-indent 1.8.1 with tests (#2364)
Julow May 11, 2023
bc6425d
ocp-indent-compat: Align module arguments (#2363)
Julow May 22, 2023
04d8bfb
ocp-indent-compat: Remove extra newline in empty comments (#2365)
Julow May 24, 2023
58b95cc
Run ocp-indent tests in one phase (#2367)
Julow May 25, 2023
24be539
Handle short syntax for generative functor types (#2348)
gpetiot May 25, 2023
d508311
Fix crash with exp-grouping and if-then-else (#2369)
Julow May 26, 2023
1449275
Licensing: Facebook CLA does not apply to new contributions (#2358)
gpetiot May 31, 2023
ea8f9bb
Fix crash with module unpack with constraint (#2370)
Julow Jun 1, 2023
6a78793
Don't mix comments and docstrings (#2372)
Julow Jun 8, 2023
da0589b
Disable the deprecated alert in code blocks (#2373)
Julow Jun 12, 2023
408e4b4
Format dune-project file with fmt alias (#2375)
gpetiot Jun 19, 2023
a4b307c
Don't escape @ in the middle of a word (#2377)
Julow Jun 21, 2023
6264526
Doc: Don't escape balanced brackets in code spans (#2376)
Julow Jun 21, 2023
da0153a
Preserve blank lines in docstrings (#2379)
Julow Jun 23, 2023
2aecea1
Generate an HTML output to debug boxes (#2353)
gpetiot Jun 23, 2023
8abe317
CI: Fix Windows and faster test-branch (#2385)
Julow Jun 27, 2023
8a50af7
Doc: Unwanted break before a unwrapped code span (#2378)
Julow Jun 27, 2023
2bc2c13
Fix indentation of doc-strings in classes (#2387)
Julow Jul 3, 2023
5612a0f
Disable short syntax for record field on 4.02 (#2388)
Julow Jul 3, 2023
3269b90
Uncomment test in test/passing/tests/record.ml (#2391)
Julow Jul 4, 2023
fa6f9ad
Update the preview script (#2386)
Julow Jul 4, 2023
bc8b336
Update printast (#2394)
Julow Jul 5, 2023
0bdeb39
Remove standard parser and Format diffs (#2393)
Julow Jul 5, 2023
cea4c4e
ocp-indent-compat: Don't unindent unwrapped docstrings (#2392)
Julow Jul 6, 2023
14347a3
Preserve line break between operator and let (#2396)
Julow Jul 10, 2023
174eb76
More improvements to the preview script (#2400)
Julow Jul 17, 2023
0e1ffb3
Fix AST changed on let coercion (#2399)
Julow Jul 18, 2023
ae7eeef
Restore indentation of `->` (#2398)
Julow Jul 18, 2023
d5e8ddb
CI: Cache test-extra/code when running test_branch (#2402)
Julow Jul 18, 2023
fe70498
Prepare 0.26.0 (#2403)
Julow Jul 18, 2023
589183e
CI and opam file fixes after 0.26.0 (#2404)
Julow Jul 21, 2023
722480c
tools/printast: Option for using standard parser (#2411)
Julow Jul 26, 2023
862f3ae
Better error message when ocamlformat emit source triggering warning …
hhugo Jul 30, 2023
add090c
Parenthese nested module with-constraints (#2419)
Julow Aug 29, 2023
31cdd4a
tools/preview_new_release.sh: Fix tezos script call (#2418)
Julow Aug 29, 2023
2d9fb4a
Stabilize comment around functor type arguments (#2420)
Julow Aug 29, 2023
ecd40f2
Fix dropped attributes on begin-end in a match case (#2421)
Julow Aug 30, 2023
aa99c1d
Improve repository for newcomers (#2380)
tmattio Sep 4, 2023
aac4dc6
Consistent formatting for arrow class types (#2422)
Julow Sep 5, 2023
6c4d516
Backport dead code in vendored parsers (#2424)
Julow Sep 5, 2023
f623b63
Backport 5.1.0-beta1 standard parser changes (#2412)
Julow Sep 5, 2023
63b7ff5
De-indent the `object` keyword in class types (#2425)
Julow Sep 8, 2023
bdf44be
Remove extra break in constructor decl after a comment (#2429)
Julow Sep 8, 2023
441fb96
test_branch: Print tested versions (#2430)
Julow Sep 11, 2023
c7b89a0
Improve compatibility with ocp-indent (#2428)
Julow Sep 11, 2023
253323e
Fix ';;' formatting between doc-comments and toplevel directives (#2…
gpetiot Sep 15, 2023
baa6c98
Fix dropped attributes on begin-end in an if-then-else branch (#2436)
gpetiot Sep 15, 2023
d57fd7c
ocamlformat.el (ocamlformat-before-save): support caml-mode (#2433)
nojb Sep 15, 2023
6734dfc
Bump version 0.26.1
Julow Sep 15, 2023
948e87a
Fix trailing space in empty signature (#2443)
Julow Sep 19, 2023
3c02628
Enable 'parse-docstrings' in the default profile (#2390)
Julow Sep 19, 2023
f9af431
Improvements to the preview script (#2431)
Julow Sep 19, 2023
b28958b
Remove .mli files in vendored parsers (#2449)
Julow Sep 20, 2023
271ca20
Sanitize result types (#2444)
gpetiot Sep 20, 2023
3d8b8e7
Consistent spacing between items with extension (#2450)
Julow Sep 22, 2023
7a5b87c
Add a page about how the configuration is computed (#2446)
gpetiot Sep 25, 2023
940eea5
Update issue templates (#2452)
gpetiot Sep 26, 2023
bc91e42
Attributes now stay where the user put them (#2451)
EmileTrotignon Sep 27, 2023
ed30ab8
Consistent break after string constant argument (#2453)
Julow Oct 5, 2023
ab3b75b
Fix formatting of floating docs between recursive modules (#2455)
EmileTrotignon Oct 5, 2023
d664fa2
Remove incorrect `fmt_expression ~epi` mechanism (#2445)
Julow Oct 5, 2023
b790cc4
--no-comment-check ignores floating doc comments (#2456)
hhugo Oct 9, 2023
5f5a541
Fixed bug with attributes on sub-expressions of infix operators. (#2459)
tdelvecchio-jsc Oct 10, 2023
8f8c14f
Janestreet profile: do not break `fun _ -> function` (#2460)
tdelvecchio-jsc Oct 10, 2023
245f525
Disable formatting of comments for the janestreet profile. (#2461)
tdelvecchio-jsc Oct 10, 2023
12efce8
Fix cinaps comment formatting to not change multiline string contents…
tdelvecchio-jsc Oct 10, 2023
b178884
Reduce the indentation of (polytype) type constraints (#2437)
gpetiot Oct 11, 2023
47bfef0
Define type 'type_constraint' (#2464)
gpetiot Oct 19, 2023
181da77
Define type function_param and replace Sugar.arg_kind (#2466)
gpetiot Oct 23, 2023
4a213e2
Remove unnecessary Sugar.polynewtype (#2467)
gpetiot Oct 26, 2023
1aaffd9
Use type function_param in Pexp_fun (#2471)
gpetiot Nov 6, 2023
4e2a618
Fix: Ast_mapper.map_function_param should call arg_label (#2473)
gpetiot Nov 6, 2023
306fe23
Reuse type 'value_constraint' instead of redefining constraint type f…
gpetiot Nov 6, 2023
d43aba3
Detect binding_op punning during parsing (#2474)
gpetiot Nov 6, 2023
5f796f2
Fix Ppat_cons parenthesization in function parameter position (#2476)
tdelvecchio-jsc Nov 7, 2023
d0a28cf
Refactor handling of comments (#2371)
Julow Nov 8, 2023
a727b4b
Renaming of the 'a with_comments in Translation_unit (#2479)
gpetiot Nov 9, 2023
74215ea
janestreet: Always treat multiline `{|delimited strings|}` as though …
dvulakh Nov 22, 2023
3237628
Align variant arguments indentation inside parentheses (#2427)
Julow Nov 27, 2023
487c7b7
Prefix all vendored libraries (#2481)
Julow Nov 27, 2023
0212da8
bench: remove unused range type (#2482)
gpetiot Nov 28, 2023
3a10235
Remove unused Range constructor (#2483)
gpetiot Nov 30, 2023
0636bfe
Add back --disable-outside-detected-project (#2439)
gpetiot Nov 30, 2023
a7f8da9
tools/preview_new_release.sh: Signoff commits (#2485)
Julow Dec 4, 2023
8827bb6
Format test/projects/dune (#2489)
gpetiot Dec 14, 2023
bb35976
bench: Remove unused bechamel-js dependency (#2490)
gpetiot Dec 14, 2023
4b12990
ocamlformat-lib: Add Cmdliner dependency (#2492)
gpetiot Dec 14, 2023
8591556
ocamlformat: Add csexp dependency (#2493)
gpetiot Dec 14, 2023
5240d4e
ocamlformat-lib: Add fpath.0.7.3 dependency (#2494)
gpetiot Dec 14, 2023
18ab17d
bench: Cleanup unused code (#2496)
gpetiot Dec 14, 2023
315ab42
Break around comments following an infix operator (#2478)
gpetiot Dec 14, 2023
3b3f88a
Add type constraint to binding_op (#2486)
gpetiot Dec 14, 2023
5f5e9f7
Fix indentation of tuples in payloads (#2488)
Julow Dec 15, 2023
2b45f79
Fix ocaml-ci status badge
gpetiot Dec 15, 2023
aa123b2
CI: ignore the version check (#2495)
gpetiot Dec 15, 2023
a700ed3
Use type function_param in Pcl_fun (#2498)
gpetiot Dec 20, 2023
7f6bbab
Use a list of function_param in Pcl_fun (#2499)
gpetiot Dec 21, 2023
11460fa
Factorize pretty printing of class_infos, open_infos and include_info…
gpetiot Dec 21, 2023
c30558b
Add class_infos to Ast.t (#2501)
gpetiot Dec 21, 2023
fff2016
Add args and constraint to class_infos (#2502)
gpetiot Dec 21, 2023
abe4689
Don't align breaking module arguments (#2505)
Julow Jan 8, 2024
9534fe5
Fix unstable comment around docked functor arg (#2506)
Julow Jan 10, 2024
8418244
Fix unwanted alignment after comment (#2507)
Julow Jan 16, 2024
aa2ec82
Avoid alignment in if-then-else (#2511)
Julow Jan 16, 2024
cb9b356
Improvements to ocp-indent-compat and the Janestreet profile (#2314)
Julow Jan 16, 2024
37d9f62
Backport 5.2 compilerlibs changes (#2510)
gpetiot Jan 22, 2024
4826c40
Distinguish fun_param for expr/class, unify parsing of val/newtype fu…
gpetiot Jan 22, 2024
9fae8a7
Cleanup Let_binding.split_annot (#2515)
gpetiot Jan 23, 2024
e77f730
Add args to binding_ops (#2516)
gpetiot Jan 23, 2024
7db948a
Bug fix: `Pexp_constraint` with attributes should get parenthesized (…
alanechang Jan 23, 2024
b8b0956
Fix formatting of type vars in GADT constructors (#2518)
Julow Feb 5, 2024
8d63ea7
Expose let_binding_deindent_fun flag (#2521)
henrytill Feb 7, 2024
26cffc2
Undo let-bindings normalizations, carry out the args to remove the su…
gpetiot Feb 7, 2024
8c20da8
Support Ptyp_open from OCaml 5.2 (#2519)
Julow Feb 9, 2024
169c480
Fixes a bug in class type when trying to disable ocamlformat (#2525)
EmileTrotignon Feb 13, 2024
137e61c
Keep the location of 'in' keywords in local bindings (#2242)
EmileTrotignon Feb 16, 2024
9338703
use `force_break` value instead of `fmt "@;<1000 0>"` (#2526)
EmileTrotignon Feb 16, 2024
910dbf3
Removes format syntax (#2528)
EmileTrotignon Feb 27, 2024
b10d76e
Preserve position of attributes on structure items (#2247)
EmileTrotignon Feb 28, 2024
57d9a16
Check dune fmt in the github actions (#2530)
gpetiot Feb 28, 2024
8db3e20
Add object.ml.ref (#2532)
gpetiot Mar 4, 2024
6ce00bf
Simplify representation of class field values and methods (#2529)
gpetiot Mar 4, 2024
54fff68
Fix missing parenthesis after try..with (#2537)
Julow Apr 12, 2024
49af117
Fix dropped comments before begin-end case (#2541)
Julow Apr 16, 2024
6e5a1ec
Fix comments around underscore in record patterns (#2540)
Julow Apr 16, 2024
356ec71
Backport changelog from the 0.26 branch (#2548)
Julow May 13, 2024
099d6e1
Fix doc-comments '*)' exceeding the margin (#2550)
Julow May 15, 2024
b6867b0
Improve the placement of begin..end attributes (#2551)
Julow May 16, 2024
c43f89b
Box debug not showing break_unless_newline and fits_or_breaks (#2553)
Julow May 28, 2024
8421be1
vscode debugger config (#2554)
EmileTrotignon Jul 26, 2024
2677e07
add box_debug to new fmt combinators for breaks (#2566)
EmileTrotignon Jul 29, 2024
f541556
Correct --wrap-comments doc on docstrings (#2568)
Julow Jul 31, 2024
53263bd
Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows …
dependabot[bot] Sep 4, 2024
0ba448a
CI: Disable test-branch on main (#2573)
Julow Sep 4, 2024
4a5d647
CI: Update actions/upload-artifact (#2574)
Julow Sep 4, 2024
923486c
tests: Add source-conventional.ml.ref (#2575)
Julow Sep 5, 2024
8cf0db5
Extract tests from the 5.2 compat PR (#2578)
Julow Sep 20, 2024
f8e16b3
Allow custom commands for running ocamlformat (#2577)
gridbugs Sep 24, 2024
f959752
fix up spacing in `f a#:b` (instead of `f a #: b`) (#2580)
v-gb Oct 4, 2024
e9dbd60
CI: Fix test-branch after external action change (#2584)
Julow Oct 8, 2024
7f20ec4
Backport 5.2 changes to parser-standard (#2512)
Julow Oct 8, 2024
6aaac03
Add stacktraces to the html debug output (#2567)
EmileTrotignon Oct 10, 2024
ca77ba9
Fix missing parentheses around let..in with attribute (#2564)
Julow Oct 11, 2024
9dbce34
Stricter AST checks (#2557)
Julow Oct 11, 2024
51800ac
Pick tests added in #2544 (#2588)
Julow Oct 14, 2024
3386dca
Backport Pexp_function from OCaml 5.2 (#2544)
Julow Oct 14, 2024
d97e99d
parser-extended: Add missing Ast_mapper rule (#2591)
Julow Oct 17, 2024
8229856
Fix 'function' indent in methods with no-wrap-fun-args (#2590)
Julow Oct 17, 2024
dca7513
Preserve comment placement after a `then` or `else` (#2589)
Julow Oct 17, 2024
500977d
Represent 'let f _ = function' in the CST (#2596)
Julow Oct 24, 2024
35ef398
Un-indent comment after fun (#2592)
Julow Oct 25, 2024
8bc9f0f
Wrap short fun after a let with the janestreet profile (#2593)
Julow Oct 25, 2024
cd80d55
Fix arrow type indentation with break_separators=before (#2598)
Julow Oct 28, 2024
36e1ca8
Fix parenthesing of let in class expressions (#2599)
Julow Oct 28, 2024
864d6a5
Fix dropped attribute in (module M : S [@attr]) (#2602)
Julow Oct 29, 2024
50946dc
Build on OCaml 5.3 (#2603)
Julow Oct 29, 2024
3cb0c25
Editorialize the changelog (#2605)
Julow Oct 31, 2024
0df6987
odoc: Fix formatting of paragraphs in lists (#2607)
Julow Oct 31, 2024
7ebe9fc
Fix unecessary break due to comment in polymorphic variants (#2606)
Julow Oct 31, 2024
2ba5471
odoc: Don't add unecessary space in references and links (#2608)
Julow Nov 4, 2024
ba0f782
Backport 5.3 changes to Format_doc and Location (#2609)
Julow Nov 4, 2024
6e349f3
Backport 5.3 changes to Parsetree.constant (#2610)
Julow Nov 4, 2024
beb7ac1
Backport 5.3 short functor type syntax (#2611)
Julow Nov 5, 2024
4c5c7b5
janestreet: Fix indent of comments in records (#2612)
Julow Nov 12, 2024
404e83c
box_debug: Highlight whitespaces (#2614)
Julow Nov 12, 2024
624eb83
Break after 'let%ext' (#2615)
Julow Nov 12, 2024
fb9b70f
Improve indentation of attributes in patterns (#2613)
Julow Nov 12, 2024
a91d4a3
Improve formatting of assignment operators with comments (#2617)
Julow Nov 13, 2024
8af2ec4
test: Test all profiles (#2618)
Julow Nov 13, 2024
505ed6e
Support 5.2 raw identifiers (#2621)
Julow Nov 20, 2024
cdb0099
5.3 support: Backport utf8 identifiers (#2622)
Julow Nov 20, 2024
2f840d4
5.3 support: Versioned keywords (#2623)
Julow Nov 21, 2024
065163d
Support for OCaml 5.3 effect syntax (#2562)
Zeta611 Nov 22, 2024
1f1fb5a
5.3 support: Backport attributes on constant fix (#2624)
Julow Nov 22, 2024
3c85794
Reduce diffs in vendored parsers (#2625)
Julow Nov 25, 2024
3ee50c0
5.3 support: Backport quoted strings lexer fix (#2627)
Julow Nov 25, 2024
d48e27f
Preserve line endings in delimited string literals (#2628)
Julow Nov 25, 2024
b64b09c
Bump dawidd6/action-download-artifact from 2 to 6 in /.github/workflo…
dependabot[bot] Nov 26, 2024
222bf26
Update vendored odoc-parser to version 2.4 (#2631)
Julow Nov 27, 2024
214c363
Update vendored odoc-parser to master branch (#2632)
Julow Nov 27, 2024
ed78f3a
odoc: Align light syntax tables (#2633)
Julow Nov 28, 2024
53254d6
Add compatibility with emacs ocaml tree-sitter modes (#2600)
thibautbenjamin Nov 28, 2024
70830b5
Prepare 0.27.0 release (#2634)
Julow Nov 29, 2024
e2bd0c5
Fix tests not passing in Opam (#2635)
Julow Nov 29, 2024
72cbfd7
test: Remove project root witness in refs directories (#2636)
Julow Nov 29, 2024
5bac2e7
Fix 32bit build in CI (#2637)
Julow Dec 2, 2024
4c94d48
Fix 'wrap-comments' not working with the janestreet profile (#2645)
Julow Jan 8, 2025
d1a3dc8
CI: Update ocaml/setup-ocaml to v3 (#2649)
Julow Feb 3, 2025
2a071f8
nest-match=align now works with match%ext. (#2648)
EmileTrotignon Feb 3, 2025
5cc318b
generate better asts for function bindings (#2651)
v-gb Feb 17, 2025
bbfd8f2
print valid syntax for the corner case (1).a (#2653)
v-gb Feb 17, 2025
c8fb442
Fix crash with 'try .. with ..' containing ghost locations (#2655)
Julow Feb 18, 2025
25bf8c6
Fix let bindings formatting with dummy locations (#2654)
Julow Feb 18, 2025
c154479
add a Pattern constructor to Extended_ast.t (#2644)
v-gb Feb 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.ml linguist-language=OCaml
*.mli linguist-language=OCaml
*.t -linguist-detectable
40 changes: 34 additions & 6 deletions .github/workflows/build-mingw64.yml
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: Build mingw64 binary

on:
release:
types: [released]
workflow_dispatch:
inputs:
ref:
required: true
default: 'master'
default: 'main'

env:
CYGWINSETUP: setup-x86_64.exe
Expand All @@ -18,10 +20,21 @@ jobs:
env:
SHELLOPTS: igncr
steps:
- name: Set Build Ref for Release Builds
if: github.event_name == 'release'
run: |
"build_ref=${{ github.ref }}" >> $env:GITHUB_ENV
- name: Set Build Ref for Manual Builds
if: github.event_name == 'workflow_dispatch'
run: |
"build_ref=${{ github.event.inputs.ref }}" >> $env:GITHUB_ENV
- name: Disable Git EOL Conversion
run: |
git config --global core.autocrlf false
- name: Checkout Repository
uses: actions/checkout@v1
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.ref }}
ref: ${{ env.build_ref }}
- name: Download Cygwin Installer
run: |
curl.exe -o C:\${{ env.CYGWINSETUP }} https://www.cygwin.com/${{ env.CYGWINSETUP }}
Expand All @@ -33,11 +46,26 @@ jobs:
- name: Run Build Script
run: |
cd '${{ github.workspace }}'
git config --global --add safe.directory "$(pwd)"
bash tools/build-mingw64.sh
echo "artifact_name=ocamlformat-$(basename ${{ env.build_ref }}).exe" >> $GITHUB_ENV
shell: C:\cygwin64\bin\bash.exe --login --norc '{0}'
- name: Rename Artifact
run: |
Copy-Item ${{ github.workspace }}\_build\install\default\bin\ocamlformat.exe -Destination .\${{ env.artifact_name }}
- name: Upload Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ocamlformat-${{ github.event.inputs.ref }}.exe
path: ${{ github.workspace }}\_build\install\default\bin\ocamlformat.exe
name: ${{ env.artifact_name }}
path: ${{ env.artifact_name }}
if-no-files-found: error
- name: Upload Release Asset
if: github.event_name == 'release'
run: >
curl.exe
--data-binary '@${{ env.artifact_name }}'
-X POST
-H "Content-Type: application/octet-stream"
-H "Accept: application/vnd.github+json"
-H "Authorization: Bearer ${{ github.token }}"
"https://uploads.github.com/repos/${{ github.repository }}/releases/${{ github.event.release.id }}/assets?name=${{ env.artifact_name }}"
99 changes: 99 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: Build

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
build:
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
ocaml-compiler:
# Don't include every versions. OCaml-CI already covers that
- 4.13.x

runs-on: ${{ matrix.os }}

steps:
# Clone the project
- uses: actions/checkout@v2

# Setup
- name: Setup OCaml ${{ matrix.ocaml-version }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}

- name: Opam dependencies
run: opam install --deps-only -t .

- name: Runtest
run: opam exec -- dune runtest

- name: Check help files
run: opam exec -- dune build @help --auto-promote

- name: Upload binary
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v3
with:
name: ocamlformat-${{ runner.os }}-${{ runner.arch }}
path: _build/install/default/bin/ocamlformat

test-branch:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
profile:
- conventional
- ocamlformat
- janestreet
include:
- ocp_indent: true
ocp_indent_config: JaneStreet
profile: janestreet

steps:
- name: Install ocp-indent
if: ${{ matrix.ocp_indent }}
run: |
sudo apt install -y ocp-indent
sudo touch /etc/ocamlfind.conf

# Clone the project
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Fetch main build of ocamlformat
uses: dawidd6/action-download-artifact@v2
with:
workflow: build.yml
workflow_conclusion: ""
check_artifacts: true
branch: main
name: ocamlformat-${{ runner.os }}-${{ runner.arch }}
path: ocamlformat-a

- name: Fetch new build of ocamlformat
uses: actions/download-artifact@v3
with:
name: ocamlformat-${{ runner.os }}-${{ runner.arch }}
path: ocamlformat-b

- name: Test ${{ matrix.profile }} profile
run: |
chmod +x ocamlformat-a/ocamlformat ocamlformat-b/ocamlformat
./tools/test_branch.sh $TEST_BRANCH_ARGS -n -a ocamlformat-a/ocamlformat -b ocamlformat-b/ocamlformat 'profile=${{ matrix.profile }}'
shell: bash
env:
OCP_INDENT_CONFIG: ${{ matrix.ocp_indent_config }}
TEST_BRANCH_ARGS: ${{ matrix.ocp_indent && '-o' || '' }}
13 changes: 13 additions & 0 deletions .github/workflows/changelog-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Changelog check

on:
pull_request:
branches: [ main ]
types: [ opened, synchronize, reopened, labeled, unlabeled ]

jobs:
Changelog-Entry-Check:
name: Check Changelog Action
runs-on: ubuntu-20.04
steps:
- uses: tarides/changelog-check-action@v1
20 changes: 0 additions & 20 deletions .github/workflows/main.yml

This file was deleted.

10 changes: 10 additions & 0 deletions .github/workflows/pr-number.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: PR number update

on: [pull_request_target]

jobs:
PR-Number-Update:
name: Update PR number
runs-on: ubuntu-20.04
steps:
- uses: tarides/[email protected]
4 changes: 1 addition & 3 deletions .ocamlformat-ignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
vendor/*/*
vendor/*/*/*
vendor/*/*/*/*
vendor/**
Loading