From d9e09907d16dc0368415a7ffe57ef9de09eadd3b Mon Sep 17 00:00:00 2001 From: Beck <20741391+beckxie@users.noreply.github.com> Date: Sat, 2 Jan 2021 16:00:57 +0800 Subject: [PATCH] feat: added golang keyword list --- static/languages/code_go.json | 31 +++++++++++++++++++++++++++++++ static/languages/list.json | 1 + 2 files changed, 32 insertions(+) create mode 100644 static/languages/code_go.json diff --git a/static/languages/code_go.json b/static/languages/code_go.json new file mode 100644 index 000000000..84bf2c9f3 --- /dev/null +++ b/static/languages/code_go.json @@ -0,0 +1,31 @@ +{ + "name": "code_go", + "leftToRight": true, + "words": [ + "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" + ] +} diff --git a/static/languages/list.json b/static/languages/list.json index 7e121357a..589d68fd9 100644 --- a/static/languages/list.json +++ b/static/languages/list.json @@ -62,4 +62,5 @@ ,"code_javascript" ,"code_html" ,"code_java" + ,"code_go" ]