token_add_state_ids.lua 285 Bytes
Newer Older
saalen's avatar
saalen committed
1

saalen's avatar
saalen committed
2
Description="Add internal state IDs behind each token (for debugging)."
saalen's avatar
saalen committed
3

4 5
Categories = {"debug" }

saalen's avatar
saalen committed
6 7
function syntaxUpdate(desc)
  function Decorate(token, state)
saalen's avatar
saalen committed
8
    return token .. ' ('.. string.format("%d",state) .. ')'
saalen's avatar
saalen committed
9 10 11 12 13 14 15 16
  end
end

Plugins={

  { Type="lang", Chunk=syntaxUpdate },

}