aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/StyleContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'lexlib/StyleContext.h')
-rw-r--r--lexlib/StyleContext.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lexlib/StyleContext.h b/lexlib/StyleContext.h
index 319f51088..2c010645b 100644
--- a/lexlib/StyleContext.h
+++ b/lexlib/StyleContext.h
@@ -176,6 +176,12 @@ public:
Forward();
}
}
+ void ForwardBytes(int nb) {
+ size_t forwardPos = currentPos + nb;
+ while (forwardPos > currentPos) {
+ Forward();
+ }
+ }
void ChangeState(int state_) {
state = state_;
}