All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fife.rsta.ac.perl.PerlCodeCompletionProvider Maven / Gradle / Ivy

/*
 * 03/21/2010
 *
 * Copyright (C) 2010 Robert Futrell
 * robert_futrell at users.sourceforge.net
 * http://fifesoft.com/rsyntaxtextarea
 *
 * This library is distributed under a modified BSD license.  See the included
 * RSTALanguageSupport.License.txt file for details.
 */
package org.fife.rsta.ac.perl;

import org.fife.ui.autocomplete.DefaultCompletionProvider;


/**
 * The completion provider for Perl code.
 *
 * @author Robert Futrell
 * @version 1.0
 */
class PerlCodeCompletionProvider extends DefaultCompletionProvider {

	private PerlCompletionProvider parent;


	public PerlCodeCompletionProvider(PerlCompletionProvider parent) {
		this.parent = parent;
	}


	@Override
	public char getParameterListEnd() {
		return parent.getParameterListEnd();
	}


	@Override
	public char getParameterListStart() {
		return parent.getParameterListStart();
	}


	/**
	 * {@inheritDoc}
	 */
	@Override
	public boolean isValidChar(char ch) {
		return super.isValidChar(ch) || ch=='@' || ch=='$' || ch=='%';
	}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy