forked from chai2010/notepadplus-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctionList.xml
More file actions
63 lines (58 loc) · 1.66 KB
/
functionList.xml
File metadata and controls
63 lines (58 loc) · 1.66 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!-- <NotepadPlus> -->
<!-- <functionList> -->
<!-- <associationMap> -->
<!--
if npp version == 6.4:
<association ext=".go" id="go"/>
<association ext=".s" id="goasm"/>
if npp version >= 6.5:
<association userDefinedLangName="go" id="go"/>
<association userDefinedLangName="goasm" id="goasm"/>
-->
<!-- </associationMap> -->
<!-- <parsers> -->
<parser id="go" displayName="Go" commentExpr="((/\*.*?\*)/|(//.*?$))">
<classRange
mainExpr="^type\s+\w+\s+interface\s*\{"
openSymbole = "\{"
closeSymbole = "\}"
displayMode="node">
<className>
<nameExpr expr="type\s+\w+"/>
<nameExpr expr="\s+\w+"/>
<nameExpr expr="\w+"/>
</className>
<function
mainExpr="^\s+\w+\s*\(">
<functionName>
<funcNameExpr expr="\w+"/>
</functionName>
</function>
</classRange>
<function
mainExpr="(^func\s+\w+)|(^func\s*\(\s*\w*\s*\*?\s*\w+\s*\)\s*\w+)"
displayMode="$className->$functionName">
<functionName>
<nameExpr expr="((func\s+\w+)|(\)\s*\w+))"/>
<nameExpr expr="((\s+\w+)|(\)\s*\w+))"/>
<nameExpr expr="\w+"/>
</functionName>
<className>
<nameExpr expr="\w+\s*\)"/>
<nameExpr expr="\w+"/>
</className>
</function>
</parser>
<parser id="goasm" displayName="GoAsm" commentExpr="((/\*.*?\*)/|(//.*?$))">
<function
mainExpr="^TEXT\s+[0-9a-zA-Z_¡¤]+"
displayMode="$functionName">
<functionName>
<nameExpr expr="\s+[0-9a-zA-Z_¡¤]+"/>
<nameExpr expr="[0-9a-zA-Z_¡¤]+"/>
</functionName>
</function>
</parser>
<!-- </parsers> -->
<!-- </functionList> -->
<!-- </NotepadPlus> -->