提交 82b804fb 编写于 作者: M mkosieradzki

Fixed typo in json parser

上级 b433ee53
...@@ -679,7 +679,7 @@ export function parse(text:string, errors: string[] = []) : any { ...@@ -679,7 +679,7 @@ export function parse(text:string, errors: string[] = []) : any {
while (_scanner.getToken() !== SyntaxKind.CloseBraceToken && _scanner.getToken() !== SyntaxKind.EOF) { while (_scanner.getToken() !== SyntaxKind.CloseBraceToken && _scanner.getToken() !== SyntaxKind.EOF) {
if (_scanner.getToken() === SyntaxKind.CommaToken) { if (_scanner.getToken() === SyntaxKind.CommaToken) {
if (!needsComma) { if (!needsComma) {
handleError(nls.localize('ValeExpected', 'Value expected'), [], [] ); handleError(nls.localize('ValueExpected', 'Value expected'), [], [] );
} }
scanNext(); // consume comma scanNext(); // consume comma
} else if (needsComma) { } else if (needsComma) {
...@@ -760,4 +760,4 @@ export function parse(text:string, errors: string[] = []) : any { ...@@ -760,4 +760,4 @@ export function parse(text:string, errors: string[] = []) : any {
handleError(nls.localize('EOFExpected', 'End of content expected'), [], []); handleError(nls.localize('EOFExpected', 'End of content expected'), [], []);
} }
return value; return value;
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册