forked from chai2010/notepadplus-protobuf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctionList.xml
More file actions
41 lines (38 loc) · 1.11 KB
/
functionList.xml
File metadata and controls
41 lines (38 loc) · 1.11 KB
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
39
40
41
<!-- <NotepadPlus> -->
<!-- <functionList> -->
<!-- <associationMap> -->
<association userDefinedLangName="protobuf" id="protobuf"/>
<!-- </associationMap> -->
<!-- <parsers> -->
<parser id="protobuf" displayName="protobuf" commentExpr="((/\*.*?\*)/|(//.*?$))">
<classRange
mainExpr="^service\s+\w+\s*{"
openSymbole = "\{"
closeSymbole = "\}"
displayMode="node">
<className>
<nameExpr expr="service\s+\w+"/>
<nameExpr expr="\s+\w+"/>
<nameExpr expr="\w+"/>
</className>
<function
mainExpr="^\s*rpc\s+\w+\s*\(">
<functionName>
<funcNameExpr expr="rpc\s+\w+"/>
<funcNameExpr expr="\s+\w+"/>
<funcNameExpr expr="\w+"/>
</functionName>
</function>
</classRange>
<function
mainExpr="(^message\s+\w+)|(^enum\s+\w+)|(^extend\s+((\w)|(\.))+)"
displayMode="$className->$functionName">
<functionName>
<nameExpr expr="\s+((\w)|(\.))+"/>
<nameExpr expr="((\w)|(\.))+"/>
</functionName>
</function>
</parser>
<!-- </parsers> -->
<!-- </functionList> -->
<!-- </NotepadPlus> -->