Skip to content

russell/cue-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://img.shields.io/badge/License-GPL%20v3-blue.svg

cue-mode

Provides Emacs font-lock, indentation, and some useful functions for the CUE data validation language.

Dependencies

Depends on the CUE Lang CLI tool for formatting and evaluating files. This can be installed by following this documentation.

Features

Indentation

Indentation is implemented via the SMIE package, it has only been tested with some sample files. There are test cases so any fixes should come with a test.

Keybindings

Key BindingFunctionPurpose
`C-c C-r``cue-reformat-buffer`Reformat the current buffer
`C-c C-c``cue-eval-buffer`Evaluate the current buffer and show the output

Testing

This project is using Bazel for testing, if you don’t have it the easiest way to get it is by installing Bazelisk.

You can run the following command to run the tests

basel test //...  --test_output=errors
# or, depending on how you installed
bazelisk test //...  --test_output=errors

Updating Autoloads

Updating autoloads can be done via this command

bazel run //:generate-autoloads