Indentation "lagging" one level

What happened?

I am trying to edit some script for the Tintin++ mud client, and auto-indentation lags behind one level.

Only thing I have altered from install is adding this to config.el, it’s a syntax highlighter.

(package! tintin-mode
           :recipe (:host github :repo "matthewrsilver/tintin-mode"))

I still get the same behaviour without tintin-mode enabled.

Output I get.

#function {foo} {
    #if {"$bar" == "1"} {
        #if {"$baz" == "2"} {
            #echo {Hello}
    }
}
}

What did you expect to happen?

#function {foo} {
    #if {"$bar" == "1"} {
        #if {"$baz" == "2"} {
            #echo {Hello}
        }
    }
}

Steps to reproduce

| denotes cursor position, bold autofilled by Doom.

  1. #function {foo} {|}
  2. Hit enter and you get
#function {foo} {
    |
}
  1. Repeat the command for it to show

System information


Loading data dump...