From fa58e090db77fb7dfb98d3db6315bf94f4e8e7b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rado=C5=A1=20Mili=C4=87ev?= <40705899+rammba@users.noreply.github.com> Date: Thu, 26 Sep 2024 10:54:01 +0200 Subject: [PATCH] impr(code go): add more keywords to Golang (@rammba) (#5918) I've added some keywords to Golang mostly based on the following article: https://go.dev/tour/basics/11 --- frontend/static/languages/code_go.json | 55 ++++++++++++++++++-------- 1 file changed, 39 insertions(+), 16 deletions(-) diff --git a/frontend/static/languages/code_go.json b/frontend/static/languages/code_go.json index 63a6b8ea9..383e1d261 100644 --- a/frontend/static/languages/code_go.json +++ b/frontend/static/languages/code_go.json @@ -2,30 +2,53 @@ "name": "code_go", "noLazyMode": true, "words": [ + "bool", "break", - "default", - "func", - "interface", - "select", + "byte", "case", - "defer", - "go", - "map", - "struct", "chan", - "else", - "goto", - "package", - "switch", + "complex64", + "complex128", "const", - "fallthrough", - "if", - "range", - "type", "continue", + "default", + "defer", + "else", + "error", + "fallthrough", + "false", + "float32", + "float64", "for", + "func", + "go", + "goto", + "if", "import", + "int8", + "int16", + "int32", + "int64", + "int", + "interface", + "map", + "nil", + "package", + "range", "return", + "rune", + "select", + "string", + "struct", + "switch", + "true", + "type", + "uint8", + "uint16", + "uint32", + "uint64", + "uint", + "uintptr", "var" ] }