This repository has been archived by the owner on Dec 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
functionList.xml
48 lines (45 loc) · 1.72 KB
/
functionList.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!-- <NotepadPlus> -->
<!-- <functionList> -->
<!-- <associationMap> -->
<association userDefinedLangName="typescript" id="typescript"/>
<!-- </associationMap> -->
<!-- <parsers> -->
<parser id="typescript" displayName="typescript" commentExpr="((/\*.*?\*)/|(//.*?$))">
<classRange
mainExpr="^\s*(export\s+)?(class|interface)\s+\w+\s*((extends|implements)\s+(\w|\s|,|\.|[^{])*)?\{"
openSymbole = "\{"
closeSymbole = "\}"
displayMode="node">
<className>
<nameExpr expr="(export\s+)?(class|interface)\s+\w+"/>
<nameExpr expr="(class|interface)\s+\w+"/>
<nameExpr expr="\s+\w+"/>
<nameExpr expr="\w+"/>
</className>
<!-- Indent only support tab/2space/4space!!! -->
<!-- tab/2space is best choice! -->
<!-- regexp: ^(\t|[ ]{2,4}) -->
<function
mainExpr="(^(\t|[ ]{2,4})((readonly|public|private|protected|get|set)\s+)+\w+\s*(\(|\=|:|\?))|(^(\t|[ ]{2,4})\w+\s*(\(|:|\=|\?))">
<functionName>
<funcNameExpr expr="(^(\t|[ ]{2,4})((readonly|public|private|protected|get|set)\s+)+\w+\s*(\(|\=|:|\?))|(\w+\s*(\(|:|\=|\?))"/>
<funcNameExpr expr="(\s+\w+\s*(\(|\=|:|\?))|(\w+\s*(\(|:|\=|\?))"/>
<funcNameExpr expr="(\s+\w+\s*(\(|\=|:|\?))|(\w+)"/>
<funcNameExpr expr="(\s+\w+)|(\w+)"/>
<funcNameExpr expr="\w+"/>
</functionName>
</function>
</classRange>
<function
mainExpr="^\s*(export\s+)?(async\s+)?function\s+\w+"
displayMode="$className->$functionName">
<functionName>
<nameExpr expr="function\s+\w+"/>
<nameExpr expr="\s+\w+"/>
<nameExpr expr="\w+"/>
</functionName>
</function>
</parser>
<!-- </parsers> -->
<!-- </functionList> -->
<!-- </NotepadPlus> -->