1
/*******************************************************************************
2
* Copyright (c) 2007 Alphonse Van Assche
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* Alphonse Van Assche - initial API and implementation
10
*******************************************************************************/
12
package org.eclipse.linuxtools.internal.rpm.ui.editor.detectors;
14
import org.eclipse.jface.text.rules.IWordDetector;
16
public class PackageWordDetector implements IWordDetector {
18
public boolean isWordPart(char c) {
19
return Character.isLetterOrDigit(c) || (c == '-') || (c == '_') || (c == '+');
22
public boolean isWordStart(char c) {
23
return (c == ' ') || (c == ',') || (c == '\t') || (c == ':');