1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-03-17 20:58:08 +02:00

lexers/go_template: Add missing global functions (#782)

See https://pkg.go.dev/text/template#hdr-Functions
This commit is contained in:
Joe Mooring 2023-04-03 16:34:54 -07:00 committed by GitHub
parent dcc587e978
commit e09e498ede
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@
<token type="Operator"/>
<push state="subexpression"/>
</rule>
<rule pattern="(range|if|else|while|with|template|end|true|false|nil|and|call|html|index|js|len|not|or|print|printf|println|urlquery|eq|ne|lt|le|gt|ge)\b">
<rule pattern="(range|if|else|while|with|template|end|true|false|nil|and|call|html|index|js|len|not|or|print|printf|println|urlquery|eq|ne|lt|le|gt|ge|block|break|continue|define|slice)\b">
<token type="Keyword"/>
</rule>
<rule pattern="\||:?=|,">
@ -109,4 +109,4 @@
</rule>
</state>
</rules>
</lexer>
</lexer>