Commit 38d41edb authored by Miklos Magyari's avatar Miklos Magyari Committed by Adam Knapp

OOP: keyword support for ttcn3 editor

Signed-off-by: Miklos Magyari's avatarMiklos Magyari <miklos.magyari@sigmatechnology.se>
parent 0ba05d0d
......@@ -35,9 +35,17 @@ public final class CodeScanner extends RuleBasedScanner {
"modifies", "module", "modulepar", "mtc", "noblock", "not", "not4b", "not_a_number", "nowait", "of", "omit", "on", "optional", "or", "or4b", "out",
"override", "param", "pattern", "port", "present", "procedure", "realtime", "record", "recursive", "rem", "repeat", "return", "runs", "select",
"self", "sender", "set", "signature", "system", "timestamp", "template", "testcase", "to", "type", "union", "value", "valueof", "var",
"variant", "while", "with", "xor", "xor4b", "now" };
public static final String[] TITANSPECIFICKEYWORDS = new String[] { "@try", "@catch" };
"variant", "while", "with", "xor", "xor4b", "now",
/* OOP keywords not starting with @ */
"class", "this", "super", "finally" };
public static final String[] TITANSPECIFICKEYWORDS = new String[] {
"@try", "@catch",
/* Because some OOP keywords start with @, they are added here temporarily
* as TITANSPECIFICKEYWORDS have special handling of the @ character */
"@abstract", "@final" };
public static final String[] TEMPLATE_MATCH = new String[] { "complement", "decmatch", "ifpresent", "subset", "superset", "permutation" };
......
......@@ -40,7 +40,11 @@ public final class TTCN3Keywords {
"isvalue", "lengthof", "oct2bit", "oct2char", "oct2hex", "oct2int", "oct2str", "regexp", "replace", "rnd", "sizeof",
"str2bit", "str2float", "str2hex", "str2int", "str2oct", "substr", "unichar2int", "encvalue", "decvalue", "true", "false",
"none", "pass", "inconc", "fail", "error", "null", "NULL", "omit", "friend", "public", "private",
"get_stringencoding", "oct2unichar", "remove_bom", "unichar2oct", "encode_base64", "decode_base64", "testcasename", "now" };
"get_stringencoding", "oct2unichar", "remove_bom", "unichar2oct", "encode_base64", "decode_base64", "testcasename", "now",
/* OOP extension keywords */
"class", "@abstract", "@final", "this", "super" , "finally"
};
public static final String[] FORMAL_PARAMETER_SCOPE = new String[] { "in", "inout", "out", "template" };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment