-
Notifications
You must be signed in to change notification settings - Fork 39
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
OCaml syntax highlighting with struct surround with parentheses #6
Comments
I confirm this bug. Here is a minimal example: module M0 : sig end = struct let x = 0 end
(* => linting of struct is correct *)
module M1 : sig end = (struct let x = 0 end : sig end)
(* => linting of struct is correct
(but linting of last sig is buggy because of the type linter of PR#76) *)
module M2 = (struct let x = 0 end : sig end)
(* => ^^^^^^^^^^^^^^^^^^^^
the whole struct is linted with a wrong, uniform style
(but linting of last sig is correct) *) |
A related discrepancy: module IM = Stdlib.Map.Make(Int)
(* ^^^^^^^^^^^^^^^^^^^^
shown as a module/functor, with a uniform style *)
module IM : sig end = Stdlib.Map.Make(Int)
(* ^^^^^^^^^^^^^^^^^^^^
shown as as an expression (a datatype constructor `Make`
prefixed with a module path, and a constructor `Int`) *) It’s just the fact that |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is a piece of syntax which is not properly handled:
Which looks like:
The text was updated successfully, but these errors were encountered: