MrMarble / zmk-viewer

cli tool to generate preview images from a zmk .keymap file
MIT License
139 stars 7 forks source link

unexpected token "behaviors" (expected "keymap" "{" Keymap) #25

Open bebsworthy opened 1 month ago

bebsworthy commented 1 month ago

The parser seems to fail on behaviors definition.

./go/bin/zmk-viewer generate -f wip/sweep-config/config/splitkb_aurora_sweep.keymap cradio --unified
zmk-viewer master
2024-08-15T18:12:21+02:00 INF Fetching keyboard layout.
2024-08-15T18:12:21+02:00 INF Parsing keymap file.
2024-08-15T18:12:21+02:00 ERR error="/Users/xxxx/wip/sweep-config/config/splitkb_aurora_sweep.keymap:22:5: unexpected token \"behaviors\" (expected \"keymap\" \"{\" Keymap)"
2024-08-15T18:12:21+02:00 INF Image saved Path=cradio.png

My keymap is similar to this one but simplified to remove the home row macro: https://github.com/zmkfirmware/zmk/blob/main/app/boards/shields/cradio/cradio.keymap

splitkb_aurora_sweep.keymap.zip