summaryrefslogtreecommitdiff
path: root/internal/parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/parse.go')
-rw-r--r--internal/parse.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/parse.go b/internal/parse.go
index 73470ae..70e793e 100644
--- a/internal/parse.go
+++ b/internal/parse.go
@@ -285,10 +285,12 @@ func (par *Parser) pushState(state RuneType) RuneType {
par.stack = append(par.stack, state)
return state
}
+
func (par *Parser) replaceState(state RuneType) RuneType {
par.stack[len(par.stack)-1] = state
return state
}
+
func (par *Parser) popState() {
par.stack = par.stack[:len(par.stack)-1]
}