1
0
mirror of https://github.com/golang/go synced 2024-11-24 09:00:13 -07:00
go/misc/notepadplus/functionList.xml

51 lines
1.3 KiB
XML
Raw Normal View History

<!-- <NotepadPlus> -->
<!-- <functionList> -->
<!-- <associationMap> -->
<!--
if npp version == 6.4:
<association ext=".go" id="go"/>
if npp version >= 6.5:
<association userDefinedLangName="go" id="go"/>
-->
<!-- </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>
<!-- </parsers> -->
<!-- </functionList> -->
<!-- </NotepadPlus> -->