mirror of
https://github.com/golang/go.git
synced 2025-05-29 03:11:26 +00:00
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
This commit is contained in:
parent
9f46efce52
commit
d3450d85ec
@ -7,7 +7,7 @@
|
||||
<!-- <parsers> -->
|
||||
<parser id="go" displayName="Go" commentExpr="((/\*.*?\*)/|(//.*?$))">
|
||||
<function
|
||||
mainExpr="(^func\s+\w+)|(^func\s*\(\s*\w+\s*\*?\s*\w+\s*\)\s*\w+)"
|
||||
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+))"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user