function pushStack(state, indent, type) {
        state.indentStack = new stateStack(indent, type, state.indentStack);
    }
Author: Koh Zi Han, based on implementation by Koh Zi Chun
Improved by: Jakub T. Jankiewicz