-
Notifications
You must be signed in to change notification settings - Fork 0
/
protobuf.lang
38 lines (24 loc) · 848 Bytes
/
protobuf.lang
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Protobuf language definition file
#
# Quickly hacked from the C/C++ syntax definition
#
# Author: Jean-Fabrice Rabaute
# Mail: [email protected]
# Date: 13.03.2012
# ------------------------------------------
#
$DESCRIPTION=Protobuf
$KEYWORDS(kwa)=syntax import option package message group optional required repeated default extend extensions to max service rpc returns
$KEYWORDS(kwb)=int32 int64 uint32 uint64 sint32 sint64 fixed32 fixed64 sfixed32 sfixed64 float double bool string bytes enum
$KEYWORDS(kwc)=true false
$KEYWORDS(kwd)=regex((\w+)\s*\()
$STRINGDELIMITERS=" '
$SL_COMMENT=//
$ML_COMMENT=/* */
$ALLOWNESTEDCOMMENTS=false
$IGNORECASE=false
$DIRECTIVE=#
$ESCCHAR=regex(\\\d{3}|\\x\p{XDigit}{2}|\\[ntvbrfa\\\?'"])
$SYMBOLS= ( ) [ ] { } , ; . : & | < > ! = / * % + - ~
$CONTINUATIONSYMBOL=\
$REFORMATTING=true