mirror of
https://github.com/golang/go
synced 2024-11-23 09:40:04 -07:00
33580e8305
Since version 6.5, npp change the Function List syntax for User Defined Languages. We need use userDefinedLangName syntax in association tag in Notepad++ 6.5. Fix issue 6735. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/22770043
51 lines
1.3 KiB
XML
51 lines
1.3 KiB
XML
<!-- <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> -->
|