Skip to content

Conversation

@cova-fe
Copy link
Contributor

@cova-fe cova-fe commented Sep 26, 2022

No description provided.

@numToStr
Copy link
Owner

Thanks for the PR! Although I have to say that I've never heard of rego. So obviously my question is does rego is supported by (n)vim OOTB? Also, a link to its comment syntax doc would be nice :)

@cova-fe
Copy link
Contributor Author

cova-fe commented Sep 26, 2022

I added the link to the language itself (it is used in open policy agent) to commit text.
Regarding (n)vim support, out of the box vim uses /* */ comment structure, that does not fit with language, as can be seen here:
https://www.openpolicyagent.org/docs/latest/policy-language/#comments

@numToStr
Copy link
Owner

Regarding (n)vim support, out of the box vim uses /* */ comment structure, that does not fit with language

Because it might be using the default commentstring which is /* */. Also does vim has highlighting for rego?

@cova-fe
Copy link
Contributor Author

cova-fe commented Sep 26, 2022

Regarding (n)vim support, out of the box vim uses /* */ comment structure, that does not fit with language

Because it might be using the default commentstring which is /* */. Also does vim has highlighting for rego?

You can have support via treesitter (FallenAngel97/tree-sitter-rego). Not sure if this answers your question though.
(I'm using lunarvim "custom" nvim )

@numToStr
Copy link
Owner

FallenAngel97/tree-sitter-rego

That's more than enough :)

@numToStr numToStr merged commit 256cea0 into numToStr:master Sep 26, 2022
@cova-fe cova-fe deleted the rego branch September 26, 2022 11:55
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