Tact Grammar Files

Main Tact grammar is defined in OHM (opens in a new tab), but alternative grammars that are useful for editors are defined too.

Example of code highlight using current Textmate grammar:

import "@stdlib/ownable";
struct SampleStruct {
    message: Int as uint32;
message(0x1234) MyMessage {
    data: SampleStruct;
trait MyTrait {
    get fun traitState(): Int {
        return 0;
contract MyContract with MyTrait, Ownable {
    owner: Address;
    init(owner: Address) {
        self.owner = owner;