Class UnoidlPreprocessorScanner

java.lang.Object
org.eclipse.jface.text.rules.RuleBasedScanner
org.libreoffice.ide.eclipse.core.editors.syntax.UnoidlPreprocessorScanner
All Implemented Interfaces:
org.eclipse.jface.text.rules.ICharacterScanner, org.eclipse.jface.text.rules.ITokenScanner

public class UnoidlPreprocessorScanner extends org.eclipse.jface.text.rules.RuleBasedScanner
Scanner splitting the preprocessor commands into items to be colorized. In order to fully understand the editor mechanisms, please report to Eclipse plugin developer's guide.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String[]
    The preprocessor commands to match.

    Fields inherited from class org.eclipse.jface.text.rules.RuleBasedScanner

    fColumn, fDefaultReturnToken, fDelimiters, fDocument, fOffset, fRangeEnd, fRules, fTokenOffset, UNDEFINED

    Fields inherited from interface org.eclipse.jface.text.rules.ICharacterScanner

    EOF
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor initializing the rules for the preprocessor command analysis.
  • Method Summary

    Methods inherited from class org.eclipse.jface.text.rules.RuleBasedScanner

    getColumn, getLegalLineDelimiters, getTokenLength, getTokenOffset, nextToken, read, setDefaultReturnToken, setRange, setRules, unread

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • PREPROC_COMMANDS

      public static final String[] PREPROC_COMMANDS
      The preprocessor commands to match.
  • Constructor Details

    • UnoidlPreprocessorScanner

      public UnoidlPreprocessorScanner(ColorProvider colorManager)
      Constructor initializing the rules for the preprocessor command analysis.
      Parameters:
      colorManager - the color manager from where to get the colors