summaryrefslogtreecommitdiff
path: root/state.go
diff options
context:
space:
mode:
authorAdam Scarr <adam@vektah.net>2017-08-13 22:11:27 +1000
committerAdam Scarr <adam@vektah.net>2017-08-13 22:11:27 +1000
commitddb61bdfc034a683f755dec6ddc80627d2d43522 (patch)
tree5d3192d70c5d2a4c62a2be8b8d11de2b0455546b /state.go
parent139e7606f4ab68b469438956c378745f51f7b65b (diff)
Add an Until function
Diffstat (limited to 'state.go')
-rw-r--r--state.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/state.go b/state.go
index 5d35ac8..9d081cf 100644
--- a/state.go
+++ b/state.go
@@ -44,6 +44,10 @@ func UnicodeWhitespace(s *State) {
}
s.Pos += w
}
+}
+
+// NoWhitespace disables automatic whitespace matching
+func NoWhitespace(s *State) {
}