Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
956f4dce
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,发现更多精彩内容 >>
提交
956f4dce
编写于
1月 09, 2018
作者:
C
Cyrus Najmabadi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Report issues with strings.
上级
7787534c
变更
17
隐藏空白更改
内联
并排
Showing
17 changed file
with
93 addition
and
3 deletion
+93
-3
src/Workspaces/CSharpTest/Json/CSharpJsonParserTests_BasicTests.cs
...paces/CSharpTest/Json/CSharpJsonParserTests_BasicTests.cs
+3
-1
src/Workspaces/Core/Portable/Json/JsonParser.StrictSyntaxChecker.cs
...aces/Core/Portable/Json/JsonParser.StrictSyntaxChecker.cs
+13
-2
src/Workspaces/Core/Portable/WorkspacesResources.Designer.cs
src/Workspaces/Core/Portable/WorkspacesResources.Designer.cs
+9
-0
src/Workspaces/Core/Portable/WorkspacesResources.resx
src/Workspaces/Core/Portable/WorkspacesResources.resx
+3
-0
src/Workspaces/Core/Portable/xlf/WorkspacesResources.cs.xlf
src/Workspaces/Core/Portable/xlf/WorkspacesResources.cs.xlf
+5
-0
src/Workspaces/Core/Portable/xlf/WorkspacesResources.de.xlf
src/Workspaces/Core/Portable/xlf/WorkspacesResources.de.xlf
+5
-0
src/Workspaces/Core/Portable/xlf/WorkspacesResources.es.xlf
src/Workspaces/Core/Portable/xlf/WorkspacesResources.es.xlf
+5
-0
src/Workspaces/Core/Portable/xlf/WorkspacesResources.fr.xlf
src/Workspaces/Core/Portable/xlf/WorkspacesResources.fr.xlf
+5
-0
src/Workspaces/Core/Portable/xlf/WorkspacesResources.it.xlf
src/Workspaces/Core/Portable/xlf/WorkspacesResources.it.xlf
+5
-0
src/Workspaces/Core/Portable/xlf/WorkspacesResources.ja.xlf
src/Workspaces/Core/Portable/xlf/WorkspacesResources.ja.xlf
+5
-0
src/Workspaces/Core/Portable/xlf/WorkspacesResources.ko.xlf
src/Workspaces/Core/Portable/xlf/WorkspacesResources.ko.xlf
+5
-0
src/Workspaces/Core/Portable/xlf/WorkspacesResources.pl.xlf
src/Workspaces/Core/Portable/xlf/WorkspacesResources.pl.xlf
+5
-0
src/Workspaces/Core/Portable/xlf/WorkspacesResources.pt-BR.xlf
...orkspaces/Core/Portable/xlf/WorkspacesResources.pt-BR.xlf
+5
-0
src/Workspaces/Core/Portable/xlf/WorkspacesResources.ru.xlf
src/Workspaces/Core/Portable/xlf/WorkspacesResources.ru.xlf
+5
-0
src/Workspaces/Core/Portable/xlf/WorkspacesResources.tr.xlf
src/Workspaces/Core/Portable/xlf/WorkspacesResources.tr.xlf
+5
-0
src/Workspaces/Core/Portable/xlf/WorkspacesResources.zh-Hans.xlf
...kspaces/Core/Portable/xlf/WorkspacesResources.zh-Hans.xlf
+5
-0
src/Workspaces/Core/Portable/xlf/WorkspacesResources.zh-Hant.xlf
...kspaces/Core/Portable/xlf/WorkspacesResources.zh-Hant.xlf
+5
-0
未找到文件。
src/Workspaces/CSharpTest/Json/CSharpJsonParserTests_BasicTests.cs
浏览文件 @
956f4dce
...
@@ -3790,7 +3790,9 @@ public void TestMultiLineString2()
...
@@ -3790,7 +3790,9 @@ public void TestMultiLineString2()
</CompilationUnit>
</CompilationUnit>
</Tree>"
,
</Tree>"
,
@""
,
@""
,
@""
);
@"<Diagnostics>
<Diagnostic Message=""Illegal string character"" Start=""13"" Length=""1"" />
</Diagnostics>"
);
}
}
[
Fact
]
[
Fact
]
...
...
src/Workspaces/Core/Portable/Json/JsonParser.StrictSyntaxChecker.cs
浏览文件 @
956f4dce
...
@@ -224,11 +224,22 @@ private struct StrictSyntaxChecker
...
@@ -224,11 +224,22 @@ private struct StrictSyntaxChecker
private
JsonDiagnostic
?
CheckString
(
JsonToken
literalToken
)
private
JsonDiagnostic
?
CheckString
(
JsonToken
literalToken
)
{
{
if
(
literalToken
.
VirtualChars
[
0
].
Char
==
'\''
)
var
chars
=
literalToken
.
VirtualChars
;
if
(
chars
[
0
].
Char
==
'\''
)
{
{
return
new
JsonDiagnostic
(
return
new
JsonDiagnostic
(
WorkspacesResources
.
Strings_must_start_with_double_quote_not_single_quote
,
WorkspacesResources
.
Strings_must_start_with_double_quote_not_single_quote
,
literalToken
.
VirtualChars
[
0
].
Span
);
chars
[
0
].
Span
);
}
for
(
int
i
=
1
,
n
=
chars
.
Length
-
1
;
i
<
n
;
i
++)
{
if
(
chars
[
i
].
Char
<
' '
)
{
return
new
JsonDiagnostic
(
WorkspacesResources
.
Illegal_string_character
,
chars
[
i
].
Span
);
}
}
}
return
CheckToken
(
literalToken
);
return
CheckToken
(
literalToken
);
...
...
src/Workspaces/Core/Portable/WorkspacesResources.Designer.cs
浏览文件 @
956f4dce
...
@@ -863,6 +863,15 @@ internal class WorkspacesResources {
...
@@ -863,6 +863,15 @@ internal class WorkspacesResources {
}
}
}
}
/// <summary>
/// Looks up a localized string similar to Illegal string character.
/// </summary>
internal
static
string
Illegal_string_character
{
get
{
return
ResourceManager
.
GetString
(
"Illegal_string_character"
,
resourceCulture
);
}
}
/// <summary>
/// <summary>
/// Looks up a localized string similar to Illegal whitespace character.
/// Looks up a localized string similar to Illegal whitespace character.
/// </summary>
/// </summary>
...
...
src/Workspaces/Core/Portable/WorkspacesResources.resx
浏览文件 @
956f4dce
...
@@ -751,6 +751,9 @@
...
@@ -751,6 +751,9 @@
<data
name=
"Constructors_not_allowed"
xml:space=
"preserve"
>
<data
name=
"Constructors_not_allowed"
xml:space=
"preserve"
>
<value>
Constructors not allowed
</value>
<value>
Constructors not allowed
</value>
</data>
</data>
<data
name=
"Illegal_string_character"
xml:space=
"preserve"
>
<value>
Illegal string character
</value>
</data>
<data
name=
"Illegal_whitespace_character"
xml:space=
"preserve"
>
<data
name=
"Illegal_whitespace_character"
xml:space=
"preserve"
>
<value>
Illegal whitespace character
</value>
<value>
Illegal whitespace character
</value>
</data>
</data>
...
...
src/Workspaces/Core/Portable/xlf/WorkspacesResources.cs.xlf
浏览文件 @
956f4dce
...
@@ -1067,6 +1067,11 @@
...
@@ -1067,6 +1067,11 @@
<target
state=
"new"
>
Properties not allowed in an array
</target>
<target
state=
"new"
>
Properties not allowed in an array
</target>
<note
/>
<note
/>
</trans-unit>
</trans-unit>
<trans-unit
id=
"Illegal_string_character"
>
<source>
Illegal string character
</source>
<target
state=
"new"
>
Illegal string character
</target>
<note
/>
</trans-unit>
</body>
</body>
</file>
</file>
</xliff>
</xliff>
\ No newline at end of file
src/Workspaces/Core/Portable/xlf/WorkspacesResources.de.xlf
浏览文件 @
956f4dce
...
@@ -1067,6 +1067,11 @@
...
@@ -1067,6 +1067,11 @@
<target
state=
"new"
>
Properties not allowed in an array
</target>
<target
state=
"new"
>
Properties not allowed in an array
</target>
<note
/>
<note
/>
</trans-unit>
</trans-unit>
<trans-unit
id=
"Illegal_string_character"
>
<source>
Illegal string character
</source>
<target
state=
"new"
>
Illegal string character
</target>
<note
/>
</trans-unit>
</body>
</body>
</file>
</file>
</xliff>
</xliff>
\ No newline at end of file
src/Workspaces/Core/Portable/xlf/WorkspacesResources.es.xlf
浏览文件 @
956f4dce
...
@@ -1067,6 +1067,11 @@
...
@@ -1067,6 +1067,11 @@
<target
state=
"new"
>
Properties not allowed in an array
</target>
<target
state=
"new"
>
Properties not allowed in an array
</target>
<note
/>
<note
/>
</trans-unit>
</trans-unit>
<trans-unit
id=
"Illegal_string_character"
>
<source>
Illegal string character
</source>
<target
state=
"new"
>
Illegal string character
</target>
<note
/>
</trans-unit>
</body>
</body>
</file>
</file>
</xliff>
</xliff>
\ No newline at end of file
src/Workspaces/Core/Portable/xlf/WorkspacesResources.fr.xlf
浏览文件 @
956f4dce
...
@@ -1067,6 +1067,11 @@
...
@@ -1067,6 +1067,11 @@
<target
state=
"new"
>
Properties not allowed in an array
</target>
<target
state=
"new"
>
Properties not allowed in an array
</target>
<note
/>
<note
/>
</trans-unit>
</trans-unit>
<trans-unit
id=
"Illegal_string_character"
>
<source>
Illegal string character
</source>
<target
state=
"new"
>
Illegal string character
</target>
<note
/>
</trans-unit>
</body>
</body>
</file>
</file>
</xliff>
</xliff>
\ No newline at end of file
src/Workspaces/Core/Portable/xlf/WorkspacesResources.it.xlf
浏览文件 @
956f4dce
...
@@ -1067,6 +1067,11 @@
...
@@ -1067,6 +1067,11 @@
<target
state=
"new"
>
Properties not allowed in an array
</target>
<target
state=
"new"
>
Properties not allowed in an array
</target>
<note
/>
<note
/>
</trans-unit>
</trans-unit>
<trans-unit
id=
"Illegal_string_character"
>
<source>
Illegal string character
</source>
<target
state=
"new"
>
Illegal string character
</target>
<note
/>
</trans-unit>
</body>
</body>
</file>
</file>
</xliff>
</xliff>
\ No newline at end of file
src/Workspaces/Core/Portable/xlf/WorkspacesResources.ja.xlf
浏览文件 @
956f4dce
...
@@ -1067,6 +1067,11 @@
...
@@ -1067,6 +1067,11 @@
<target
state=
"new"
>
Properties not allowed in an array
</target>
<target
state=
"new"
>
Properties not allowed in an array
</target>
<note
/>
<note
/>
</trans-unit>
</trans-unit>
<trans-unit
id=
"Illegal_string_character"
>
<source>
Illegal string character
</source>
<target
state=
"new"
>
Illegal string character
</target>
<note
/>
</trans-unit>
</body>
</body>
</file>
</file>
</xliff>
</xliff>
\ No newline at end of file
src/Workspaces/Core/Portable/xlf/WorkspacesResources.ko.xlf
浏览文件 @
956f4dce
...
@@ -1067,6 +1067,11 @@
...
@@ -1067,6 +1067,11 @@
<target
state=
"new"
>
Properties not allowed in an array
</target>
<target
state=
"new"
>
Properties not allowed in an array
</target>
<note
/>
<note
/>
</trans-unit>
</trans-unit>
<trans-unit
id=
"Illegal_string_character"
>
<source>
Illegal string character
</source>
<target
state=
"new"
>
Illegal string character
</target>
<note
/>
</trans-unit>
</body>
</body>
</file>
</file>
</xliff>
</xliff>
\ No newline at end of file
src/Workspaces/Core/Portable/xlf/WorkspacesResources.pl.xlf
浏览文件 @
956f4dce
...
@@ -1067,6 +1067,11 @@
...
@@ -1067,6 +1067,11 @@
<target
state=
"new"
>
Properties not allowed in an array
</target>
<target
state=
"new"
>
Properties not allowed in an array
</target>
<note
/>
<note
/>
</trans-unit>
</trans-unit>
<trans-unit
id=
"Illegal_string_character"
>
<source>
Illegal string character
</source>
<target
state=
"new"
>
Illegal string character
</target>
<note
/>
</trans-unit>
</body>
</body>
</file>
</file>
</xliff>
</xliff>
\ No newline at end of file
src/Workspaces/Core/Portable/xlf/WorkspacesResources.pt-BR.xlf
浏览文件 @
956f4dce
...
@@ -1067,6 +1067,11 @@
...
@@ -1067,6 +1067,11 @@
<target
state=
"new"
>
Properties not allowed in an array
</target>
<target
state=
"new"
>
Properties not allowed in an array
</target>
<note
/>
<note
/>
</trans-unit>
</trans-unit>
<trans-unit
id=
"Illegal_string_character"
>
<source>
Illegal string character
</source>
<target
state=
"new"
>
Illegal string character
</target>
<note
/>
</trans-unit>
</body>
</body>
</file>
</file>
</xliff>
</xliff>
\ No newline at end of file
src/Workspaces/Core/Portable/xlf/WorkspacesResources.ru.xlf
浏览文件 @
956f4dce
...
@@ -1067,6 +1067,11 @@
...
@@ -1067,6 +1067,11 @@
<target
state=
"new"
>
Properties not allowed in an array
</target>
<target
state=
"new"
>
Properties not allowed in an array
</target>
<note
/>
<note
/>
</trans-unit>
</trans-unit>
<trans-unit
id=
"Illegal_string_character"
>
<source>
Illegal string character
</source>
<target
state=
"new"
>
Illegal string character
</target>
<note
/>
</trans-unit>
</body>
</body>
</file>
</file>
</xliff>
</xliff>
\ No newline at end of file
src/Workspaces/Core/Portable/xlf/WorkspacesResources.tr.xlf
浏览文件 @
956f4dce
...
@@ -1067,6 +1067,11 @@
...
@@ -1067,6 +1067,11 @@
<target
state=
"new"
>
Properties not allowed in an array
</target>
<target
state=
"new"
>
Properties not allowed in an array
</target>
<note
/>
<note
/>
</trans-unit>
</trans-unit>
<trans-unit
id=
"Illegal_string_character"
>
<source>
Illegal string character
</source>
<target
state=
"new"
>
Illegal string character
</target>
<note
/>
</trans-unit>
</body>
</body>
</file>
</file>
</xliff>
</xliff>
\ No newline at end of file
src/Workspaces/Core/Portable/xlf/WorkspacesResources.zh-Hans.xlf
浏览文件 @
956f4dce
...
@@ -1067,6 +1067,11 @@
...
@@ -1067,6 +1067,11 @@
<target
state=
"new"
>
Properties not allowed in an array
</target>
<target
state=
"new"
>
Properties not allowed in an array
</target>
<note
/>
<note
/>
</trans-unit>
</trans-unit>
<trans-unit
id=
"Illegal_string_character"
>
<source>
Illegal string character
</source>
<target
state=
"new"
>
Illegal string character
</target>
<note
/>
</trans-unit>
</body>
</body>
</file>
</file>
</xliff>
</xliff>
\ No newline at end of file
src/Workspaces/Core/Portable/xlf/WorkspacesResources.zh-Hant.xlf
浏览文件 @
956f4dce
...
@@ -1067,6 +1067,11 @@
...
@@ -1067,6 +1067,11 @@
<target
state=
"new"
>
Properties not allowed in an array
</target>
<target
state=
"new"
>
Properties not allowed in an array
</target>
<note
/>
<note
/>
</trans-unit>
</trans-unit>
<trans-unit
id=
"Illegal_string_character"
>
<source>
Illegal string character
</source>
<target
state=
"new"
>
Illegal string character
</target>
<note
/>
</trans-unit>
</body>
</body>
</file>
</file>
</xliff>
</xliff>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录