Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
git
提交
a0b6a9d2
G
git
项目概览
李少辉-开发者
/
git
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
git
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a0b6a9d2
编写于
8月 21, 2010
作者:
J
Junio C Hamano
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'po/userdiff-csharp'
* po/userdiff-csharp: Userdiff patterns for C#
上级
bb8634b8
b221207d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
19 addition
and
1 deletion
+19
-1
Documentation/gitattributes.txt
Documentation/gitattributes.txt
+2
-0
t/t4018-diff-funcname.sh
t/t4018-diff-funcname.sh
+1
-1
userdiff.c
userdiff.c
+16
-0
未找到文件。
Documentation/gitattributes.txt
浏览文件 @
a0b6a9d2
...
...
@@ -441,6 +441,8 @@ patterns are available:
- `cpp` suitable for source code in the C and C++ languages.
- `csharp` suitable for source code in the C# language.
- `html` suitable for HTML/XHTML documents.
- `java` suitable for source code in the Java language.
...
...
t/t4018-diff-funcname.sh
浏览文件 @
a0b6a9d2
...
...
@@ -32,7 +32,7 @@ EOF
sed
's/beer\\/beer,\\/'
< Beer.java
>
Beer-correct.java
builtin_patterns
=
"bibtex cpp html java objc pascal php python ruby tex"
builtin_patterns
=
"bibtex cpp
csharp
html java objc pascal php python ruby tex"
for
p
in
$builtin_patterns
do
test_expect_success
"builtin
$p
pattern compiles"
'
...
...
userdiff.c
浏览文件 @
a0b6a9d2
...
...
@@ -82,6 +82,22 @@ PATTERNS("cpp",
"|[-+0-9.e]+[fFlL]?|0[xXbB]?[0-9a-fA-F]+[lL]?"
"|[-+*/<>%&^|=!]=|--|
\\
+
\\
+|<<=?|>>=?|&&|
\\
|
\\
||::|->"
"|[^[:space:]]|[
\x80
-
\xff
]+"
),
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]?"
"|[-+*/<>%&^|=!]=|--|
\\
+
\\
+|<<=?|>>=?|&&|
\\
|
\\
||::|->"
"|[^[:space:]]|[
\x80
-
\xff
]+"
),
{
"default"
,
NULL
,
-
1
,
{
NULL
,
0
}
},
};
#undef PATTERNS
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录