summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmeer Ghani <inahga@gmail.com>2022-04-04 23:09:28 -0400
committerAmeer Ghani <inahga@gmail.com>2022-04-04 23:10:23 -0400
commit293a02bfa0bb091fa180bbda546894d2c355914b (patch)
treebadb1a47ee669200daae2e8cc04a63de50c57b8b
parent2fc07d92c21843fc2886cd5263aa0a3fa1d63438 (diff)
rc/filetype/go: add new go 1.18 predeclared identifiers
Go 1.18 introduces the `any` and `comparable` predeclared identifiers. Modify the list of identifiers here, so syntax highlighting will catch these new identifiers. See https://go.dev/ref/spec#Predeclared_identifiers.
-rw-r--r--rc/filetype/go.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/filetype/go.kak b/rc/filetype/go.kak
index a0a33ae4..8e091f64 100644
--- a/rc/filetype/go.kak
+++ b/rc/filetype/go.kak
@@ -56,7 +56,7 @@ evaluate-commands %sh{
keywords='break default func interface select case defer go map struct
chan else goto package switch const fallthrough if range type
continue for import return var'
- types='bool byte chan complex128 complex64 error float32 float64 int int16 int32
+ types='any bool byte chan comparable complex128 complex64 error float32 float64 int int16 int32
int64 int8 interface intptr map rune string struct uint uint16 uint32 uint64 uint8'
values='false true nil iota'
functions='append cap close complex copy delete imag len make new panic print println real recover'