aboutsummaryrefslogtreecommitdiff
path: root/themes/scite/lexer.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-01-24 15:56:26 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-01-24 15:56:26 -0500
commitf0456d89738b562917a820b986fc038cd70235cb (patch)
tree8fe12e00d68c49847ac4889550c6adeb9bbf3fda /themes/scite/lexer.lua
parent60544f1550999df6a55dbdfc2cbd7542fecb3314 (diff)
downloadtextadept-f0456d89738b562917a820b986fc038cd70235cb.tar.gz
textadept-f0456d89738b562917a820b986fc038cd70235cb.zip
Use lexer themes defined in Textadept's themes/, not scintilla-st's themes/.
Diffstat (limited to 'themes/scite/lexer.lua')
-rw-r--r--themes/scite/lexer.lua57
1 files changed, 57 insertions, 0 deletions
diff --git a/themes/scite/lexer.lua b/themes/scite/lexer.lua
new file mode 100644
index 00000000..162d47ee
--- /dev/null
+++ b/themes/scite/lexer.lua
@@ -0,0 +1,57 @@
+-- Copyright 2007-2009 Mitchell mitchell<att>caladbolg.net. See LICENSE.
+-- SciTE lexer theme for Textadept.
+
+module('lexer', package.seeall)
+
+lexer.colors = {
+ green = color('00', '7F', '00'),
+ blue = color('00', '00', '7F'),
+ red = color('7F', '00', '00'),
+ yellow = color('7F', '7F', '00'),
+ teal = color('00', '7F', '7F'),
+ white = color('FF', 'FF', 'FF'),
+ black = color('00', '00', '00'),
+ grey = color('80', '80', '80'),
+ purple = color('7F', '00', '7F'),
+ orange = color('B0', '7F', '00'),
+}
+
+style_nothing = style { }
+style_char = style { fore = colors.purple }
+style_class = style { fore = colors.black, bold = true }
+style_comment = style { fore = colors.green }
+style_constant = style { fore = colors.teal, bold = true }
+style_definition = style { fore = colors.black, bold = true }
+style_error = style { fore = colors.red }
+style_function = style { fore = colors.black, bold = true }
+style_keyword = style { fore = colors.blue, bold = true }
+style_number = style { fore = colors.teal }
+style_operator = style { fore = colors.black, bold = true }
+style_string = style { fore = colors.purple }
+style_preproc = style { fore = colors.yellow }
+style_tag = style { fore = colors.teal }
+style_type = style { fore = colors.blue }
+style_variable = style { fore = colors.black }
+style_identifier = style_nothing
+
+-- Default styles.
+local font_face = '!Monospace'
+local font_size = 11
+if WIN32 then
+ font_face = '!Courier New'
+elseif MAC then
+ font_face = '!Monaco'
+ font_size = 12
+end
+style_default = style{
+ font = font_face,
+ size = font_size,
+ fore = colors.black,
+ back = colors.white,
+}
+style_line_number = style { back = color('C0', 'C0', 'C0') }
+style_bracelight = style { fore = color('00', '00', 'FF'), bold = true }
+style_bracebad = style { fore = color('FF', '00', '00'), bold = true }
+style_controlchar = style_nothing
+style_indentguide = style { fore = color('C0', 'C0', 'C0'), back = colors.white }
+style_calltip = style { fore = colors.white, back = color('44', '44', '44') }