public static bool util_iskeyword(string checkWord)
{
if (reservedWordCheck == null)
{
string[] reservedWords =
new string[] {
"and", "break", "do", "else", "elseif",
"end", "false", "for", "function", "if",
"in", "local", "nil", "not", "or",
"repeat", "return", "then", "true", "until", "while"
};
reservedWordCheck = new Dictionary<string,bool>();
foreach (string word in reservedWords)
{
reservedWordCheck[word] = true;
}
}
return reservedWordCheck.ContainsKey(checkWord);
}