diff options
author | Hans Hagen <pragma@wxs.nl> | 2017-04-16 13:20:40 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2017-04-16 13:20:40 +0200 |
commit | 218228536ed709be8ab2dde4a00dc27249ceed8a (patch) | |
tree | 71b331e3d99ebd89fefcc1cb369d233c5c7fbdc1 /context/data/textadept/context/lexers/scite-context-lexer.lua | |
parent | ea2466fe69bd082d379e95e1567f3de0b76de243 (diff) | |
download | context-218228536ed709be8ab2dde4a00dc27249ceed8a.tar.gz |
2017-04-16 12:47:00
Diffstat (limited to 'context/data/textadept/context/lexers/scite-context-lexer.lua')
-rw-r--r-- | context/data/textadept/context/lexers/scite-context-lexer.lua | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/context/data/textadept/context/lexers/scite-context-lexer.lua b/context/data/textadept/context/lexers/scite-context-lexer.lua index b73a1d82d..e526d5045 100644 --- a/context/data/textadept/context/lexers/scite-context-lexer.lua +++ b/context/data/textadept/context/lexers/scite-context-lexer.lua @@ -704,7 +704,9 @@ function context.loadluafile(name) end return data, fullname end - report("unable to load lua file '%s'",name) + if not textadept then + report("unable to load lua file '%s'",name) + end end -- in fact we could share more as we probably process the data but then we need @@ -724,7 +726,9 @@ function context.loaddefinitions(name) end local data, fullname = collect(name) if not data then - report("unable to load definition file '%s'",name) + if not textadept then + report("unable to load definition file '%s'",name) + end data = false elseif trace then report("definition file '%s' has been loaded",fullname) @@ -957,7 +961,9 @@ function context.setwordlist(tag,limit) -- returns hash (lowercase keys and orig if not list then list = context.loaddefinitions("spell-" .. tag) if not list or type(list) ~= "table" then - report("invalid spell checking list for '%s'",tag) + if not textadept then + report("invalid spell checking list for '%s'",tag) + end list = { words = false, min = 3 } else list.words = list.words or false |