Commit d2248ff5 authored by jayherron's avatar jayherron

Added "if", "else", "and", and "or" to keywords. Modified color on refs

parent bad31f8e
......@@ -12,17 +12,17 @@ import org.eclipse.swt.graphics.RGB;
public interface ITrioColorConstants {
// Trio feature colors
RGB DEFAULT = new RGB(0, 0, 0);
RGB SPLIT = new RGB(0, 0, 128);
RGB TAG = new RGB(128, 128, 0);
RGB SPLIT = new RGB(0, 0, 127);
RGB TAG = new RGB(127, 127, 0);
// Axon code colors (to match the SkySpark Func app)
// These may fill in non-axon areas of trio files.
RGB BRACKET = new RGB(255, 0, 0);
RGB COMMENT = new RGB(0, 128, 0);
RGB COORDINATE = new RGB(128, 100, 0);
RGB COMMENT = new RGB(0, 127, 0);
RGB COORDINATE = new RGB(127, 100, 0);
RGB KEYWORD = new RGB(0, 0, 255);
RGB NUMBER = new RGB(128, 0, 0);
RGB REF = new RGB(128, 0, 128);
RGB STRING = new RGB(0, 128, 128);
RGB URI = new RGB(0, 128, 128); // Same as string
RGB NUMBER = new RGB(127, 0, 0);
RGB REF = new RGB(127, 127, 127);
RGB STRING = new RGB(0, 127, 127);
RGB URI = new RGB(0, 127, 127); // Same as string
}
......@@ -53,8 +53,12 @@ public class TrioScanner extends RuleBasedScanner {
KeywordRule keywords = new KeywordRule();
// Axon keywords
keywords.addWord("return", keyword);
keywords.addWord("if", keyword);
keywords.addWord("else", keyword);
keywords.addWord("do", keyword);
keywords.addWord("end", keyword);
keywords.addWord("and", keyword);
keywords.addWord("or", keyword);
keywords.addWord("try", keyword);
keywords.addWord("catch", keyword);
keywords.addWord("throw", keyword);
......
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