Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
d4f09c97
R
roslyn
项目概览
lwm1986
/
roslyn
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roslyn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d4f09c97
编写于
3月 27, 2018
作者:
C
Cyrus Najmabadi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update colors.
上级
0d098a22
变更
21
隐藏空白更改
内联
并排
Showing
21 changed file
with
229 addition
and
124 deletion
+229
-124
src/EditorFeatures/Core.Wpf/Classification/ClassificationTypeFormatDefinitions.cs
...Wpf/Classification/ClassificationTypeFormatDefinitions.cs
+51
-33
src/EditorFeatures/Core.Wpf/EditorFeaturesWpfResources.Designer.cs
...rFeatures/Core.Wpf/EditorFeaturesWpfResources.Designer.cs
+15
-6
src/EditorFeatures/Core.Wpf/EditorFeaturesWpfResources.resx
src/EditorFeatures/Core.Wpf/EditorFeaturesWpfResources.resx
+5
-2
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.cs.xlf
...orFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.cs.xlf
+10
-5
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.de.xlf
...orFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.de.xlf
+10
-5
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.es.xlf
...orFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.es.xlf
+10
-5
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.fr.xlf
...orFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.fr.xlf
+10
-5
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.it.xlf
...orFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.it.xlf
+10
-5
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.ja.xlf
...orFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.ja.xlf
+10
-5
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.ko.xlf
...orFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.ko.xlf
+10
-5
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.pl.xlf
...orFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.pl.xlf
+10
-5
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.pt-BR.xlf
...eatures/Core.Wpf/xlf/EditorFeaturesWpfResources.pt-BR.xlf
+10
-5
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.ru.xlf
...orFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.ru.xlf
+10
-5
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.tr.xlf
...orFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.tr.xlf
+10
-5
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.zh-Hans.xlf
...tures/Core.Wpf/xlf/EditorFeaturesWpfResources.zh-Hans.xlf
+10
-5
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.zh-Hant.xlf
...tures/Core.Wpf/xlf/EditorFeaturesWpfResources.zh-Hant.xlf
+10
-5
src/EditorFeatures/Core/Implementation/Classification/ClassificationTypeDefinitions.cs
...mentation/Classification/ClassificationTypeDefinitions.cs
+7
-2
src/EditorFeatures/TestUtilities/Classification/FormattedClassifications.RegexTypes.cs
...ies/Classification/FormattedClassifications.RegexTypes.cs
+4
-1
src/VisualStudio/Core/Def/HACK_ThemeColorFixer.cs
src/VisualStudio/Core/Def/HACK_ThemeColorFixer.cs
+2
-1
src/Workspaces/Core/Portable/Classification/ClassificationTypeNames.cs
...s/Core/Portable/Classification/ClassificationTypeNames.cs
+5
-4
src/Workspaces/Core/Portable/Classification/SyntaxClassification/CommonRegexPatternTokenClassifier.cs
...SyntaxClassification/CommonRegexPatternTokenClassifier.cs
+10
-10
未找到文件。
src/EditorFeatures/Core.Wpf/Classification/ClassificationTypeFormatDefinitions.cs
浏览文件 @
d4f09c97
...
...
@@ -356,38 +356,39 @@ private class RegexCommentFormatDefinition : ClassificationFormatDefinition
private
RegexCommentFormatDefinition
()
{
this
.
DisplayName
=
EditorFeaturesWpfResources
.
Regex_Comment
;
this
.
ForegroundColor
=
Color
.
FromRgb
(
87
,
166
,
74
);
this
.
ForegroundColor
=
Color
.
FromRgb
(
0
,
128
,
0
);
}
}
[
Export
(
typeof
(
EditorFormatDefinition
))]
[
ClassificationType
(
ClassificationTypeNames
=
ClassificationTypeNames
.
Regex
Text
)]
[
Name
(
ClassificationTypeNames
.
Regex
Text
)]
[
ClassificationType
(
ClassificationTypeNames
=
ClassificationTypeNames
.
Regex
CharacterClass
)]
[
Name
(
ClassificationTypeNames
.
Regex
CharacterClass
)]
[
Order
(
After
=
ClassificationTypeNames
.
StringLiteral
)]
[
Order
(
After
=
ClassificationTypeNames
.
VerbatimStringLiteral
)]
[
UserVisible
(
true
)]
[
ExcludeFromCodeCoverage
]
private
class
Regex
Text
FormatDefinition
:
ClassificationFormatDefinition
private
class
Regex
CharacterClass
FormatDefinition
:
ClassificationFormatDefinition
{
private
Regex
Text
FormatDefinition
()
private
Regex
CharacterClass
FormatDefinition
()
{
this
.
DisplayName
=
EditorFeaturesWpfResources
.
Regex_
Text
;
this
.
ForegroundColor
=
Color
.
FromRgb
(
0
,
0
,
0
);
this
.
DisplayName
=
EditorFeaturesWpfResources
.
Regex_
Character_class
;
this
.
ForegroundColor
=
Color
.
FromRgb
(
0
x00
,
0x73
,
0xff
);
}
}
[
Export
(
typeof
(
EditorFormatDefinition
))]
[
ClassificationType
(
ClassificationTypeNames
=
ClassificationTypeNames
.
Regex
CharacterClass
)]
[
Name
(
ClassificationTypeNames
.
Regex
CharacterClass
)]
[
ClassificationType
(
ClassificationTypeNames
=
ClassificationTypeNames
.
Regex
Anchor
)]
[
Name
(
ClassificationTypeNames
.
Regex
Anchor
)]
[
Order
(
After
=
ClassificationTypeNames
.
StringLiteral
)]
[
Order
(
After
=
ClassificationTypeNames
.
VerbatimStringLiteral
)]
[
UserVisible
(
true
)]
[
ExcludeFromCodeCoverage
]
private
class
Regex
CharacterClass
FormatDefinition
:
ClassificationFormatDefinition
private
class
Regex
Anchor
FormatDefinition
:
ClassificationFormatDefinition
{
private
Regex
CharacterClass
FormatDefinition
()
private
Regex
Anchor
FormatDefinition
()
{
this
.
DisplayName
=
EditorFeaturesWpfResources
.
Regex_
Character_class
;
this
.
ForegroundColor
=
Color
.
FromRgb
(
0x
07
,
0xbf
,
0xb6
);
this
.
DisplayName
=
EditorFeaturesWpfResources
.
Regex_
Anchor
;
this
.
ForegroundColor
=
Color
.
FromRgb
(
0x
ff
,
0x00
,
0xc1
);
}
}
...
...
@@ -403,23 +404,23 @@ private class RegexQuantifierFormatDefinition : ClassificationFormatDefinition
private
RegexQuantifierFormatDefinition
()
{
this
.
DisplayName
=
EditorFeaturesWpfResources
.
Regex_Quantifier
;
this
.
ForegroundColor
=
Color
.
FromRgb
(
128
,
0
,
0
);
this
.
ForegroundColor
=
Color
.
FromRgb
(
0xff
,
0x00
,
0xc1
);
}
}
[
Export
(
typeof
(
EditorFormatDefinition
))]
[
ClassificationType
(
ClassificationTypeNames
=
ClassificationTypeNames
.
Regex
Anchor
)]
[
Name
(
ClassificationTypeNames
.
Regex
Anchor
)]
[
ClassificationType
(
ClassificationTypeNames
=
ClassificationTypeNames
.
Regex
Grouping
)]
[
Name
(
ClassificationTypeNames
.
Regex
Grouping
)]
[
Order
(
After
=
ClassificationTypeNames
.
StringLiteral
)]
[
Order
(
After
=
ClassificationTypeNames
.
VerbatimStringLiteral
)]
[
UserVisible
(
true
)]
[
ExcludeFromCodeCoverage
]
private
class
Regex
Anchor
FormatDefinition
:
ClassificationFormatDefinition
private
class
Regex
Grouping
FormatDefinition
:
ClassificationFormatDefinition
{
private
Regex
Anchor
FormatDefinition
()
private
Regex
Grouping
FormatDefinition
()
{
this
.
DisplayName
=
EditorFeaturesWpfResources
.
Regex_
Anchor
;
this
.
ForegroundColor
=
Color
.
FromRgb
(
128
,
0
,
0
);
this
.
DisplayName
=
EditorFeaturesWpfResources
.
Regex_
Grouping
;
this
.
ForegroundColor
=
Color
.
FromRgb
(
0x05
,
0xc3
,
0xba
);
}
}
...
...
@@ -435,39 +436,56 @@ private class RegexAlternationFormatDefinition : ClassificationFormatDefinition
private
RegexAlternationFormatDefinition
()
{
this
.
DisplayName
=
EditorFeaturesWpfResources
.
Regex_Alternation
;
this
.
ForegroundColor
=
Color
.
FromRgb
(
0x
ff
,
0x78
,
0x00
);
this
.
ForegroundColor
=
Color
.
FromRgb
(
0x
05
,
0xc3
,
0xba
);
}
}
[
Export
(
typeof
(
EditorFormatDefinition
))]
[
ClassificationType
(
ClassificationTypeNames
=
ClassificationTypeNames
.
Regex
Grouping
)]
[
Name
(
ClassificationTypeNames
.
Regex
Grouping
)]
[
ClassificationType
(
ClassificationTypeNames
=
ClassificationTypeNames
.
Regex
Text
)]
[
Name
(
ClassificationTypeNames
.
Regex
Text
)]
[
Order
(
After
=
ClassificationTypeNames
.
StringLiteral
)]
[
Order
(
After
=
ClassificationTypeNames
.
VerbatimStringLiteral
)]
[
UserVisible
(
true
)]
[
ExcludeFromCodeCoverage
]
private
class
Regex
Grouping
FormatDefinition
:
ClassificationFormatDefinition
private
class
Regex
Text
FormatDefinition
:
ClassificationFormatDefinition
{
private
Regex
Grouping
FormatDefinition
()
private
Regex
Text
FormatDefinition
()
{
this
.
DisplayName
=
EditorFeaturesWpfResources
.
Regex_
Grouping
;
this
.
ForegroundColor
=
Color
.
FromRgb
(
0x
ff
,
0x78
,
0x00
);
this
.
DisplayName
=
EditorFeaturesWpfResources
.
Regex_
Text
;
this
.
ForegroundColor
=
Color
.
FromRgb
(
0x
80
,
0x00
,
0x00
);
}
}
[
Export
(
typeof
(
EditorFormatDefinition
))]
[
ClassificationType
(
ClassificationTypeNames
=
ClassificationTypeNames
.
Regex
Escape
)]
[
Name
(
ClassificationTypeNames
.
Regex
Escape
)]
[
ClassificationType
(
ClassificationTypeNames
=
ClassificationTypeNames
.
Regex
SelfEscapedCharacter
)]
[
Name
(
ClassificationTypeNames
.
Regex
SelfEscapedCharacter
)]
[
Order
(
After
=
ClassificationTypeNames
.
StringLiteral
)]
[
Order
(
After
=
ClassificationTypeNames
.
VerbatimStringLiteral
)]
[
UserVisible
(
true
)]
[
ExcludeFromCodeCoverage
]
private
class
Regex
Escape
FormatDefinition
:
ClassificationFormatDefinition
private
class
Regex
SelfEscapedCharacter
FormatDefinition
:
ClassificationFormatDefinition
{
private
Regex
Escape
FormatDefinition
()
private
Regex
SelfEscapedCharacter
FormatDefinition
()
{
this
.
DisplayName
=
EditorFeaturesWpfResources
.
Regex_Escape
;
this
.
ForegroundColor
=
Color
.
FromRgb
(
0x00
,
0x73
,
0xff
);
this
.
DisplayName
=
EditorFeaturesWpfResources
.
Regex_SelfEscapedCharacter
;
this
.
ForegroundColor
=
Color
.
FromRgb
(
0x80
,
0x00
,
0x00
);
this
.
IsBold
=
true
;
}
}
[
Export
(
typeof
(
EditorFormatDefinition
))]
[
ClassificationType
(
ClassificationTypeNames
=
ClassificationTypeNames
.
RegexOtherEscape
)]
[
Name
(
ClassificationTypeNames
.
RegexOtherEscape
)]
[
Order
(
After
=
ClassificationTypeNames
.
StringLiteral
)]
[
Order
(
After
=
ClassificationTypeNames
.
VerbatimStringLiteral
)]
[
UserVisible
(
true
)]
[
ExcludeFromCodeCoverage
]
private
class
RegexOtherEscapeFormatDefinition
:
ClassificationFormatDefinition
{
private
RegexOtherEscapeFormatDefinition
()
{
this
.
DisplayName
=
EditorFeaturesWpfResources
.
Regex_OtherEscape
;
this
.
ForegroundColor
=
Color
.
FromRgb
(
0x9e
,
0x5b
,
0x71
);
}
}
#endregion
...
...
src/EditorFeatures/Core.Wpf/EditorFeaturesWpfResources.Designer.cs
浏览文件 @
d4f09c97
...
...
@@ -124,20 +124,20 @@ internal class EditorFeaturesWpfResources {
}
/// <summary>
/// Looks up a localized string similar to Regex -
Escape
.
/// Looks up a localized string similar to Regex -
Grouping
.
/// </summary>
internal
static
string
Regex_
Escape
{
internal
static
string
Regex_
Grouping
{
get
{
return
ResourceManager
.
GetString
(
"Regex_
Escape
"
,
resourceCulture
);
return
ResourceManager
.
GetString
(
"Regex_
Grouping
"
,
resourceCulture
);
}
}
/// <summary>
/// Looks up a localized string similar to Regex -
Grouping
.
/// Looks up a localized string similar to Regex -
Other Escape
.
/// </summary>
internal
static
string
Regex_
Grouping
{
internal
static
string
Regex_
OtherEscape
{
get
{
return
ResourceManager
.
GetString
(
"Regex_
Grouping
"
,
resourceCulture
);
return
ResourceManager
.
GetString
(
"Regex_
OtherEscape
"
,
resourceCulture
);
}
}
...
...
@@ -150,6 +150,15 @@ internal class EditorFeaturesWpfResources {
}
}
/// <summary>
/// Looks up a localized string similar to Regex - Self Escaped Character.
/// </summary>
internal
static
string
Regex_SelfEscapedCharacter
{
get
{
return
ResourceManager
.
GetString
(
"Regex_SelfEscapedCharacter"
,
resourceCulture
);
}
}
/// <summary>
/// Looks up a localized string similar to Regex - Text.
/// </summary>
...
...
src/EditorFeatures/Core.Wpf/EditorFeaturesWpfResources.resx
浏览文件 @
d4f09c97
...
...
@@ -141,8 +141,8 @@
<data
name=
"Regex_Quantifier"
xml:space=
"preserve"
>
<value>
Regex - Quantifier
</value>
</data>
<data
name=
"Regex_
Escape
"
xml:space=
"preserve"
>
<value>
Regex -
Escape
</value>
<data
name=
"Regex_
SelfEscapedCharacter
"
xml:space=
"preserve"
>
<value>
Regex -
Self Escaped Character
</value>
</data>
<data
name=
"Regex_Grouping"
xml:space=
"preserve"
>
<value>
Regex - Grouping
</value>
...
...
@@ -150,4 +150,7 @@
<data
name=
"Regex_Text"
xml:space=
"preserve"
>
<value>
Regex - Text
</value>
</data>
<data
name=
"Regex_OtherEscape"
xml:space=
"preserve"
>
<value>
Regex - Other Escape
</value>
</data>
</root>
\ No newline at end of file
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.cs.xlf
浏览文件 @
d4f09c97
...
...
@@ -47,16 +47,21 @@
<target
state=
"new"
>
Regex - Text
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Escape"
>
<source>
Regex - Escape
</source>
<target
state=
"new"
>
Regex - Escape
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Grouping"
>
<source>
Regex - Grouping
</source>
<target
state=
"new"
>
Regex - Grouping
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_SelfEscapedCharacter"
>
<source>
Regex - Self Escaped Character
</source>
<target
state=
"new"
>
Regex - Self Escaped Character
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_OtherEscape"
>
<source>
Regex - Other Escape
</source>
<target
state=
"new"
>
Regex - Other Escape
</target>
<note
/>
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.de.xlf
浏览文件 @
d4f09c97
...
...
@@ -47,16 +47,21 @@
<target
state=
"new"
>
Regex - Text
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Escape"
>
<source>
Regex - Escape
</source>
<target
state=
"new"
>
Regex - Escape
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Grouping"
>
<source>
Regex - Grouping
</source>
<target
state=
"new"
>
Regex - Grouping
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_SelfEscapedCharacter"
>
<source>
Regex - Self Escaped Character
</source>
<target
state=
"new"
>
Regex - Self Escaped Character
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_OtherEscape"
>
<source>
Regex - Other Escape
</source>
<target
state=
"new"
>
Regex - Other Escape
</target>
<note
/>
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.es.xlf
浏览文件 @
d4f09c97
...
...
@@ -47,16 +47,21 @@
<target
state=
"new"
>
Regex - Text
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Escape"
>
<source>
Regex - Escape
</source>
<target
state=
"new"
>
Regex - Escape
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Grouping"
>
<source>
Regex - Grouping
</source>
<target
state=
"new"
>
Regex - Grouping
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_SelfEscapedCharacter"
>
<source>
Regex - Self Escaped Character
</source>
<target
state=
"new"
>
Regex - Self Escaped Character
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_OtherEscape"
>
<source>
Regex - Other Escape
</source>
<target
state=
"new"
>
Regex - Other Escape
</target>
<note
/>
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.fr.xlf
浏览文件 @
d4f09c97
...
...
@@ -47,16 +47,21 @@
<target
state=
"new"
>
Regex - Text
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Escape"
>
<source>
Regex - Escape
</source>
<target
state=
"new"
>
Regex - Escape
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Grouping"
>
<source>
Regex - Grouping
</source>
<target
state=
"new"
>
Regex - Grouping
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_SelfEscapedCharacter"
>
<source>
Regex - Self Escaped Character
</source>
<target
state=
"new"
>
Regex - Self Escaped Character
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_OtherEscape"
>
<source>
Regex - Other Escape
</source>
<target
state=
"new"
>
Regex - Other Escape
</target>
<note
/>
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.it.xlf
浏览文件 @
d4f09c97
...
...
@@ -47,16 +47,21 @@
<target
state=
"new"
>
Regex - Text
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Escape"
>
<source>
Regex - Escape
</source>
<target
state=
"new"
>
Regex - Escape
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Grouping"
>
<source>
Regex - Grouping
</source>
<target
state=
"new"
>
Regex - Grouping
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_SelfEscapedCharacter"
>
<source>
Regex - Self Escaped Character
</source>
<target
state=
"new"
>
Regex - Self Escaped Character
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_OtherEscape"
>
<source>
Regex - Other Escape
</source>
<target
state=
"new"
>
Regex - Other Escape
</target>
<note
/>
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.ja.xlf
浏览文件 @
d4f09c97
...
...
@@ -47,16 +47,21 @@
<target
state=
"new"
>
Regex - Text
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Escape"
>
<source>
Regex - Escape
</source>
<target
state=
"new"
>
Regex - Escape
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Grouping"
>
<source>
Regex - Grouping
</source>
<target
state=
"new"
>
Regex - Grouping
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_SelfEscapedCharacter"
>
<source>
Regex - Self Escaped Character
</source>
<target
state=
"new"
>
Regex - Self Escaped Character
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_OtherEscape"
>
<source>
Regex - Other Escape
</source>
<target
state=
"new"
>
Regex - Other Escape
</target>
<note
/>
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.ko.xlf
浏览文件 @
d4f09c97
...
...
@@ -47,16 +47,21 @@
<target
state=
"new"
>
Regex - Text
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Escape"
>
<source>
Regex - Escape
</source>
<target
state=
"new"
>
Regex - Escape
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Grouping"
>
<source>
Regex - Grouping
</source>
<target
state=
"new"
>
Regex - Grouping
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_SelfEscapedCharacter"
>
<source>
Regex - Self Escaped Character
</source>
<target
state=
"new"
>
Regex - Self Escaped Character
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_OtherEscape"
>
<source>
Regex - Other Escape
</source>
<target
state=
"new"
>
Regex - Other Escape
</target>
<note
/>
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.pl.xlf
浏览文件 @
d4f09c97
...
...
@@ -47,16 +47,21 @@
<target
state=
"new"
>
Regex - Text
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Escape"
>
<source>
Regex - Escape
</source>
<target
state=
"new"
>
Regex - Escape
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Grouping"
>
<source>
Regex - Grouping
</source>
<target
state=
"new"
>
Regex - Grouping
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_SelfEscapedCharacter"
>
<source>
Regex - Self Escaped Character
</source>
<target
state=
"new"
>
Regex - Self Escaped Character
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_OtherEscape"
>
<source>
Regex - Other Escape
</source>
<target
state=
"new"
>
Regex - Other Escape
</target>
<note
/>
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.pt-BR.xlf
浏览文件 @
d4f09c97
...
...
@@ -47,16 +47,21 @@
<target
state=
"new"
>
Regex - Text
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Escape"
>
<source>
Regex - Escape
</source>
<target
state=
"new"
>
Regex - Escape
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Grouping"
>
<source>
Regex - Grouping
</source>
<target
state=
"new"
>
Regex - Grouping
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_SelfEscapedCharacter"
>
<source>
Regex - Self Escaped Character
</source>
<target
state=
"new"
>
Regex - Self Escaped Character
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_OtherEscape"
>
<source>
Regex - Other Escape
</source>
<target
state=
"new"
>
Regex - Other Escape
</target>
<note
/>
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.ru.xlf
浏览文件 @
d4f09c97
...
...
@@ -47,16 +47,21 @@
<target
state=
"new"
>
Regex - Text
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Escape"
>
<source>
Regex - Escape
</source>
<target
state=
"new"
>
Regex - Escape
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Grouping"
>
<source>
Regex - Grouping
</source>
<target
state=
"new"
>
Regex - Grouping
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_SelfEscapedCharacter"
>
<source>
Regex - Self Escaped Character
</source>
<target
state=
"new"
>
Regex - Self Escaped Character
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_OtherEscape"
>
<source>
Regex - Other Escape
</source>
<target
state=
"new"
>
Regex - Other Escape
</target>
<note
/>
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.tr.xlf
浏览文件 @
d4f09c97
...
...
@@ -47,16 +47,21 @@
<target
state=
"new"
>
Regex - Text
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Escape"
>
<source>
Regex - Escape
</source>
<target
state=
"new"
>
Regex - Escape
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Grouping"
>
<source>
Regex - Grouping
</source>
<target
state=
"new"
>
Regex - Grouping
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_SelfEscapedCharacter"
>
<source>
Regex - Self Escaped Character
</source>
<target
state=
"new"
>
Regex - Self Escaped Character
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_OtherEscape"
>
<source>
Regex - Other Escape
</source>
<target
state=
"new"
>
Regex - Other Escape
</target>
<note
/>
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.zh-Hans.xlf
浏览文件 @
d4f09c97
...
...
@@ -47,16 +47,21 @@
<target
state=
"new"
>
Regex - Text
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Escape"
>
<source>
Regex - Escape
</source>
<target
state=
"new"
>
Regex - Escape
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Grouping"
>
<source>
Regex - Grouping
</source>
<target
state=
"new"
>
Regex - Grouping
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_SelfEscapedCharacter"
>
<source>
Regex - Self Escaped Character
</source>
<target
state=
"new"
>
Regex - Self Escaped Character
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_OtherEscape"
>
<source>
Regex - Other Escape
</source>
<target
state=
"new"
>
Regex - Other Escape
</target>
<note
/>
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
src/EditorFeatures/Core.Wpf/xlf/EditorFeaturesWpfResources.zh-Hant.xlf
浏览文件 @
d4f09c97
...
...
@@ -47,16 +47,21 @@
<target
state=
"new"
>
Regex - Text
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Escape"
>
<source>
Regex - Escape
</source>
<target
state=
"new"
>
Regex - Escape
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_Grouping"
>
<source>
Regex - Grouping
</source>
<target
state=
"new"
>
Regex - Grouping
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_SelfEscapedCharacter"
>
<source>
Regex - Self Escaped Character
</source>
<target
state=
"new"
>
Regex - Self Escaped Character
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Regex_OtherEscape"
>
<source>
Regex - Other Escape
</source>
<target
state=
"new"
>
Regex - Other Escape
</target>
<note
/>
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
src/EditorFeatures/Core/Implementation/Classification/ClassificationTypeDefinitions.cs
浏览文件 @
d4f09c97
...
...
@@ -166,9 +166,14 @@ internal sealed class ClassificationTypeDefinitions
internal
readonly
ClassificationTypeDefinition
RegexAlternationTypeDefinition
;
[
Export
]
[
Name
(
ClassificationTypeNames
.
RegexEscape
)]
[
Name
(
ClassificationTypeNames
.
Regex
Other
Escape
)]
[
BaseDefinition
(
PredefinedClassificationTypeNames
.
FormalLanguage
)]
internal
readonly
ClassificationTypeDefinition
RegexEscapeTypeDefinition
;
internal
readonly
ClassificationTypeDefinition
RegexOtherEscapeTypeDefinition
;
[
Export
]
[
Name
(
ClassificationTypeNames
.
RegexSelfEscapedCharacter
)]
[
BaseDefinition
(
PredefinedClassificationTypeNames
.
FormalLanguage
)]
internal
readonly
ClassificationTypeDefinition
RegexSelfEscapedCharacterTypeDefinition
;
[
Export
]
[
Name
(
ClassificationTypeNames
.
RegexGrouping
)]
...
...
src/EditorFeatures/TestUtilities/Classification/FormattedClassifications.RegexTypes.cs
浏览文件 @
d4f09c97
...
...
@@ -16,7 +16,10 @@ public static class Regex
public
static
FormattedClassification
Grouping
(
string
value
)
=>
New
(
value
,
ClassificationTypeNames
.
RegexGrouping
);
[
DebuggerStepThrough
]
public
static
FormattedClassification
Escape
(
string
value
)
=>
New
(
value
,
ClassificationTypeNames
.
RegexEscape
);
public
static
FormattedClassification
OtherEscape
(
string
value
)
=>
New
(
value
,
ClassificationTypeNames
.
RegexOtherEscape
);
[
DebuggerStepThrough
]
public
static
FormattedClassification
SelfEscapedCharacter
(
string
value
)
=>
New
(
value
,
ClassificationTypeNames
.
RegexSelfEscapedCharacter
);
[
DebuggerStepThrough
]
public
static
FormattedClassification
Alternation
(
string
value
)
=>
New
(
value
,
ClassificationTypeNames
.
RegexAlternation
);
...
...
src/VisualStudio/Core/Def/HACK_ThemeColorFixer.cs
浏览文件 @
d4f09c97
...
...
@@ -81,8 +81,9 @@ public void RefreshThemeColors()
UpdateForegroundColor
(
ClassificationTypeNames
.
RegexQuantifier
,
sourceFormatMap
,
targetFormatMap
);
UpdateForegroundColor
(
ClassificationTypeNames
.
RegexAnchor
,
sourceFormatMap
,
targetFormatMap
);
UpdateForegroundColor
(
ClassificationTypeNames
.
RegexAlternation
,
sourceFormatMap
,
targetFormatMap
);
UpdateForegroundColor
(
ClassificationTypeNames
.
RegexEscape
,
sourceFormatMap
,
targetFormatMap
);
UpdateForegroundColor
(
ClassificationTypeNames
.
RegexGrouping
,
sourceFormatMap
,
targetFormatMap
);
UpdateForegroundColor
(
ClassificationTypeNames
.
RegexOtherEscape
,
sourceFormatMap
,
targetFormatMap
);
UpdateForegroundColor
(
ClassificationTypeNames
.
RegexSelfEscapedCharacter
,
sourceFormatMap
,
targetFormatMap
);
UpdateForegroundColor
(
ClassificationTypeNames
.
PreprocessorKeyword
,
sourceFormatMap
,
targetFormatMap
);
UpdateForegroundColor
(
ClassificationTypeNames
.
PreprocessorText
,
sourceFormatMap
,
targetFormatMap
);
...
...
src/Workspaces/Core/Portable/Classification/ClassificationTypeNames.cs
浏览文件 @
d4f09c97
...
...
@@ -61,12 +61,13 @@ public static class ClassificationTypeNames
public
const
string
XmlLiteralText
=
"xml literal - text"
;
internal
const
string
RegexComment
=
"regex - comment"
;
internal
const
string
RegexText
=
"regex - text"
;
internal
const
string
RegexCharacterClass
=
"regex - character class"
;
internal
const
string
RegexQuantifier
=
"regex - quantifier"
;
internal
const
string
RegexAnchor
=
"regex - anchor"
;
internal
const
string
RegexAlternation
=
"regex - alternation"
;
internal
const
string
RegexEscape
=
"regex - escape"
;
internal
const
string
RegexQuantifier
=
"regex - quantifier"
;
internal
const
string
RegexGrouping
=
"regex - grouping"
;
internal
const
string
RegexAlternation
=
"regex - alternation"
;
internal
const
string
RegexText
=
"regex - text"
;
internal
const
string
RegexSelfEscapedCharacter
=
"regex - self escaped character"
;
internal
const
string
RegexOtherEscape
=
"regex - other escape"
;
}
}
src/Workspaces/Core/Portable/Classification/SyntaxClassification/CommonRegexPatternTokenClassifier.cs
浏览文件 @
d4f09c97
...
...
@@ -263,25 +263,22 @@ private void ClassifyGrouping(RegexGroupingNode node)
#
endregion
#
region
Escapes
#
region
Other
Escapes
public
void
Visit
(
RegexControlEscapeNode
node
)
=>
ClassifyEscape
(
node
);
=>
Classify
Other
Escape
(
node
);
public
void
Visit
(
RegexHexEscapeNode
node
)
=>
ClassifyEscape
(
node
);
=>
Classify
Other
Escape
(
node
);
public
void
Visit
(
RegexUnicodeEscapeNode
node
)
=>
ClassifyEscape
(
node
);
=>
Classify
Other
Escape
(
node
);
public
void
Visit
(
RegexOctalEscapeNode
node
)
=>
ClassifyEscape
(
node
);
=>
Classify
Other
Escape
(
node
);
public
void
Visit
(
RegexSimpleEscapeNode
node
)
=>
ClassifyEscape
(
node
);
public
void
ClassifyEscape
(
RegexNode
node
)
=>
ClassifyWholeNode
(
node
,
ClassificationTypeNames
.
RegexEscape
);
public
void
ClassifyOtherEscape
(
RegexNode
node
)
=>
ClassifyWholeNode
(
node
,
ClassificationTypeNames
.
RegexOtherEscape
);
#
endregion
...
...
@@ -310,6 +307,9 @@ public void Visit(RegexPosixPropertyNode node)
public
void
Visit
(
RegexAlternationNode
node
)
=>
AddClassification
(
node
.
BarToken
,
ClassificationTypeNames
.
RegexAlternation
);
public
void
Visit
(
RegexSimpleEscapeNode
node
)
=>
ClassifyWholeNode
(
node
,
ClassificationTypeNames
.
RegexSelfEscapedCharacter
);
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录