Skip to content

Commit c237760

Browse files
authored
update uosc menu syntax to ignore comments (#65)
Sync uosc upstream feature fixes: tomasklaen/uosc@d4b1343 See-Also: #8
1 parent 7ab8577 commit c237760

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lua/dyn_menu.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,7 @@ local function parse_input_conf(conf)
565565
local c = line:match('^%s*#')
566566
if c and (not o.uosc_syntax) then return end
567567
local key, cmd = line:match('%s*([%S]+)%s+(.-)%s*$')
568+
if key and key:match('^#%S+') then return end
568569
return ((o.uosc_syntax and c) and '' or key), cmd
569570
end
570571

0 commit comments

Comments
 (0)