at.jku.ssw.Coco.Scanner.Comment1 C# (CSharp) Method

Comment1() private method

private Comment1 ( ) : bool
return bool
        bool Comment1()
        {
            int level = 1, pos0 = pos, line0 = line, col0 = col, charPos0 = charPos;
            NextCh();
            if (ch == '*') {
            NextCh();
            for(;;) {
                if (ch == '*') {
                    NextCh();
                    if (ch == '/') {
                        level--;
                        if (level == 0) { oldEols = line - line0; NextCh(); return true; }
                        NextCh();
                    }
                } else if (ch == '/') {
                    NextCh();
                    if (ch == '*') {
                        level++; NextCh();
                    }
                } else if (ch == Buffer.EOF) return false;
                else NextCh();
            }
            } else {
            buffer.Pos = pos0; NextCh(); line = line0; col = col0; charPos = charPos0;
            }
            return false;
        }