2013-08-05 09:24:55 -06:00
|
|
|
<!-- <NotepadPlus> -->
|
|
|
|
<!-- <functionList> -->
|
|
|
|
<!-- <associationMap> -->
|
2013-12-18 11:17:38 -07:00
|
|
|
|
|
|
|
<!--
|
|
|
|
if npp version == 6.4:
|
2013-08-05 09:24:55 -06:00
|
|
|
<association ext=".go" id="go"/>
|
|
|
|
|
2013-12-18 11:17:38 -07:00
|
|
|
if npp version >= 6.5:
|
|
|
|
<association userDefinedLangName="go" id="go"/>
|
|
|
|
-->
|
|
|
|
|
2013-08-05 09:24:55 -06:00
|
|
|
<!-- </associationMap> -->
|
|
|
|
<!-- <parsers> -->
|
|
|
|
<parser id="go" displayName="Go" commentExpr="((/\*.*?\*)/|(//.*?$))">
|
2013-09-06 12:59:53 -06:00
|
|
|
<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>
|
2013-08-05 09:24:55 -06:00
|
|
|
<function
|
2013-08-08 11:57:32 -06:00
|
|
|
mainExpr="(^func\s+\w+)|(^func\s*\(\s*\w*\s*\*?\s*\w+\s*\)\s*\w+)"
|
2013-08-05 09:24:55 -06:00
|
|
|
displayMode="$className->$functionName">
|
|
|
|
<functionName>
|
2013-08-06 08:57:51 -06:00
|
|
|
<nameExpr expr="((func\s+\w+)|(\)\s*\w+))"/>
|
|
|
|
<nameExpr expr="((\s+\w+)|(\)\s*\w+))"/>
|
|
|
|
<nameExpr expr="\w+"/>
|
2013-08-05 09:24:55 -06:00
|
|
|
</functionName>
|
|
|
|
<className>
|
2013-08-06 08:57:51 -06:00
|
|
|
<nameExpr expr="\w+\s*\)"/>
|
|
|
|
<nameExpr expr="\w+"/>
|
2013-08-05 09:24:55 -06:00
|
|
|
</className>
|
|
|
|
</function>
|
|
|
|
</parser>
|
|
|
|
|
|
|
|
<!-- </parsers> -->
|
|
|
|
<!-- </functionList> -->
|
|
|
|
<!-- </NotepadPlus> -->
|