Package org.eclipse.jface.text.rules

Examples of org.eclipse.jface.text.rules.PatternRule


          Rule delegateRule = mode.getRule(span.getDelegate());
          defaultToken = new DelegateToken(type, delegateRule, span.getEnd());
        }
        /* Using a PatternRule instead of a MultiLineRule because
         * PatternRule exposes the break on newline behavior. */
        PatternRule pat = new CasedPatternRule(span.getStart(), span.getEnd(),
          defaultToken, mode.getDefaultRuleSet().getEscape(), span.noLineBreak(),
          ignoreCase);
        rules.add(pat);
      }
      public void acceptTextSequence(TextSequence text) {
View Full Code Here


        IToken singleLineString2 = new Token(IPythonPartitions.PY_SINGLELINE_STRING2);
        // deal with "" and '' strings
        boolean breaksOnEOL = true;
        boolean breaksOnEOF = false;
        boolean escapeContinuesLine = true;
        rules.add(new PatternRule("'", "'", singleLineString1, '\\', breaksOnEOL, breaksOnEOF, escapeContinuesLine));
        rules.add(new PatternRule("\"", "\"", singleLineString2, '\\', breaksOnEOL, breaksOnEOF, escapeContinuesLine));
    }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.rules.PatternRule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.