From cdbc3e3f3e95a1df9de180ee4ac52d460e5c6905 Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Mon, 11 Mar 2024 09:47:26 +0000 Subject: fix(editorconfig): syntax error regression --- runtime/lua/editorconfig.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 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) -- cgit