Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 95bf6826fa69397b9b28a96fd3332c93a77b003a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*******************************************************************************
 * Copyright (c) 2006, 2015 Red Hat, Inc.
 *
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *     Red Hat Incorporated - initial API and implementation
 *******************************************************************************/
package org.eclipse.cdt.autotools.ui.editors;

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

public class AutoconfM4WordDetector implements IWordDetector {

	@Override
	public boolean isWordPart(char c) {
		return (Character.isLetter(c) || Character.isDigit(c) || c == '_');
	}

	@Override
	public boolean isWordStart(char c) {
		return (c == 'm');
	}

}

Back to the top