It's a bit hard without a clear documentation...
What I'm trying to do is to define a syntax highlight for Oberon, so I started from MODULA existing support.
So far I have tried to put an oberon.lua file under the LuaRT Studio spec folder as follows,
but the IDE hangs when loading the spec:
local spec = {
exts = {"obn"},
lexer = wxstc.wxSTC_LEX_MODULA,
apitype = "obn",
stylingbits = 5,
lexerstyleconvert = {
text = {wxstc.wxSTC_MODULA_DEFAULT,},
comment = {wxstc.wxSTC_MODULA_COMMENT,},
operator = {wxstc.wxSTC_MODULA_OPERATOR,},
number = {wxstc.wxSTC_MODULA_NUMBER,wxstc.wxSTC_MODULA_BASENUM,},
stringtxt = {wxstc.wxSTC_MODULA_STRING,},
lexerdef= {wxstc.wxSTC_MODULA_DEFAULT,},
keywords0 = {wxstc.wxSTC_MODULA_KEYWORD,},
},
keywords = {
[[ARRAY BEGIN BY CASE CONST DIV DO ELSE ELSIF END FALSE FOR IF IMPORT IN IS MOD MODULE NIL OF OR POINTER PROCEDURE RECORD REPEAT RETURN THEN TO TRUE TYPE UNTIL VAR WHILE]]
},
}
return spec