intial source from ttp://www.sf.net/projects/wdte
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.js.core / src / net / sourceforge / phpeclipse / js / core / parser / JSWhitespaceDetector.java
1 /*
2  * $RCSfile: JSWhitespaceDetector.java,v $
3  *
4  * Copyright 2002
5  * CH-1700 Fribourg, Switzerland
6  * All rights reserved.
7  *
8  *========================================================================
9  * Modifications history
10  *========================================================================
11  * $Log: not supported by cvs2svn $
12  * Revision 1.1  2004/02/26 02:25:42  agfitzp
13  * renamed packages to match xml & css
14  *
15  * Revision 1.1  2004/02/05 03:10:08  agfitzp
16  * Initial Submission
17  *
18  * Revision 1.1.2.1  2003/12/12 21:37:24  agfitzp
19  * Experimental work for Classes view
20  *
21  * Revision 1.1  2003/05/28 15:17:12  agfitzp
22  * net.sourceforge.phpeclipse.js.core 0.0.1 code base
23  *
24  *========================================================================
25 */
26
27 package net.sourceforge.phpeclipse.js.core.parser;
28
29 import org.eclipse.jface.text.rules.IWhitespaceDetector;
30
31
32 /**
33  * 
34  *
35  * @author $Author: jsurfer $, $Date: 2004-09-02 18:14:38 $
36  *
37  * @version $Revision: 1.1 $
38  */
39 public class JSWhitespaceDetector implements IWhitespaceDetector
40 {
41    /**
42     *
43     *
44     * @param c 
45     *
46     * @return 
47     */
48    public boolean isWhitespace(char c)
49    {
50       return (c == ' ' || c == '\t' || c == '\n' || c == '\r');
51    }
52 }