nimsuggest improvement: don't die because of illformed ASTs

This commit is contained in:
Andreas Rumpf 2017-02-06 17:21:16 +01:00
commit 2a22dc7787

View file

@ -12,7 +12,7 @@ import
type type
TMsgKind* = enum TMsgKind* = enum
errUnknown, errIllFormedAstX, errInternal, errCannotOpenFile, errGenerated, errUnknown, errInternal, errIllFormedAstX, errCannotOpenFile, errGenerated,
errXCompilerDoesNotSupportCpp, errStringLiteralExpected, errXCompilerDoesNotSupportCpp, errStringLiteralExpected,
errIntLiteralExpected, errInvalidCharacterConstant, errIntLiteralExpected, errInvalidCharacterConstant,
errClosingTripleQuoteExpected, errClosingQuoteExpected, errClosingTripleQuoteExpected, errClosingQuoteExpected,
@ -135,8 +135,8 @@ type
const const
MsgKindToStr*: array[TMsgKind, string] = [ MsgKindToStr*: array[TMsgKind, string] = [
errUnknown: "unknown error", errUnknown: "unknown error",
errIllFormedAstX: "illformed AST: $1",
errInternal: "internal error: $1", errInternal: "internal error: $1",
errIllFormedAstX: "illformed AST: $1",
errCannotOpenFile: "cannot open \'$1\'", errCannotOpenFile: "cannot open \'$1\'",
errGenerated: "$1", errGenerated: "$1",
errXCompilerDoesNotSupportCpp: "\'$1\' compiler does not support C++", errXCompilerDoesNotSupportCpp: "\'$1\' compiler does not support C++",