aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-02-21 21:36:22 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2011-02-21 21:36:22 -0500
commitf99e117979d13bcb5ad1b6836ebadbef080a9fcf (patch)
tree08f6c601173e8d109d1a07a4ae1cce66b6a3ac88
parent5079722f9c6834017d8c4db86080a027fec7d50b (diff)
downloadtextadept-f99e117979d13bcb5ad1b6836ebadbef080a9fcf.tar.gz
textadept-f99e117979d13bcb5ad1b6836ebadbef080a9fcf.zip
Lua module changes.
-rw-r--r--modules/lua/adeptsense.lua7
-rw-r--r--modules/lua/commands.lua1
2 files changed, 3 insertions, 5 deletions
diff --git a/modules/lua/adeptsense.lua b/modules/lua/adeptsense.lua
index 47218e61..e7db1898 100644
--- a/modules/lua/adeptsense.lua
+++ b/modules/lua/adeptsense.lua
@@ -10,9 +10,8 @@ sense = _m.textadept.adeptsense.new('lua')
sense.syntax.class_definition = 'module%s*%(?%s*[\'"]([%w_%.]+)'
sense.syntax.symbol_chars = '[%w_%.:]'
sense.syntax.type_declarations = {}
-sense.syntax.type_assignments = {
- ["^'"] = 'string', -- foo = 'bar'
- ['^"'] = 'string', -- foo = "bar"
+sense.syntax.type_assignments = {
+ ['^[\'"]'] = 'string', -- foo = 'bar' or foo = "bar"
['^([%w_%.]+)'] = '%1' -- foo = _m.textadept.adeptsense
}
sense.api_files = { _HOME..'/modules/lua/api' }
@@ -23,7 +22,7 @@ sense:add_trigger(':', false, true)
sense.ctags_kinds = {
f = 'functions',
F = 'fields',
- m = 'modules',
+ m = 'classes',
t = 'fields',
}
sense:load_ctags(_HOME..'/modules/lua/tags', true)
diff --git a/modules/lua/commands.lua b/modules/lua/commands.lua
index da7bd6aa..fb12461b 100644
--- a/modules/lua/commands.lua
+++ b/modules/lua/commands.lua
@@ -97,7 +97,6 @@ events.connect('file_after_save',
local _, err = loadstring(text)
if err then
local line, msg = err:match('^.-:(%d+):%s*(.+)$')
- line = tonumber(line)
if line then
buffer.annotation_visible = 2
buffer:annotation_set_text(line - 1, msg)