aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlua/themes/scite.lua
blob: d9fc3d3733db3bf7b4751490df491490d30a4d53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
-- Copyright 2006-2020 Mitchell mitchell.att.foicica.com. See License.txt.
-- SciTE theme for Lua lexers.

local lexer = require('lexer')
local colors, styles = lexer.colors, lexer.styles

colors.red = '#7F0000'
colors.yellow = '#7F7F00'
colors.green = '#007F00'
colors.teal = '#007F7F'
colors.purple = '#7F007F'
colors.orange = '#B07F00'
colors.blue = '#00007F'
colors.black = '#000000'
colors.grey = '#808080'
colors.white = '#FFFFFF'

-- Default font.
local font = WIN32 and 'Courier New' or OSX and 'Monaco' or 'Monospace'
local size = not OSX and 11 or 12

-- Predefined styles.
styles.default = {
  font = font, size = size, fore = colors.black, back = colors.white
}
styles.line_number = {back = '#C0C0C0'}
styles.brace_light = {fore = '#0000FF', bold = true}
styles.brace_bad = {fore = '#FF0000', bold = true}
styles.control_char = {}
styles.indent_guide = {fore = '#C0C0C0', back = colors.white}
styles.call_tip = {fore = colors.white, back = '#444444'}
styles.fold_display_text = {}

-- Token styles.
styles.class = {fore = colors.black, bold = true}
styles.comment = {fore = colors.green}
styles.constant = {fore = colors.teal, bold = true}
styles.embedded = {fore = colors.blue}
styles.error = {fore = colors.red}
styles['function'] = {fore = colors.black, bold = true}
styles.identifier = {}
styles.keyword = {fore = colors.blue, bold = true}
styles.label = {fore = colors.teal, bold = true}
styles.number = {fore = colors.teal}
styles.operator = {fore = colors.black, bold = true}
styles.preprocessor = {fore = colors.yellow}
styles.regex = lexer.STYLE_STRING
styles.string = {fore = colors.purple}
styles.type = {fore = colors.blue}
styles.variable = {fore = colors.black}
styles.whitespace = {}