keymap-editor icon indicating copy to clipboard operation
keymap-editor copied to clipboard

Bindings parser can't handle macro functions with spaces in the params list

Open nickcoutsos opened this issue 1 year ago • 0 comments

The bindings parser finds keycodes that look like "functions" and parses them into a list of parameters.

E.g. LS(F) becomes

{
  "value": "LS",
  "params": [{
    "value": "F",
    "params" []
  }]
}

But the pattern matcher isn't handling spaces correctly, so something like LS( LA(F)) becomes

{
  "value": "LS(",
  "params": []
},
{
  "value": "LA",
  "params": [{
    "value": "F)",
    "params": []
  }]
}

nickcoutsos avatar Jul 26 '22 01:07 nickcoutsos