|
What this is
Other links
The source code/* * IDLTokenMarker.java - IDL token marker * Copyright (C) 1999 Slava Pestov * Copyright (C) 1999 Juha Lindfors * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ package org.gjt.sp.jedit.syntax; import javax.swing.text.Segment; /** * IDL token marker. * * @author Slava Pestov * @author Juha Lindfors * @version $Id: IDLTokenMarker.java,v 1.1.1.1 2001/08/20 22:32:06 gfx Exp $ */ public class IDLTokenMarker extends CTokenMarker { public IDLTokenMarker() { super(true,false,getKeywords()); } public static KeywordMap getKeywords() { if(idlKeywords == null) { idlKeywords = new KeywordMap(false); idlKeywords.add("any", Token.KEYWORD3); idlKeywords.add("attribute",Token.KEYWORD1); idlKeywords.add("boolean", Token.KEYWORD3); idlKeywords.add("case", Token.KEYWORD1); idlKeywords.add("char", Token.KEYWORD3); idlKeywords.add("const", Token.KEYWORD1); idlKeywords.add("context", Token.KEYWORD1); idlKeywords.add("default", Token.KEYWORD1); idlKeywords.add("double", Token.KEYWORD3); idlKeywords.add("enum", Token.KEYWORD3); idlKeywords.add("exception",Token.KEYWORD1); idlKeywords.add("FALSE", Token.LITERAL2); idlKeywords.add("fixed", Token.KEYWORD1); idlKeywords.add("float", Token.KEYWORD3); idlKeywords.add("in", Token.KEYWORD1); idlKeywords.add("inout", Token.KEYWORD1); idlKeywords.add("interface",Token.KEYWORD1); idlKeywords.add("long", Token.KEYWORD3); idlKeywords.add("module", Token.KEYWORD1); idlKeywords.add("Object", Token.KEYWORD3); idlKeywords.add("octet", Token.KEYWORD3); idlKeywords.add("oneway", Token.KEYWORD1); idlKeywords.add("out", Token.KEYWORD1); idlKeywords.add("raises", Token.KEYWORD1); idlKeywords.add("readonly", Token.KEYWORD1); idlKeywords.add("sequence", Token.KEYWORD3); idlKeywords.add("short", Token.KEYWORD3); idlKeywords.add("string", Token.KEYWORD3); idlKeywords.add("struct", Token.KEYWORD3); idlKeywords.add("switch", Token.KEYWORD1); idlKeywords.add("TRUE", Token.LITERAL2); idlKeywords.add("typedef", Token.KEYWORD3); idlKeywords.add("unsigned", Token.KEYWORD3); idlKeywords.add("union", Token.KEYWORD3); idlKeywords.add("void", Token.KEYWORD3); idlKeywords.add("wchar", Token.KEYWORD3); idlKeywords.add("wstring", Token.KEYWORD3); } return idlKeywords; } // private members private static KeywordMap idlKeywords; } /* * ChangeLog: * $Log: IDLTokenMarker.java,v $ * Revision 1.1.1.1 2001/08/20 22:32:06 gfx * Jext 3.0pre5 * * Revision 1.1.1.1 2001/04/11 14:22:31 gfx * * Jext 2.11: GUI customization, bug fixes * * Revision 1.3 2000/01/29 10:12:43 sp * BeanShell edit mode, bug fixes * * Revision 1.2 1999/12/18 06:10:56 sp * 2.2final, finally * * Revision 1.1 1999/10/03 03:47:16 sp * Minor stupidity, IDL mode * */ |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.