MakeupCel

A Makeup lexer for Google's Common Expression Language (CEL).

Provides syntax highlighting for CEL expressions in ExDoc, Livebook, and any tool that uses the Makeup highlighting pipeline.

Installation

Add makeup_cel to your list of dependencies in mix.exs:

def deps do
  [
    {:makeup_cel, "~> 0.1.0"}
  ]
end

Usage

ExDoc

CEL code blocks are highlighted automatically once the dependency is added:

```cel
request.auth.claims.email.endsWith("@example.com")
```

Standalone

Makeup.highlight("x > 10 ? 'big' : 'small'", lexer: Makeup.Lexers.CelLexer)

Supported syntax

Covers the full CEL lexical spec:

License

Apache-2.0 — see LICENSE.