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

incorrect parsing when 'ref' is used as identifier #423

Closed
giraud opened this issue Aug 25, 2023 · 3 comments
Closed

incorrect parsing when 'ref' is used as identifier #423

giraud opened this issue Aug 25, 2023 · 3 comments
Labels

Comments

@giraud
Copy link
Owner

giraud commented Aug 25, 2023

plugin version: 0.115

Description

in OCaml, the ref keyword can be used as an identifier, leading to incorrect parsing:

in pervasives.ml

type 'a ref = { mutable contents : 'a }
external ref : 'a -> 'a ref = "%makemutable"
@giraud giraud added the parser label Aug 29, 2023
@giraud
Copy link
Owner Author

giraud commented Aug 30, 2023

hmm, maybe 'ref' is not a keyword of the OCaml language.

@giraud
Copy link
Owner Author

giraud commented Nov 4, 2023

list of keywords: https://v2.ocaml.org/manual/lex.html#sss:keywords

@giraud
Copy link
Owner Author

giraud commented Nov 17, 2023

fixed in 0.118

@giraud giraud closed this as completed Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant