Playground
Write .comat and try the highlighting. The editor is Monaco, and the grammar is the same as the VS Code extension's.
The check below is a small version that only looks at bracket matching and the status-code rules (is the code registered, can it have a body). Type resolution, matching path against params, route duplicates and so on are checked by comatype check and the VS Code extension.
// user/[id]/put.comat: PUT /user/:id (the path is decided by where the file is and its name)
import UserData from ../../../types/UserData.comat
import ApiError from ../../../types/common.comat
params {
id: uuidv4,
}
body UserData
s200 UserData
s404 ApiError