1 package org.simantics.scl.ui.editor2;
3 import org.eclipse.jface.text.IDocument;
4 import org.eclipse.jface.text.rules.IToken;
5 import org.eclipse.jface.text.rules.RuleBasedScanner;
6 import org.eclipse.jface.text.rules.Token;
8 public class StringTokenScanner extends RuleBasedScanner {
9 public StringTokenScanner(Object attribute) {
10 setDefaultReturnToken(new Token(attribute));
14 public IToken nextToken() {
15 return super.nextToken();
19 public void setRange(IDocument document, int offset, int length) {
20 super.setRange(document, offset, length);