Skip to content

Commit

Permalink
update uosc menu syntax to ignore comments (#65)
Browse files Browse the repository at this point in the history
Sync uosc upstream feature fixes: tomasklaen/uosc@d4b1343
See-Also: #8
  • Loading branch information
dyphire authored Jun 27, 2024
1 parent 7ab8577 commit c237760
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lua/dyn_menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ local function parse_input_conf(conf)
local c = line:match('^%s*#')
if c and (not o.uosc_syntax) then return end
local key, cmd = line:match('%s*([%S]+)%s+(.-)%s*$')
if key and key:match('^#%S+') then return end
return ((o.uosc_syntax and c) and '' or key), cmd
end

Expand Down

0 comments on commit c237760

Please sign in to comment.