2 * Copyright (c) 2002-2004 Widespace, OU and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * Igor Malinin - initial contribution
11 * $Id: SmartyTagRule.java,v 1.1 2004-09-02 18:25:04 jsurfer Exp $
14 package net.sourceforge.phpdt.smarty.ui.internal.text;
16 import org.eclipse.jface.text.rules.ICharacterScanner;
17 import org.eclipse.jface.text.rules.IRule;
18 import org.eclipse.jface.text.rules.IToken;
19 import org.eclipse.jface.text.rules.Token;
22 * Rule detecting XML tag brackets and name.
24 * @author Igor Malinin
26 public class SmartyTagRule implements IRule {
30 public SmartyTagRule(IToken token) {
34 public IToken evaluate(ICharacterScanner scanner) {
35 int ch = scanner.read();
47 return Token.UNDEFINED;
56 case ICharacterScanner.EOF:
72 return Token.UNDEFINED;