Class 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 java.lang.String[] PREPROC_COMMANDS
      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
    • 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 Detail

      • PREPROC_COMMANDS

        public static final java.lang.String[] PREPROC_COMMANDS
        The preprocessor commands to match.
    • Constructor Detail

      • UnoidlPreprocessorScanner

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