mirror of
https://github.com/golang/go
synced 2024-11-25 06:47:56 -07:00
d3450d85ec
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
27 lines
737 B
XML
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> -->
|