diff options
author | 2011-12-13 08:17:46 -0500 | |
---|---|---|
committer | 2011-12-13 08:17:46 -0500 | |
commit | 0847cacbac661692d91d70315d5798af235e489a (patch) | |
tree | c1c2b3a4643b3c6fe2a2256a5441f4e9b2948d8f /themes/light/lexer.lua | |
parent | 3b5be3845263681790d68a97a3ee2b46b51ea1dd (diff) | |
download | textadept-0847cacbac661692d91d70315d5798af235e489a.tar.gz textadept-0847cacbac661692d91d70315d5798af235e489a.zip |
Updated lexer themes to Lua 5.2.
Diffstat (limited to 'themes/light/lexer.lua')
-rw-r--r-- | themes/light/lexer.lua | 66 |
1 files changed, 35 insertions, 31 deletions
diff --git a/themes/light/lexer.lua b/themes/light/lexer.lua index 7b9ea4fb..4a8eb897 100644 --- a/themes/light/lexer.lua +++ b/themes/light/lexer.lua @@ -5,9 +5,9 @@ -- This means the global variables like 'buffer', 'view', and 'gui' are not -- available here. Only the variables in the 'lexer' module are. -module('lexer', package.seeall) +local l, color, style = lexer, lexer.color, lexer.style -colors = { +l.colors = { -- Greyscale colors. --dark_black = color('00', '00', '00'), --black = color('1A', '1A', '1A'), @@ -55,26 +55,26 @@ colors = { light_blue = color('80', 'CC', 'FF'), } -style_nothing = style { } -style_class = style { fore = colors.yellow } -style_comment = style { fore = colors.grey } -style_constant = style { fore = colors.red } -style_definition = style { fore = colors.yellow } -style_error = style { fore = colors.red, italic = true } -style_function = style { fore = colors.dark_orange } -style_keyword = style { fore = colors.dark_blue } -style_label = style { fore = colors.dark_orange } -style_number = style { fore = colors.teal } -style_operator = style { fore = colors.purple } -style_regex = style { fore = colors.dark_green } -style_string = style { fore = colors.green } -style_preproc = style { fore = colors.dark_yellow } -style_tag = style { fore = colors.dark_blue } -style_type = style { fore = colors.lavender } -style_variable = style { fore = colors.dark_lavender } -style_whitespace = style { } -style_embedded = style_tag..{ back = colors.dark_white } -style_identifier = style_nothing +l.style_nothing = style { } +l.style_class = style { fore = l.colors.yellow } +l.style_comment = style { fore = l.colors.grey } +l.style_constant = style { fore = l.colors.red } +l.style_definition = style { fore = l.colors.yellow } +l.style_error = style { fore = l.colors.red, italic = true } +l.style_function = style { fore = l.colors.dark_orange } +l.style_keyword = style { fore = l.colors.dark_blue } +l.style_label = style { fore = l.colors.dark_orange } +l.style_number = style { fore = l.colors.teal } +l.style_operator = style { fore = l.colors.purple } +l.style_regex = style { fore = l.colors.dark_green } +l.style_string = style { fore = l.colors.green } +l.style_preproc = style { fore = l.colors.dark_yellow } +l.style_tag = style { fore = l.colors.dark_blue } +l.style_type = style { fore = l.colors.lavender } +l.style_variable = style { fore = l.colors.dark_lavender } +l.style_whitespace = style { } +l.style_embedded = l.style_tag..{ back = l.colors.dark_white } +l.style_identifier = l.style_nothing -- Default styles. local font_face = '!Bitstream Vera Sans Mono' @@ -85,15 +85,19 @@ elseif OSX then font_face = '!Monaco' font_size = 12 end -style_default = style { +l.style_default = style { font = font_face, size = font_size, - fore = colors.light_black, - back = colors.white + fore = l.colors.light_black, + back = l.colors.white +} +l.style_line_number = style { fore = l.colors.grey, back = l.colors.white } +l.style_bracelight = style { fore = l.colors.light_blue } +l.style_bracebad = style { fore = l.colors.light_red } +l.style_controlchar = l.style_nothing +l.style_indentguide = style { + fore = l.colors.dark_white, back = l.colors.dark_white +} +l.style_calltip = style { + fore = l.colors.light_black, back = l.colors.dark_white } -style_line_number = style { fore = colors.grey, back = colors.white } -style_bracelight = style { fore = colors.light_blue } -style_bracebad = style { fore = colors.light_red } -style_controlchar = style_nothing -style_indentguide = style { fore = colors.dark_white, back = colors.dark_white } -style_calltip = style { fore = colors.light_black, back = colors.dark_white } |