cue icon indicating copy to clipboard operation
cue copied to clipboard

project: create a CUE tree-sitter syntax

Open myitcv opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

difft uses tree-sitter generated parsers as part of creating semantic diffs.

Having semantic diffs for CUE would make reviewing CUE changes more pleasant.

Describe the solution you'd like

A tree-sitter syntax for CUE would allow for difft to leverage that in creating semantic diffs for CUE.

Describe alternatives you've considered

None that I am aware of for creating semantic diffs.

Additional context

myitcv avatar Sep 13 '22 08:09 myitcv

@myitcv Maybe @eonpatapon's work might be useful here? https://github.com/eonpatapon/tree-sitter-cue

jlongtine avatar Sep 15 '22 22:09 jlongtine

I'd totally forgotten about this! Thanks for the reminder.

@eonpatapon - what state is your project in?

myitcv avatar Sep 30 '22 14:09 myitcv

@myitcv it's quite complete. I know I miss some support for raw strings with multiple numbers of #. Probably some other small things I missed in the spec

eonpatapon avatar Sep 30 '22 14:09 eonpatapon

Chatted with @eonpatapon. We will investigate migrating eonpatapon/tree-sitter-cue to the cue-lang org.

myitcv avatar Sep 30 '22 20:09 myitcv