Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
3b19d2fd
Commit
3b19d2fd
authored
Jan 24, 2014
by
Russell Belfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Permission for Git code from a couple more
This brings over the Pascal and CSharp userdiff data.
parent
c7c260a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
git.git-authors
+2
-0
src/userdiff.h
+26
-0
No files found.
git.git-authors
View file @
3b19d2fd
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
#
#
ok Adam Simpkins <adam@adamsimpkins.net> (http transport)
ok Adam Simpkins <adam@adamsimpkins.net> (http transport)
ok Adrian Johnson <ajohnson@redneon.com>
ok Adrian Johnson <ajohnson@redneon.com>
ok Alexey Shumkin <alex.crezoff@gmail.com>
ok Andreas Ericsson <ae@op5.se>
ok Andreas Ericsson <ae@op5.se>
ok Boyd Lynn Gerber <gerberb@zenez.com>
ok Boyd Lynn Gerber <gerberb@zenez.com>
ok Brandon Casey <drafnel@gmail.com>
ok Brandon Casey <drafnel@gmail.com>
...
@@ -64,6 +65,7 @@ ok Nicolas Pitre <nico@fluxnic.net> <nico@cam.org>
...
@@ -64,6 +65,7 @@ ok Nicolas Pitre <nico@fluxnic.net> <nico@cam.org>
ok Paolo Bonzini <bonzini@gnu.org>
ok Paolo Bonzini <bonzini@gnu.org>
ok Paul Kocher <paul@cryptography.com>
ok Paul Kocher <paul@cryptography.com>
ok Peter Hagervall <hager@cs.umu.se>
ok Peter Hagervall <hager@cs.umu.se>
ok Petr Onderka <gsvick@gmail.com>
ok Pierre Habouzit <madcoder@debian.org>
ok Pierre Habouzit <madcoder@debian.org>
ok Pieter de Bie <pdebie@ai.rug.nl>
ok Pieter de Bie <pdebie@ai.rug.nl>
ok René Scharfe <rene.scharfe@lsrfire.ath.cx>
ok René Scharfe <rene.scharfe@lsrfire.ath.cx>
...
...
src/userdiff.h
View file @
3b19d2fd
...
@@ -94,6 +94,16 @@ PATTERNS("objc",
...
@@ -94,6 +94,16 @@ PATTERNS("objc",
"|[-+0-9.e]+[fFlL]?|0[xXbB]?[0-9a-fA-F]+[lL]?"
"|[-+0-9.e]+[fFlL]?|0[xXbB]?[0-9a-fA-F]+[lL]?"
"|[-+*/<>%&^|=!]=|--|
\\
+
\\
+|<<=?|>>=?|&&|
\\
|
\\
||::|->"
),
"|[-+*/<>%&^|=!]=|--|
\\
+
\\
+|<<=?|>>=?|&&|
\\
|
\\
||::|->"
),
PATTERNS
(
"pascal"
,
"^(((class[
\t
]+)?(procedure|function)|constructor|destructor|interface|"
"implementation|initialization|finalization)[
\t
]*.*)$"
"
\n
"
"^(.*=[
\t
]*(class|record).*)$"
,
/* -- */
"[a-zA-Z_][a-zA-Z0-9_]*"
"|[-+0-9.e]+|0[xXbB]?[0-9a-fA-F]+"
"|<>|<=|>=|:=|
\\
.
\\
."
),
PATTERNS
(
"perl"
,
PATTERNS
(
"perl"
,
"^package .*
\n
"
"^package .*
\n
"
"^sub [[:alnum:]_':]+[
\t
]*"
"^sub [[:alnum:]_':]+[
\t
]*"
...
@@ -154,6 +164,22 @@ PATTERNS("cpp",
...
@@ -154,6 +164,22 @@ PATTERNS("cpp",
"[a-zA-Z_][a-zA-Z0-9_]*"
"[a-zA-Z_][a-zA-Z0-9_]*"
"|[-+0-9.e]+[fFlL]?|0[xXbB]?[0-9a-fA-F]+[lL]?"
"|[-+0-9.e]+[fFlL]?|0[xXbB]?[0-9a-fA-F]+[lL]?"
"|[-+*/<>%&^|=!]=|--|
\\
+
\\
+|<<=?|>>=?|&&|
\\
|
\\
||::|->"
),
"|[-+*/<>%&^|=!]=|--|
\\
+
\\
+|<<=?|>>=?|&&|
\\
|
\\
||::|->"
),
PATTERNS
(
"csharp"
,
/* Keywords */
"!^[
\t
]*(do|while|for|if|else|instanceof|new|return|switch|case|throw|catch|using)
\n
"
/* Methods and constructors */
"^[
\t
]*(((static|public|internal|private|protected|new|virtual|sealed|override|unsafe)[
\t
]+)*[][<>@.~_[:alnum:]]+[
\t
]+[<>@._[:alnum:]]+[
\t
]*
\\
(.*
\\
))[
\t
]*$
\n
"
/* Properties */
"^[
\t
]*(((static|public|internal|private|protected|new|virtual|sealed|override|unsafe)[
\t
]+)*[][<>@.~_[:alnum:]]+[
\t
]+[@._[:alnum:]]+)[
\t
]*$
\n
"
/* Type definitions */
"^[
\t
]*(((static|public|internal|private|protected|new|unsafe|sealed|abstract|partial)[
\t
]+)*(class|enum|interface|struct)[
\t
]+.*)$
\n
"
/* Namespace */
"^[
\t
]*(namespace[
\t
]+.*)$"
,
/* -- */
"[a-zA-Z_][a-zA-Z0-9_]*"
"|[-+0-9.e]+[fFlL]?|0[xXbB]?[0-9a-fA-F]+[lL]?"
"|[-+*/<>%&^|=!]=|--|
\\
+
\\
+|<<=?|>>=?|&&|
\\
|
\\
||::|->"
),
};
};
#undef IPATTERN
#undef IPATTERN
...
...
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