org.comedia.text
Class CCppHighlighter

java.lang.Object
  |
  +--org.comedia.text.CAbstractHighlighter
        |
        +--org.comedia.text.CCppHighlighter

public class CCppHighlighter
extends CAbstractHighlighter

Extends the CAbstractHighlighter to process C++ source files.


Fields inherited from class org.comedia.text.CAbstractHighlighter
commentAttr, delimAttr, identAttr, keywordAttr, numberAttr, scanner, stringAttr, whiteSpaceAttr
 
Constructor Summary
CCppHighlighter()
          Constract this class with default properties.
 
Method Summary
 boolean isMultilineComment()
          Check if current is a multiline comment.
 int locateUnclosedComment(java.lang.String text, int pos)
          Locates a last unclosed multiline comment before specified position.
 
Methods inherited from class org.comedia.text.CAbstractHighlighter
getAttribute, getCommentAttribute, getDelimAttribute, getIdentAttribute, getKeywordAttribute, getNumberAttribute, getStringAttribute, getToken, getWhiteSpaceAttribute, gotoNextToken, locateUnclosedComment, setBuffer, setCommentAttribute, setDelimAttribute, setIdentAttribute, setKeywordAttribute, setNumberAttribute, setStringAttribute, setWhiteSpaceAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CCppHighlighter

public CCppHighlighter()
Constract this class with default properties.
Method Detail

locateUnclosedComment

public int locateUnclosedComment(java.lang.String text,
                                 int pos)
Locates a last unclosed multiline comment before specified position.
Overrides:
locateUnclosedComment in class CAbstractHighlighter
Parameters:
text - the text to search in.
pos - the last position

isMultilineComment

public boolean isMultilineComment()
Check if current is a multiline comment.
Overrides:
isMultilineComment in class CAbstractHighlighter