favonia
df448e9ccd
Remove -safe-string for OCaml 5. See ocaml/ocaml#10893
2022-03-27 22:11:51 -05:00
Kate
560617c64f
Add support for OCaml 4.14
2021-11-18 10:10:53 -05:00
Kate
82fe82dad0
Update the OCaml 4.13 compatibility after the merge of ocaml/ocaml#10252
2021-06-02 19:20:59 +01:00
Kate
9fe8b5d838
Get rid of deprecated functions in OCaml 4.13
2021-05-25 21:00:33 +01:00
Kate
300dd7e562
Add support for OCaml 4.13
2021-05-25 20:24:59 +01:00
Rudi Grinberg
711c24661c
Merge pull request #338 from hyphenrf/patch-1
2021-04-08 08:00:44 -07:00
Christian Pellegrin
243f7a1536
Fix color highlight for errors.
...
The output from the compiler changed and now mentions the line number
(non only the charters, which actually becomes columns). This patch
introduces the idea of a range of lines spanned by an error and
correctly marks the faulty region.
I think a better solution would be to introduce a "point" record of
the form {line:int;column:int}. However, such a change would
reverberate through all the source code and so it is much more
invasive. I can prepare such a patch if desired, after this one, which
fixes the regression.
2021-04-05 08:56:50 +01:00
Florian Angeletti
ac9c21cfcf
exit with the right exit status
...
With OCaml 4.12.0 and later, the toplevel use the Compenv.Exit_with_status
exception to communicate when and with which status we should exit.
2021-04-03 14:38:14 -04:00
Haz
ee030bab0b
Use lambdaterm resources for home path instead of sys
...
Co-authored-by: Fabian <copy@copy.sh>
2021-03-31 09:47:39 +02:00
Etienne Millon
e31656e725
Fix build on 4.12
...
On 4.12, `Typemod.type_structure` does not take a location argument
anymore (see ocaml/ocaml#9974 ). This fixes the build with the 4.12
branch.
2020-10-30 16:22:14 +01:00
Haz
251228d677
Make sure we're not at $HOME before sourcing local .ocamlinit
...
(fixes: Github #333 )
2020-09-21 22:23:36 +00:00
ZAN DoYe
c0109a6da6
Vi edit mode: cross phrase register support
2020-05-30 09:27:14 +08:00
ZAN DoYe
952f97a460
compatible with 4.11
...
* use the exposed parser to parse longident
2020-05-12 08:45:24 +08:00
Kate
1da1f64765
Fix warnings with OCaml 4.11
2020-05-09 09:38:47 +08:00
ZAN DoYe
cea5509294
add #edit_mode_default #edit_mode_vi directives
2020-04-25 23:40:41 +08:00
ZAN DoYe
fd5bd4f665
UTop_main: support lambda-term 3.0
2020-04-25 23:40:41 +08:00
ZAN DoYe
692b92794d
make the #use_output directive compatible with ocaml >= 4.02
2020-03-25 19:38:17 +08:00
Jeremie Dimino
3f735497d9
Backport the #use_output directive from OCaml 4.11
...
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2020-03-25 19:38:17 +08:00
Fabian
712678f959
Update docs to refer to .config/utop/init.ml
2020-03-18 11:01:23 +08:00
Fabian
53813ef663
Load init file from .config/utop/init.ml as per XDG conventions ( fix #144 )
2020-03-18 11:01:23 +08:00
ZAN DoYe
0b37fd0de8
clean up
2019-12-12 17:02:57 +08:00
ZAN DoYe
5ca427f2d2
compatible with 4.10
2019-12-12 17:02:57 +08:00
Florian Angeletti
a4896483bd
4.09: Replace TypedtreeIter with Tast_iterator
2019-09-16 14:30:29 +02:00
Florian Angeletti
d8248687a3
4.09: caml_sys_modify_arg rather than Obj.truncate
2019-09-16 14:28:38 +02:00
Florian Angeletti
0debad9aaf
4.09: use Persistent_env
2019-09-16 14:28:08 +02:00
ZAN DoYe
9da0951274
remove more camlp4 remnants
2019-07-16 15:08:51 -04:00
Anton Kochkov
ca00ce6146
Remove camlp4 remnants
2019-07-09 11:55:13 -04:00
ZAN DoYe
a07156ca80
compatible with 4.03: unattached doc comment
2019-05-27 13:49:48 +08:00
ZAN DoYe
55ff32027c
remove outdated doc comment
2019-05-27 13:49:48 +08:00
ZAN DoYe
928bba9896
add get_load_path and set_load_path
2019-05-27 13:49:48 +08:00
ZAN DoYe
97224e635f
remove aux code
2019-05-27 13:49:48 +08:00
ZAN DoYe
ad510daa99
compatible with 4.08
2019-05-27 13:49:48 +08:00
ZAN DoYe
3b1f930dfb
follow the api changes of Zed_string.ends_with
2019-05-17 12:01:04 +08:00
ZAN DoYe
da0fa23a05
Utop_lexer: to keep semantic consistent with the ocaml compiler, we now consider a combined double-quote to be a legal mark to start a string
2019-05-15 01:11:58 +08:00
ZAN DoYe
1ae50d3201
UTop_lexer: support editing, displaying malformed Zed_char (start with combining marks)
2019-05-15 01:11:58 +08:00
ZAN DoYe
99f28d9f17
UTop_lexer: support combined glyph for more kind of token, Symbol, Ident, Blanks, Literals...
2019-05-15 01:11:58 +08:00
ZAN DoYe
dd1f834985
UTop_lexer: support combined glyph
2019-05-15 01:11:58 +08:00
ZAN DoYe
fa6f1ee90f
follow the changes of LTerm_history, perf regression fixed
2019-05-15 01:11:58 +08:00
ZAN DoYe
7df33e500a
depend on new zed and lambda-term
2019-05-15 01:11:58 +08:00
Jeremie Dimino
4e9b9d1c66
Fix compat with 403
...
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2019-01-24 12:12:26 -05:00
Jeremie Dimino
fa3880d2a2
Automatically install printers marked with [@@ocaml.toplevel_printer]
...
Scan newly loaded cmi files for values marked with the
[@@ocaml.toplevel_printer] attribute and automatically install them as
toplevel printers.
2019-01-24 12:12:26 -05:00
Anil Madhavapeddy
3212401775
fix or suppress some warnings in dune dev build mode
2019-01-15 09:50:54 +00:00
Anil Madhavapeddy
641af3fd63
port build from jbuilder to dune
2019-01-15 09:50:54 +00:00
Anton Kochkov
53db99356e
Env.Env_copy_types should work also on OCaml 4.06
2018-08-31 11:35:51 -04:00
ncihnegn
cf8e423f58
Replace deprecated CamomileLibraryDyn with CamomileLibraryDefault for camomile >= 1.0.0
2018-08-29 18:46:43 +01:00
ncihnegn
098d2f854b
Replace deprecated String.capitalize with String.capitalize_ascii
2018-08-29 18:46:43 +01:00
ncihnegn
9dcb51fea8
Replace deprecated String.lowercase with String.lowercase_ascii
2018-08-29 18:46:43 +01:00
ncihnegn
239e6aad95
Replace deprecated Lwt_sequence with LTerm_dlist
2018-08-29 18:46:43 +01:00
Guillaume Petiot
081e49d882
Make more functions tail-recursive, and use tail-rec List functions ( #251 )
2018-08-23 17:53:07 +01:00
sliquister
601973c953
Clflags.include_dirs is expected to hold unexpanded directories ( #242 )
2018-07-09 10:28:08 +01:00