org.comedia.text
Class CPascalHighlighter

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

public class CPascalHighlighter
extends CAbstractHighlighter

Extends the CAbstractHighlighter to process Pascal source files.


Fields inherited from class org.comedia.text.CAbstractHighlighter
commentAttr, delimAttr, identAttr, keywordAttr, numberAttr, scanner, stringAttr, whiteSpaceAttr
 
Constructor Summary
CPascalHighlighter()
          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

CPascalHighlighter

public CPascalHighlighter()
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