1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-02-21 19:06:18 +02:00
chroma/lexers/testdata/go-text-template.actual
Alberto Marchetti 42e9638ed4 Support comma in go template (e.g. for range)
```
{{ range $idx, $value := $variable }}
Hello {{ $idx }}
{{ end }}
```
2020-09-22 23:22:36 -07:00

10 lines
141 B
Plaintext

{{/*
This is a multiline comment
*/}}
{{ $myVar := 2 }}
{{ $myVar = 4 }}
{{ range $idx, $value := $variable }}
Hello {{ $idx }}
{{ end }}