代码: 全选
syn match thType "\<TH[123][CSIFKD]*\>"
syn match thType "\<TProfile([23]D)?\>"
应该匹配的类型为
代码: 全选
TProfile
TProfile2D
TProfile3D
代码: 全选
syn match thType "\<TH[123][CSIFKD]*\>"
syn match thType "\<TProfile([23]D)?\>"
代码: 全选
TProfile
TProfile2D
TProfile3D
代码: 全选
syn match thType "\<TProfile\([23]D\)\?\>"
代码: 全选
syn match thType "\<TProfile\([23]D\)?\>"
vim 里和 perl 有些不同cjxgm 写了:POSIX 正则要求()匹配(),\(\)分组代码: 全选
syn match thType "\<TProfile\([23]D\)?\>"
perl 的标准是" perl 正则"(perl自己搞得)indam 写了:vim 里和 perl 有些不同cjxgm 写了:POSIX 正则要求()匹配(),\(\)分组代码: 全选
syn match thType "\<TProfile\([23]D\)?\>"
\+ 代表 +
\? 代表 ?
\{n,m} 代表 {n,m}
http://blog.sina.com.cn/s/blog_7e4015380100vzga.html
原来是这个样子cjxgm 写了:perl 的标准是" perl 正则"(perl自己搞得)indam 写了:vim 里和 perl 有些不同cjxgm 写了:POSIX 正则要求()匹配(),\(\)分组代码: 全选
syn match thType "\<TProfile\([23]D\)?\>"
\+ 代表 +
\? 代表 ?
\{n,m} 代表 {n,m}
http://blog.sina.com.cn/s/blog_7e4015380100vzga.html