提交 64bed2c4 编写于 作者: Q QIU1995NONAME 提交者: Xiangquan Xiao

Scripts: update proto_build_generator

上级 0c9cdc7e
......@@ -166,10 +166,9 @@ def _path_check(build_file_path):
##================ REGEX FOR GRPC CHECK ====================================##
PATT_SERVICE = re.compile("^service\s+\S+\s+{$")
PATT_RPC_RET = re.compile("^rpc\s+\S+(\S+)\s+returns")
PATT_RPC_ONLY = re.compile("^rpc\s+\S+(\S+)")
PATT_RET_ONLY = re.compile("^returns\s+(\S+)\s+{")
PATT_RPC_RET = re.compile("^rpc\s+\S+\(\S+\)\s+returns")
PATT_RPC_ONLY = re.compile("^rpc\s+\S+\(\S+\)")
PATT_RET_ONLY = re.compile("^returns\s+\(\S+\)\s+{")
##=============== GRPC CHECK ==============================================##
def grpc_check(fpath):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册