AGS.Plugin.Lua.LuaScriptEditPane.NonCommentBraceCheck C# (CSharp) Метод

NonCommentBraceCheck() приватный Метод

private NonCommentBraceCheck ( int pos ) : bool
pos int
Результат bool
        bool NonCommentBraceCheck(int pos)
        {
            char ch = scintilla.GetCharAt(pos);
            int sty = scintilla.GetStyleAt(pos);
            if (sty == 10 && "[](){}".IndexOf(ch) != -1)
            {
                int other = scintilla.BraceMatch(pos, 10);
                if (other == -1)
                {
                    scintilla.BraceBadLight(pos);
                }
                else
                {
                    scintilla.BraceHighlight(pos, other);
                }
                return true;
            }
            return false;
        }