Exemplo n.º 1
0
        public bool IsComment(int pos)
        {
            CPPLexerStyles style = (CPPLexerStyles)m_editor.Styles.GetStyleAt(pos);

            return(style == CPPLexerStyles.COMMENT ||
                   style == CPPLexerStyles.COMMENTLINE ||
                   style == CPPLexerStyles.COMMENTDOC ||
                   style == CPPLexerStyles.COMMENTLINEDOC ||
                   style == CPPLexerStyles.COMMENTDOCKEYWORD ||
                   style == CPPLexerStyles.COMMENTDOCKEYWORDERROR);
        }
Exemplo n.º 2
0
        public bool IsCommentOrString(int pos)
        {
            CPPLexerStyles style = (CPPLexerStyles)m_editor.Styles.GetStyleAt(pos);

            return(style == CPPLexerStyles.COMMENT ||
                   style == CPPLexerStyles.COMMENTLINE ||
                   style == CPPLexerStyles.COMMENTDOC ||
                   style == CPPLexerStyles.COMMENTLINEDOC ||
                   style == CPPLexerStyles.COMMENTDOCKEYWORD ||
                   style == CPPLexerStyles.COMMENTDOCKEYWORDERROR ||
                   style == CPPLexerStyles.STRING ||
                   style == CPPLexerStyles.STRINGEOL ||
                   style == CPPLexerStyles.CHARACTER);
        }