Ciantic / keymapceditor

Preview and edit the QMK Firmware keymap.c files from a GUI
http://ciantic.github.io/keymapceditor/
MIT License
45 stars 18 forks source link

"Missing token" Error on several default keyboard layouts. #5

Closed wdpk closed 4 years ago

wdpk commented 4 years ago

For several keyboards, the default layout in the keymap.c attempts to follow the physical pattern of the keys. They include backslashes at the end of the line. The final one between the last key and the closing of the layer parenthesis causes a "missing token" error. Deleting this final backslash seems to resolve the issue. This happens with; IDOBO - my keyboard; these I just selected from the dropdown until there was an error; Hadron Frosty Flake Espectro

The keymap.c compiles and works fine with the backslash.

Ciantic commented 4 years ago

Yes. Currently this is by design. I don't intend to parse C. My parser is very naive. You can just remove the backslash from the end of the line if you wish, it's useless anyway.