aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-03-11 09:47:26 +0000
committerLewis Russell <me@lewisr.dev>2024-03-11 10:06:57 +0000
commitcdbc3e3f3e95a1df9de180ee4ac52d460e5c6905 (patch)
tree2039b9dfed359123da834955af25ef27939f1cbb
parentf879a6545574c6d2eef7b4df2f5c5d96f5e34589 (diff)
downloadrneovim-cdbc3e3f3e95a1df9de180ee4ac52d460e5c6905.tar.gz
rneovim-cdbc3e3f3e95a1df9de180ee4ac52d460e5c6905.tar.bz2
rneovim-cdbc3e3f3e95a1df9de180ee4ac52d460e5c6905.zip
fix(editorconfig): syntax error regression
-rw-r--r--runtime/lua/editorconfig.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/lua/editorconfig.lua b/runtime/lua/editorconfig.lua
index 6c5c820b0c..c93c928339 100644
--- a/runtime/lua/editorconfig.lua
+++ b/runtime/lua/editorconfig.lua
@@ -273,6 +273,9 @@ end
local M = {}
+-- Exposed for use in syntax/editorconfig.vim`
+M.properties = properties
+
--- @private
--- Configure the given buffer with options from an `.editorconfig` file
--- @param bufnr integer Buffer number to configure
@@ -303,7 +306,7 @@ function M.config(bufnr)
local applied = {} --- @type table<string,string|boolean>
for opt, val in pairs(opts) do
if val ~= 'unset' then
- local func = properties[opt]
+ local func = M.properties[opt]
if func then
--- @type boolean, string?
local ok, err = pcall(func, bufnr, val, opts)