alecthomas / chroma

A general purpose syntax highlighter in pure Go
MIT License
4.33k stars 395 forks source link

lexers/cue: support CUE attributes #961

Closed myitcv closed 5 months ago

myitcv commented 5 months ago

Currently the following CUE results in the chroma lexer producing an error token for the '@':

value: string @go(Value)

This code is, however, valid CUE. '@go' is an attributes.

This change adds lexer support for attributes in CUE.

myitcv commented 5 months ago

Gentle nudge

alecthomas commented 5 months ago

Apologies!