Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
7583c14b
Commit
7583c14b
authored
Aug 06, 2013
by
ChaiShushan
Committed by
Brad Fitzpatrick
Aug 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc/notepadplus: simplify Function List regex
R=golang-dev, bradfitz CC=golang-dev
https://golang.org/cl/12508043
parent
6a76bca3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
misc/notepadplus/functionList.xml
misc/notepadplus/functionList.xml
+6
-11
No files found.
misc/notepadplus/functionList.xml
View file @
7583c14b
...
...
@@ -7,21 +7,16 @@
<!-- <parsers> -->
<parser
id=
"go"
displayName=
"Go"
commentExpr=
"((/\*.*?\*)/|(//.*?$))"
>
<function
mainExpr=
"(^func\s+[\w]+)|(^func\s*\(\s*[\w]+\s+\*?\s*[\w]+\s*\)\s*[\w]
+)"
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]+\s+\*?\s*[\w]+\s*\)\s*[\w]+))"
/>
<nameExpr
expr=
"(((func)[\s][\w]+)|(\)\s*[\w]+))"
/>
<nameExpr
expr=
"(([\s][\w]+)|(\)\s*[\w]+))"
/>
<nameExpr
expr=
"[\w]+"
/>
<nameExpr
expr=
"((func\s+\w+)|(\)\s*\w+))"
/>
<nameExpr
expr=
"((\s+\w+)|(\)\s*\w+))"
/>
<nameExpr
expr=
"\w+"
/>
</functionName>
<className>
<nameExpr
expr=
"\(\s*[\w]+\s+\*?\s*[\w]+\s*\)\s*[\w]+"
/>
<nameExpr
expr=
"\(\s*[\w]+\s+\*?\s*[\w]+\s*\)"
/>
<nameExpr
expr=
"[\w]+\s+\*?\s*[\w]+\s*\)"
/>
<nameExpr
expr=
"\*?\s*[\w]+\s*\)"
/>
<nameExpr
expr=
"[\w]+\s*\)"
/>
<nameExpr
expr=
"[\w]+"
/>
<nameExpr
expr=
"\w+\s*\)"
/>
<nameExpr
expr=
"\w+"
/>
</className>
</function>
</parser>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment