Add Go built-in types to list of reserved words.
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/83881f0f Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/83881f0f Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/83881f0f Branch: refs/heads/master Commit: 83881f0f1abd357afeee364ee2042218a607e894 Parents: e655dc2 Author: Marvin Humphrey <[email protected]> Authored: Fri May 22 18:44:45 2015 -0700 Committer: Marvin Humphrey <[email protected]> Committed: Thu May 28 05:40:01 2015 -0700 ---------------------------------------------------------------------- compiler/src/CFCGoTypeMap.c | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/83881f0f/compiler/src/CFCGoTypeMap.c ---------------------------------------------------------------------- diff --git a/compiler/src/CFCGoTypeMap.c b/compiler/src/CFCGoTypeMap.c index 9872d10..6dd7700 100644 --- a/compiler/src/CFCGoTypeMap.c +++ b/compiler/src/CFCGoTypeMap.c @@ -90,7 +90,32 @@ static const char* go_keywords[] = { "struct", "switch", "type", - "var" + "var", + "true", + "false", + "bool", + "int", + "uint", + "uintptr", + "int8", + "int16", + "int32", + "int32", + "int8", + "int16", + "int32", + "int64", + "uint8", + "uint16", + "uint32", + "uint64", + "float32", + "float64", + "complex64", + "complex128", + "byte", + "rune", + "string" }; static int num_go_keywords = sizeof(go_keywords) / sizeof(go_keywords[0]);
