Skip to content

Commit 797fedf

Browse files
Add single quote string
1 parent 069eae9 commit 797fedf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/LuaCodeView.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ private void Initilize()
4242
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)",
4343
UIColor.FromRGB (43, 145, 175)),
4444
new CYRToken("string", "\".*?(\"|$)", UIColor.FromRGB (163, 21, 21)),
45+
new CYRToken("string2", "'.*?('|$)", UIColor.FromRGB (163, 21, 21)),
4546
new CYRToken("comment", "--.*", UIColor.FromRGB (0, 128, 0)),
4647
new CYRToken("label", "::.*?::", UIColor.FromRGB (219, 113, 0)),
4748
};

0 commit comments

Comments
 (0)