svn-gvsig-desktop / tags / v1_0_2_Build_897 / libraries / libIverUtiles / src / com / iver / utiles / console / jedit / IDLTokenMarker.java @ 10444
History | View | Annotate | Download (2.5 KB)
1 |
package com.iver.utiles.console.jedit; |
---|---|
2 |
/*
|
3 |
* IDLTokenMarker.java - IDL token marker
|
4 |
* Copyright (C) 1999 Slava Pestov
|
5 |
* Copyright (C) 1999 Juha Lindfors
|
6 |
*
|
7 |
* You may use and modify this package for any purpose. Redistribution is
|
8 |
* permitted, in both source and binary form, provided that this notice
|
9 |
* remains intact in all source distributions of this package.
|
10 |
*/
|
11 |
|
12 |
|
13 |
/**
|
14 |
* IDL token marker.
|
15 |
*
|
16 |
* @author Slava Pestov
|
17 |
* @author Juha Lindfors
|
18 |
* @version $Id$
|
19 |
*/
|
20 |
public class IDLTokenMarker extends CTokenMarker |
21 |
{ |
22 |
public IDLTokenMarker()
|
23 |
{ |
24 |
super(true,getKeywords()); |
25 |
} |
26 |
|
27 |
public static KeywordMap getKeywords() |
28 |
{ |
29 |
if(idlKeywords == null) |
30 |
{ |
31 |
idlKeywords = new KeywordMap(false); |
32 |
|
33 |
idlKeywords.add("any", Token.KEYWORD3);
|
34 |
idlKeywords.add("attribute",Token.KEYWORD1);
|
35 |
idlKeywords.add("boolean", Token.KEYWORD3);
|
36 |
idlKeywords.add("case", Token.KEYWORD1);
|
37 |
idlKeywords.add("char", Token.KEYWORD3);
|
38 |
idlKeywords.add("const", Token.KEYWORD1);
|
39 |
idlKeywords.add("context", Token.KEYWORD1);
|
40 |
idlKeywords.add("default", Token.KEYWORD1);
|
41 |
idlKeywords.add("double", Token.KEYWORD3);
|
42 |
idlKeywords.add("enum", Token.KEYWORD3);
|
43 |
idlKeywords.add("exception",Token.KEYWORD1);
|
44 |
idlKeywords.add("FALSE", Token.LITERAL2);
|
45 |
idlKeywords.add("fixed", Token.KEYWORD1);
|
46 |
idlKeywords.add("float", Token.KEYWORD3);
|
47 |
idlKeywords.add("in", Token.KEYWORD1);
|
48 |
idlKeywords.add("inout", Token.KEYWORD1);
|
49 |
idlKeywords.add("interface",Token.KEYWORD1);
|
50 |
idlKeywords.add("long", Token.KEYWORD3);
|
51 |
idlKeywords.add("module", Token.KEYWORD1);
|
52 |
idlKeywords.add("Object", Token.KEYWORD3);
|
53 |
idlKeywords.add("octet", Token.KEYWORD3);
|
54 |
idlKeywords.add("oneway", Token.KEYWORD1);
|
55 |
idlKeywords.add("out", Token.KEYWORD1);
|
56 |
idlKeywords.add("raises", Token.KEYWORD1);
|
57 |
idlKeywords.add("readonly", Token.KEYWORD1);
|
58 |
idlKeywords.add("sequence", Token.KEYWORD3);
|
59 |
idlKeywords.add("short", Token.KEYWORD3);
|
60 |
idlKeywords.add("string", Token.KEYWORD3);
|
61 |
idlKeywords.add("struct", Token.KEYWORD3);
|
62 |
idlKeywords.add("switch", Token.KEYWORD1);
|
63 |
idlKeywords.add("TRUE", Token.LITERAL2);
|
64 |
idlKeywords.add("typedef", Token.KEYWORD3);
|
65 |
idlKeywords.add("unsigned", Token.KEYWORD3);
|
66 |
idlKeywords.add("union", Token.KEYWORD3);
|
67 |
idlKeywords.add("void", Token.KEYWORD3);
|
68 |
idlKeywords.add("wchar", Token.KEYWORD3);
|
69 |
idlKeywords.add("wstring", Token.KEYWORD3);
|
70 |
} |
71 |
return idlKeywords;
|
72 |
} |
73 |
|
74 |
// private members
|
75 |
private static KeywordMap idlKeywords; |
76 |
} |