File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -244,6 +244,7 @@ local function write_ecodes_class(path)
244244 " " ,
245245 generated_from ,
246246 " " ,
247+ " -- stylua: ignore" ,
247248 " ---@class evdev.ecodes" ,
248249 fmt (" local M = %s" , stringify (ecodes )),
249250 " " ,
@@ -262,6 +263,7 @@ local function write_ecodes_enums(path)
262263 for prefix , ecodes in spairs (ecodes_by_prefix ) do
263264 if prefixes [prefix ] then
264265 text [# text + 1 ] = " "
266+ text [# text + 1 ] = " -- stylua: ignore"
265267 text [# text + 1 ] = fmt (" ---@enum evdev.ecodes.%s" , prefix :lower ())
266268 text [# text + 1 ] = fmt (" local %s = %s" , prefix , stringify (ecodes ))
267269 end
Original file line number Diff line number Diff line change 22
33-- Generated by "./scripts/generate-ecodes.lua" from "/usr/include/linux/input-event-codes.h"
44
5+ -- stylua: ignore
56--- @enum evdev.ecodes.btn
67local BTN = {
78 BTN_0 = 256 ,
@@ -129,6 +130,7 @@ local BTN = {
129130 BTN_Z = 309
130131}
131132
133+ -- stylua: ignore
132134--- @enum evdev.ecodes.ev
133135local EV = {
134136 EV_ABS = 3 ,
@@ -147,6 +149,7 @@ local EV = {
147149 EV_SYN = 0
148150}
149151
152+ -- stylua: ignore
150153--- @enum evdev.ecodes.key
151154local KEY = {
152155 KEY_0 = 11 ,
@@ -672,6 +675,7 @@ local KEY = {
672675 KEY_ZOOMRESET = 420
673676}
674677
678+ -- stylua: ignore
675679--- @enum evdev.ecodes.rel
676680local REL = {
677681 REL_CNT = 16 ,
@@ -691,6 +695,7 @@ local REL = {
691695 REL_Z = 2
692696}
693697
698+ -- stylua: ignore
694699--- @enum evdev.ecodes.syn
695700local SYN = {
696701 SYN_CNT = 16 ,
Original file line number Diff line number Diff line change 22
33-- Generated by "./scripts/generate-ecodes.lua" from "/usr/include/linux/input-event-codes.h"
44
5+ -- stylua: ignore
56--- @class evdev.ecodes
67local M = {
78 BTN_0 = 256 ,
You can’t perform that action at this time.
0 commit comments