aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/generators/gen_api_ui_events.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-11-26 12:26:46 +0000
committerLewis Russell <me@lewisr.dev>2024-11-29 13:25:53 +0000
commit3056115785a435f89d11551e1c8bb4c89c90f610 (patch)
tree2f36a509cbc056fe5e41d4911937a020616357b7 /src/nvim/generators/gen_api_ui_events.lua
parenta1e313ded6e4c46c58012639e5c0c6d0b009d52a (diff)
downloadrneovim-3056115785a435f89d11551e1c8bb4c89c90f610.tar.gz
rneovim-3056115785a435f89d11551e1c8bb4c89c90f610.tar.bz2
rneovim-3056115785a435f89d11551e1c8bb4c89c90f610.zip
refactor: gen_declarations.lua
Problem: gen_declarations.lua is complex and has duplicate logic with c_grammar.lua Solution: Move all lpeg logic to c_grammar.lua and refactor gen_declarations.lua.
Diffstat (limited to 'src/nvim/generators/gen_api_ui_events.lua')
-rw-r--r--src/nvim/generators/gen_api_ui_events.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/generators/gen_api_ui_events.lua b/src/nvim/generators/gen_api_ui_events.lua
index 30a83330eb..a3bb76cb91 100644
--- a/src/nvim/generators/gen_api_ui_events.lua
+++ b/src/nvim/generators/gen_api_ui_events.lua
@@ -98,7 +98,7 @@ local function call_ui_event_method(output, ev)
end
events = vim.tbl_filter(function(ev)
- return ev[1] ~= 'empty'
+ return ev[1] ~= 'empty' and ev[1] ~= 'preproc'
end, events)
for i = 1, #events do