summaryrefslogtreecommitdiff
path: root/misc/notepadplus/functionList.xml
diff options
context:
space:
mode:
Diffstat (limited to 'misc/notepadplus/functionList.xml')
-rw-r--r--misc/notepadplus/functionList.xml43
1 files changed, 43 insertions, 0 deletions
diff --git a/misc/notepadplus/functionList.xml b/misc/notepadplus/functionList.xml
new file mode 100644
index 000000000..ca949f018
--- /dev/null
+++ b/misc/notepadplus/functionList.xml
@@ -0,0 +1,43 @@
+<!-- <NotepadPlus> -->
+ <!-- <functionList> -->
+ <!-- <associationMap> -->
+ <association ext=".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> -->