Skip to main content
summaryrefslogtreecommitdiffstats
blob: 410ff0fa0cb90554bda807d26cdf3b4dec26301a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package org.eclipse.linuxtools.rpm.ui.editor;

import org.eclipse.jface.text.rules.IWordDetector;

public class MacroWordDetector implements IWordDetector {

	public boolean isWordPart(char c) {
		// TODO Auto-generated method stub
		return (Character.isLetterOrDigit(c) || c == '%' || c == '{' || c == '}' || c == '_');
	}

	public boolean isWordStart(char c) {
		// TODO Auto-generated method stub
		return (c == '%');
	}

}

Back to the top