summaryrefslogtreecommitdiff
path: root/context/data/scite/lexers/themes
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2012-04-20 00:40:13 +0300
committerMarius <mariausol@gmail.com>2012-04-20 00:40:13 +0300
commit959400a677b3eb6ff6513a750be6dde943e62c36 (patch)
tree91e6f0884f2b018acd879276f1c976440b7c835b /context/data/scite/lexers/themes
parent0756a263c41de5279fef717c5b9cca9909308c3a (diff)
downloadcontext-959400a677b3eb6ff6513a750be6dde943e62c36.tar.gz
beta 2012.04.19 23:18
Diffstat (limited to 'context/data/scite/lexers/themes')
-rw-r--r--context/data/scite/lexers/themes/scite-context-theme.lua13
1 files changed, 11 insertions, 2 deletions
diff --git a/context/data/scite/lexers/themes/scite-context-theme.lua b/context/data/scite/lexers/themes/scite-context-theme.lua
index 6351c290d..7b305d3e5 100644
--- a/context/data/scite/lexers/themes/scite-context-theme.lua
+++ b/context/data/scite/lexers/themes/scite-context-theme.lua
@@ -148,7 +148,7 @@ lexer.style_controlchar = style_controlchar -- 38
local styles = { -- as we have globals we could do with less
-- ["whitespace"] = style_whitespace, -- not to be set!
- -- ["default"] = style_nothing,
+ ["default"] = style_nothing, -- else no good backtracking to start-of-child
-- ["number"] = style_number,
-- ["comment"] = style_comment,
-- ["keyword"] = style_keyword,
@@ -157,6 +157,7 @@ local styles = { -- as we have globals we could do with less
-- ["error"] = style_error,
-- ["label"] = style_label,
+ ["invisible"] = style_invisible,
["quote"] = style_quote,
["special"] = style_special,
["extra"] = style_extra,
@@ -166,7 +167,6 @@ local styles = { -- as we have globals we could do with less
-- ["definition"] = style_definition,
["okay"] = style_okay,
["warning"] = style_warning,
- ["invisible"] = style_invisible,
-- ["standout"] = style_standout,
["command"] = style_command,
["internal"] = style_internal,
@@ -190,6 +190,15 @@ end
context.styles = styles
context.styleset = styleset
+function context.stylesetcopy()
+ local t = { }
+ for i=1,#styleset do
+ t[i] = styleset[i]
+ end
+ t[#t+1] = { "whitespace", style_nothing }
+ return t
+end
+
-- We can be sparse if needed:
-- function context.newstyleset(list)