1
0
mirror of https://github.com/golang/go synced 2024-11-12 10:30:23 -07:00
go/misc/notepadplus/functionList.xml
ChaiShushan d3450d85ec misc/notepadplus: fix functionList regex issue
The receiver name is optional. when Method's receiver name messing,
the functionList regex can't match the Method,
e.g. `func (*T) ProtoMessage() {}`.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/12530044
2013-08-08 10:57:32 -07:00

27 lines
737 B
XML

<!-- <NotepadPlus> -->
<!-- <functionList> -->
<!-- <associationMap> -->
<association ext=".go" id="go"/>
<!-- </associationMap> -->
<!-- <parsers> -->
<parser id="go" displayName="Go" commentExpr="((/\*.*?\*)/|(//.*?$))">
<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>
<!-- </parsers> -->
<!-- </functionList> -->
<!-- </NotepadPlus> -->