@@ -29,7 +29,6 @@ public LuaCodeView(CGRect rect) : base(rect)
29
29
private void Initilize ( )
30
30
{
31
31
Tokens = new [ ] {
32
- new CYRToken ( "string" , "\" .*?(\" |$)" , UIColor . FromRGB ( 163 , 21 , 21 ) ) ,
33
32
new CYRToken ( "hex" , "\\ b0x[0-9 a-f]+\\ b" , UIColor . FromRGB ( 10 , 136 , 91 ) ) ,
34
33
new CYRToken ( "float" , "\\ b\\ d+\\ .?\\ d+e[\\ +\\ -]?\\ d+\\ b|\\ b\\ d+\\ .\\ d+\\ b" , UIColor . FromRGB ( 10 , 136 , 91 ) ) ,
35
34
new CYRToken ( "int" , "\\ b\\ d+\\ b" , UIColor . FromRGB ( 10 , 136 , 91 ) ) ,
@@ -42,7 +41,9 @@ private void Initilize()
42
41
UIColor . FromRGB ( 111 , 0 , 138 ) ) ,
43
42
new CYRToken ( "lua_library_functions" , "(\\ bcoroutine\\ .create\\ b|\\ bcoroutine\\ .isyieldable\\ b|\\ bcoroutine\\ .resume\\ b|\\ bcoroutine\\ .running\\ b|\\ bcoroutine\\ .status\\ b|\\ bcoroutine\\ .wrap\\ b|\\ bcoroutine\\ .yield\\ b|\\ bcoroutine\\ b|\\ bdebug\\ .debug\\ b|\\ bdebug\\ .gethook\\ b|\\ bdebug\\ .getinfo\\ b|\\ bdebug\\ .getlocal\\ b|\\ bdebug\\ .getmetatable\\ b|\\ bdebug\\ .getregistry\\ b|\\ bdebug\\ .getupvalue\\ b|\\ bdebug\\ .getuservalue\\ b|\\ bdebug\\ .sethook\\ b|\\ bdebug\\ .setlocal\\ b|\\ bdebug\\ .setmetatable\\ b|\\ bdebug\\ .setupvalue\\ b|\\ bdebug\\ .setuservalue\\ b|\\ bdebug\\ .traceback\\ b|\\ bdebug\\ .upvalueid\\ b|\\ bdebug\\ .upvaluejoin\\ b|\\ bdebug\\ b|\\ bio\\ .close\\ b|\\ bio\\ .flush\\ b|\\ bio\\ .input\\ b|\\ bio\\ .lines\\ b|\\ bio\\ .open\\ b|\\ bio\\ .output\\ b|\\ bio\\ .popen\\ b|\\ bio\\ .read\\ b|\\ bio\\ .stderr\\ b|\\ bio\\ .stdin\\ b|\\ bio\\ .stdout\\ b|\\ bio\\ .tmpfile\\ b|\\ bio\\ .type\\ b|\\ bio\\ .write\\ b|\\ bio\\ b|\\ bmath\\ .abs\\ b|\\ bmath\\ .acos\\ b|\\ bmath\\ .asin\\ b|\\ bmath\\ .atan\\ b|\\ bmath\\ .ceil\\ b|\\ bmath\\ .cos\\ b|\\ bmath\\ .deg\\ b|\\ bmath\\ .exp\\ b|\\ bmath\\ .floor\\ b|\\ bmath\\ .fmod\\ b|\\ bmath\\ .huge\\ b|\\ bmath\\ .log\\ b|\\ bmath\\ .max\\ b|\\ bmath\\ .maxinteger\\ b|\\ bmath\\ .min\\ b|\\ bmath\\ .mininteger\\ b|\\ bmath\\ .modf\\ b|\\ bmath\\ .pi\\ b|\\ bmath\\ .rad\\ b|\\ bmath\\ .random\\ b|\\ bmath\\ .randomseed\\ b|\\ bmath\\ .sin\\ b|\\ bmath\\ .sqrt\\ b|\\ bmath\\ .tan\\ b|\\ bmath\\ .tointeger\\ b|\\ bmath\\ .type\\ b|\\ bmath\\ .ult\\ b|\\ bmath\\ b|\\ bos\\ .clock\\ b|\\ bos\\ .date\\ b|\\ bos\\ .difftime\\ b|\\ bos\\ .execute\\ b|\\ bos\\ .exit\\ b|\\ bos\\ .getenv\\ b|\\ bos\\ .remove\\ b|\\ bos\\ .rename\\ b|\\ bos\\ .setlocale\\ b|\\ bos\\ .time\\ b|\\ bos\\ .tmpname\\ b|\\ bos\\ b|\\ bpackage\\ .config\\ b|\\ bpackage\\ .cpath\\ b|\\ bpackage\\ .loaded\\ b|\\ bpackage\\ .loadlib\\ b|\\ bpackage\\ .path\\ b|\\ bpackage\\ .preload\\ b|\\ bpackage\\ .searchers\\ b|\\ bpackage\\ .searchpath\\ b|\\ bpackage\\ b|\\ bstring\\ .byte\\ b|\\ bstring\\ .char\\ b|\\ bstring\\ .dump\\ b|\\ bstring\\ .find\\ b|\\ bstring\\ .format\\ b|\\ bstring\\ .gmatch\\ b|\\ bstring\\ .gsub\\ b|\\ bstring\\ .len\\ b|\\ bstring\\ .lower\\ b|\\ bstring\\ .match\\ b|\\ bstring\\ .pack\\ b|\\ bstring\\ .packsize\\ b|\\ bstring\\ .rep\\ b|\\ bstring\\ .reverse\\ b|\\ bstring\\ .sub\\ b|\\ bstring\\ .unpack\\ b|\\ bstring\\ .upper\\ b|\\ bstring\\ b|\\ btable\\ .concat\\ b|\\ btable\\ .insert\\ b|\\ btable\\ .move\\ b|\\ btable\\ .pack\\ b|\\ btable\\ .remove\\ b|\\ btable\\ .sort\\ b|\\ btable\\ .unpack\\ b|\\ btable\\ b|\\ butf8\\ .char\\ b|\\ butf8\\ .charpattern\\ b|\\ butf8\\ .codepoint\\ b|\\ butf8\\ .codes\\ b|\\ butf8\\ .len\\ b|\\ butf8\\ .offset\\ b|\\ butf8\\ b)" ,
44
43
UIColor . FromRGB ( 43 , 145 , 175 ) ) ,
44
+ new CYRToken ( "string" , "\" .*?(\" |$)" , UIColor . FromRGB ( 163 , 21 , 21 ) ) ,
45
45
new CYRToken ( "comment" , "--.*" , UIColor . FromRGB ( 0 , 128 , 0 ) ) ,
46
+ new CYRToken ( "label" , "::.*?::" , UIColor . FromRGB ( 219 , 113 , 0 ) ) ,
46
47
} ;
47
48
48
49
Tab = "\t " ;
0 commit comments