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

Add ocamllex highlights #549

Merged
merged 3 commits into from
Oct 4, 2020
Merged

Add ocamllex highlights #549

merged 3 commits into from
Oct 4, 2020

Conversation

undu
Copy link
Contributor

@undu undu commented Oct 1, 2020

The parser emits opaque ocaml nodes, since these are not yet handled to the ocaml parser they remain unhighlighted. The ocaml nodes appear inside action nodes. I've tagged those with @embedded since that's how it seems to be handled in other scm files. is this how it's supposed to be used?

I've added the hash to the lockfile, although it's not clear in the diff since it's all in the same line.

Like it happens to highlight mli files, this PR is needed: ocaml/vim-ocaml#61 (or set manually the filetype to ocamllex)

@undu undu force-pushed the ocamllex branch 2 times, most recently from 7d3e775 to 04da351 Compare October 3, 2020 13:25
@undu undu marked this pull request as ready for review October 3, 2020 13:26
Copy link
Member

@theHamsta theHamsta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again!

@theHamsta theHamsta merged commit 97d5329 into nvim-treesitter:master Oct 4, 2020
@undu undu deleted the ocamllex branch October 4, 2020 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants