ide: Layout files are now syntax highlighted, Assist++ now knows correct line postition info (thanks Sender Ghost) (RM #166, #168)

git-svn-id: svn://ultimatepp.org/upp/trunk@4163 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2011-11-12 17:36:29 +00:00
commit ee1c555439
5 changed files with 29 additions and 8 deletions

View file

@ -179,7 +179,7 @@ public:
enum {
HIGHLIGHT_NONE = -1, HIGHLIGHT_CPP = 0, HIGHLIGHT_USC, HIGHLIGHT_JAVA, HIGHLIGHT_T,
HIGHLIGHT_CALC, HIGHLIGHT_SCH, HIGHLIGHT_SQL,
HIGHLIGHT_CALC, HIGHLIGHT_LAY, HIGHLIGHT_SCH, HIGHLIGHT_SQL,
HIGHLIGHT_COUNT
};

View file

@ -373,6 +373,10 @@ void CodeEditor::InitKeywords()
"koKR", "jaJP",
NULL
};
static const char *lay[] = {
"LAYOUT", "ITEM", "UNTYPED", "END_LAYOUT",
NULL
};
static const char *sch[] = {
"BIT", "BIT_ARRAY", "BIT_", "BIT_ARRAY_",
"BOOL", "BOOL_ARRAY", "BOOL_", "BOOL_ARRAY_",
@ -412,10 +416,10 @@ void CodeEditor::InitKeywords()
NULL
};
static const char **kw[HIGHLIGHT_COUNT] = {
cpp, usc, java, tfile, usc, sch, sql
cpp, usc, java, tfile, usc, lay, sch, sql
};
static const char **nm[HIGHLIGHT_COUNT] = {
upp, usclib, javan, tlng, usclib, javan, javan
upp, usclib, javan, tlng, usclib, javan, javan, javan
};
const char **q = NULL;
for(int i = 0; i < HIGHLIGHT_COUNT; i++) {