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

Define CUE TextMate grammar in CUE #14

Open
myitcv opened this issue Jul 30, 2021 · 5 comments
Open

Define CUE TextMate grammar in CUE #14

myitcv opened this issue Jul 30, 2021 · 5 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@myitcv
Copy link
Member

myitcv commented Jul 30, 2021

Currently, the CUE TextMate Grammar is generated from a rather elegant Go specification.

However, as noted in #12 (comment), the TextMate grammar exists in a JSON Schema form (there may be a more official location).

Hence we could quite easily move the specification of the CUE TextMate Grammar from Go to CUE, and have the code generation step be a cue export command (again, making sure this is part of CI).

@betawaffle - thoughts on this?

@betawaffle
Copy link
Collaborator

That sounds like a great idea. The only reason I wrote it in Go originally was that I was very familiar (Go is my day job), and it was expedient. I think CUE probably wasn't mature enough for that at the time too.

@myitcv
Copy link
Member Author

myitcv commented Jul 30, 2021

I think CUE probably wasn't mature enough for that at the time too.

That was almost certainly the case!

Thanks, I might suggest this to the CUE community as a project that someone could work on, unless you had a particular interest in it?

@betawaffle
Copy link
Collaborator

unless you had a particular interest in it?

I would, but I'm really quite busy at the moment.

@myitcv myitcv added good first issue Good for newcomers help wanted Extra attention is needed labels Jul 30, 2021
@myitcv
Copy link
Member Author

myitcv commented Jul 30, 2021

I'll leave it marked as "help wanted" for now. Might tweet this out to see if there is anyone who might be interested in learning CUE with a particular goal to help that learning. Otherwise, we might do this as part of a live stream (we have some vague plans for doing more community-oriented stuff).

@myitcv
Copy link
Member Author

myitcv commented Aug 3, 2021

Noting that https://github.com/Septh/tmlanguage exists, apparently as an enhanced fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants