more go keywords; set default conf for win/linux/mac

This commit is contained in:
Felix Angell 2018-04-14 02:15:14 +01:00
parent 9e54861667
commit ddcadb5ef7
3 changed files with 118 additions and 3 deletions

View File

@ -27,7 +27,8 @@ colouring = 0xf0a400
match = [
"type", "import", "package", "func", "struct",
"append", "delete", "make", "for", "if", "while",
"switch", "select", "chan",
"switch", "select", "chan", "else", "var", "const",
"iota"
]
[syntax.go.type]

View File

@ -14,6 +14,60 @@ accelerated = true
throttle_cpu_usage = true
always_render = false
[file_associations]
[file_associations.c]
extensions = [".c", ".h", ".cc"]
[file_associations.go]
extensions = [".go"]
[syntax.go]
[syntax.go.keyword]
colouring = 0xf0a400
match = [
"type", "import", "package", "func", "struct",
"append", "delete", "make", "for", "if", "while",
"switch", "select", "chan", "else", "var", "const",
"iota"
]
[syntax.go.type]
colouring = 0xf8f273
match = [
"int", "string", "uint",
"int8", "int16", "int32", "int64",
"uint8", "uint16", "uint32", "uint64",
"rune", "byte", "float32", "float64"
]
[syntax.go.comment]
colouring = 0xff00ff
pattern = "[\/]+.*"
[syntax.go.symbol]
colouring = 0xf0a400
match = [
"=", ":", ";", "*", "&", "+", "-", "/", "%",
"^", "#", "!", "@", "<", ">", ".", ","
]
[syntax.c]
[syntax.c.type]
colouring = 0xff0000
match = [
"int", "char", "bool", "float", "double", "void",
"uint8_t", "uint16_t", "uint32_t", "uint64_t",
"int8_t", "int16_t", "int32_t", "int64_t"
]
[syntax.c.keyword]
colouring = 0xff00ff
match = [
"for", "break", "if", "else", "continue", "return",
"goto", "static", "extern", "const", "typedef",
]
[theme]
background = 0x002649
foreground = 0xf2f4f6
@ -30,6 +84,9 @@ flash = true
[commands.save]
shortcut = "super+s"
[commands.close_buffer]
shortcut = "super+w"
[commands.delete_line]
shortcut = "super+d"
`

View File

@ -14,6 +14,60 @@ accelerated = true
throttle_cpu_usage = true
always_render = false
[file_associations]
[file_associations.c]
extensions = [".c", ".h", ".cc"]
[file_associations.go]
extensions = [".go"]
[syntax.go]
[syntax.go.keyword]
colouring = 0xf0a400
match = [
"type", "import", "package", "func", "struct",
"append", "delete", "make", "for", "if", "while",
"switch", "select", "chan", "else", "var", "const",
"iota"
]
[syntax.go.type]
colouring = 0xf8f273
match = [
"int", "string", "uint",
"int8", "int16", "int32", "int64",
"uint8", "uint16", "uint32", "uint64",
"rune", "byte", "float32", "float64"
]
[syntax.go.comment]
colouring = 0xff00ff
pattern = "[\/]+.*"
[syntax.go.symbol]
colouring = 0xf0a400
match = [
"=", ":", ";", "*", "&", "+", "-", "/", "%",
"^", "#", "!", "@", "<", ">", ".", ","
]
[syntax.c]
[syntax.c.type]
colouring = 0xff0000
match = [
"int", "char", "bool", "float", "double", "void",
"uint8_t", "uint16_t", "uint32_t", "uint64_t",
"int8_t", "int16_t", "int32_t", "int64_t"
]
[syntax.c.keyword]
colouring = 0xff00ff
match = [
"for", "break", "if", "else", "continue", "return",
"goto", "static", "extern", "const", "typedef",
]
[theme]
background = 0x002649
foreground = 0xf2f4f6
@ -28,8 +82,11 @@ flash = true
[commands]
[commands.save]
shortcut = "super+s"
shortcut = "ctrl+s"
[commands.close_buffer]
shortcut = "ctrl+w"
[commands.delete_line]
shortcut = "super+d"
shortcut = "ctrl+d"
`