--- /dev/null
+/*
+ * $RCSfile: JSScanner.java,v $
+ *
+ * Copyright 2002
+ * CH-1700 Fribourg, Switzerland
+ * All rights reserved.
+ *
+ *========================================================================
+ * Modifications history
+ *========================================================================
+ * $Log: not supported by cvs2svn $
+ * Revision 1.1 2004/02/26 02:25:42 agfitzp
+ * renamed packages to match xml & css
+ *
+ * Revision 1.1 2004/02/05 03:10:08 agfitzp
+ * Initial Submission
+ *
+ * Revision 1.1.2.1 2003/12/12 21:37:24 agfitzp
+ * Experimental work for Classes view
+ *
+ * Revision 1.1 2003/05/28 15:17:12 agfitzp
+ * net.sourceforge.phpeclipse.js.core 0.0.1 code base
+ *
+ *========================================================================
+*/
+
+package net.sourceforge.phpeclipse.js.core.parser;
+
+import java.util.*;
+import org.eclipse.jface.text.rules.*;
+import org.eclipse.jface.text.*;
+
+import org.eclipse.swt.graphics.Color;
+
+/**
+ *
+ *
+ * @author $Author: jsurfer $, $Date: 2004-09-02 18:14:38 $
+ *
+ * @version $Revision: 1.1 $
+ */
+public class JSScanner extends RuleBasedScanner
+{
+ /**
+ * Creates a new JSScanner object.
+ *
+ * @param manager
+ */
+ public JSScanner(Color aColor)
+ {
+ List rules = new ArrayList();
+ IToken procInstr = new Token(new TextAttribute(aColor));
+
+ // Add generic whitespace rule.
+ rules.add(new WhitespaceRule(new JSWhitespaceDetector()));
+
+ IRule[] result = new IRule[rules.size()];
+ rules.toArray(result);
+ setRules(result);
+ }
+
+}
\ No newline at end of file