aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/lua/init.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/lua/init.lua b/modules/lua/init.lua
index b1d6a357..2dc9bcac 100644
--- a/modules/lua/init.lua
+++ b/modules/lua/init.lua
@@ -52,7 +52,8 @@ sense.syntax.type_declarations = {}
sense.syntax.type_assignments = {
['^[\'"]'] = 'string', -- foo = 'bar' or foo = "bar"
['^([%w_%.]+)%s*$'] = '%1', -- foo = _m.textadept.adeptsense
- ['^(_m%.textadept%.adeptsense)%.new'] = '%1'
+ ['^(_m%.textadept%.adeptsense)%.new'] = '%1',
+ ['require%s*%(?%s*(["\'])([%w_%.]+)%1%)?'] = '%2'
}
sense.api_files = { _HOME..'/modules/lua/api' }
sense:add_trigger('.')