src-highlite.git - src-highlite

index : src-highlite.git
src-highlite
summary refs log tree commit diff
path: root/src/go.lang
diff options
context:
space:
mode:
Diffstat (limited to 'src/go.lang')
-rw-r--r--src/go.lang 35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/go.lang b/src/go.lang
new file mode 100644
index 0000000..dadb10f
--- /dev/null
+++ b/src/go.lang
@@ -0,0 +1,35 @@
+# see http://golang.org/ref/spec
+
+include "c_comment.lang"
+
+label = '^[[:blank:]]*[[:alnum:]]+:[[:blank:]]*\z'
+
+(keyword,normal,classname) =
+ `(\<(?:interface|struct))([[:blank:]]+)([[:alnum:]_]+)`
+
+environment string delim "\"" "\"" escape "\\" begin
+ specialchar = '\\.'
+end
+environment string delim "'" "'" escape "\\" begin
+ specialchar = '\\.'
+end
+string delim "`" "`" multiline
+
+keyword = "break|case|chan|const|continue|default|defer|else|fallthrough",
+ "for|func|go|goto|if|import|interface|map|package|range|return",
+ "select|struct|switch|type|var"
+
+type = "bool",
+ "uint8|uint16|uint32|uint64|int8|int16|int32|int64|float32|float64|complex64|complex128|byte|rune",
+ "string"
+
+include "number.lang"
+
+symbol = "+","-","*","/","%","&","\|","^","<<",">>","&^",
+ "+=","-=","*=","/=","%=","&=","\|=","^=","<<=",">>=","&^=",
+ "&&","\|\|","<-","++","--","==","<",">","=","!",
+ "!=","<=",">=",":=","...","(",")","[","]",",",".",";",":"
+
+cbracket = "{|}"
+
+function = '([[:alpha:]]|_)[[:word:]:]*(?=\()'
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月30日 11:49:01 +0000

AltStyle によって変換されたページ (->オリジナル) /