init commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
from talon import Context, Module
|
||||
|
||||
mod = Module()
|
||||
|
||||
ctx = Context()
|
||||
ctx.matches = r"""
|
||||
code.language: protobuf
|
||||
"""
|
||||
|
||||
ctx.lists["user.code_type"] = {
|
||||
"string": "string",
|
||||
"bytes": "bytes",
|
||||
"you sixty four": "uint64",
|
||||
"you thirty two": "uint32",
|
||||
"eye sixty four": "int64",
|
||||
"eye thirty two": "int32",
|
||||
"sin sixty four": "sint64",
|
||||
"sin thirty two": "sint32",
|
||||
"fixed sixty four": "fixed64",
|
||||
"fixed thirty two": "fixed32",
|
||||
"as fixed sixty four": "sfixed64",
|
||||
"as fixed thirty two": "sfixed32",
|
||||
"boolean": "bool",
|
||||
"double": "double",
|
||||
"float": "float",
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
code.language: protobuf
|
||||
-
|
||||
|
||||
# this is pretty bare-bones, further contributions welcome
|
||||
block: user.code_block()
|
||||
|
||||
state message: "message "
|
||||
state package: "package "
|
||||
state reserved: "reserved "
|
||||
state enum: "enum "
|
||||
op equals: " = "
|
||||
state import: "import "
|
||||
state import public: "import public "
|
||||
state option: "option "
|
||||
state repeated: "repeated "
|
||||
|
||||
type {user.code_type}: "{code_type}"
|
||||
repeated type {user.code_type}: "repeated {code_type}"
|
||||
Reference in New Issue
Block a user