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
3ed8d00c
Commit
3ed8d00c
authored
Apr 09, 2014
by
Vicent Marti
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2258 from libgit2/jk/userdiff-cc
pull userdiff pattern updates from git.git
parents
ce2e8269
9ce60fad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
src/userdiff.h
+7
-9
No files found.
src/userdiff.h
View file @
3ed8d00c
...
...
@@ -45,13 +45,13 @@ typedef struct {
static
git_diff_driver_definition
builtin_defs
[]
=
{
IPATTERN
(
"ada"
,
"!^(.*[
\t
])?(is
new|renames|is
separate)([
\t
].*)?$
\n
"
"!^(.*[
\t
])?(is
[
\t
]+new|renames|is[
\t
]+
separate)([
\t
].*)?$
\n
"
"!^[
\t
]*with[
\t
].*$
\n
"
"^[
\t
]*((procedure|function)[
\t
]+.*)$
\n
"
"^[
\t
]*((package|protected|task)[
\t
]+.*)$"
,
/* -- */
"[a-zA-Z][a-zA-Z0-9_]*"
"|[
0-9][-+0-9#_.eE]
"
"|[
-+]?[0-9][0-9#_.aAbBcCdDeEfF]*([eE][+-]?[0-9_]+)?
"
"|=>|
\\
.
\\
.|
\\
*
\\
*|:=|/=|>=|<=|<<|>>|<>"
),
IPATTERN
(
"fortran"
,
...
...
@@ -159,15 +159,13 @@ PATTERNS("tex", "^(\\\\((sub)*section|chapter|part)\\*{0,1}\\{.*)$",
PATTERNS
(
"cpp"
,
/* Jump targets or access declarations */
"!^[
\t
]*[A-Za-z_][A-Za-z_0-9]*:.*$
\n
"
/* C/++ functions/methods at top level */
"^([A-Za-z_][A-Za-z_0-9]*([
\t
*]+[A-Za-z_][A-Za-z_0-9]*([
\t
]*::[
\t
]*[^[:space:]]+)?){1,}[
\t
]*
\\
([^;]*)$
\n
"
/* compound type at top level */
"^((struct|class|enum)[^;]*)$"
,
"!^[
\t
]*[A-Za-z_][A-Za-z_0-9]*:[[:space:]]*($|/[/*])
\n
"
/* functions/methods, variables, and compounds at top level */
"^((::[[:space:]]*)?[A-Za-z_].*)$"
,
/* -- */
"[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
uU]*
"
"|[-+*/<>%&^|=!]=|--|
\\
+
\\
+|<<=?|>>=?|&&|
\\
|
\\
||::|->
\\
*?|
\\
.
\\
*
"
),
PATTERNS
(
"csharp"
,
/* Keywords */
...
...
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