diff --git a/src/main/resources/org/sablecc/sablecc/lexer.txt b/src/main/resources/org/sablecc/sablecc/lexer.txt
index 6f1938cf42987a992ae4e9eaa05fd07b3334ba0c..45b66df4c821749ffe3798113f5bb08a782eb511 100644
--- a/src/main/resources/org/sablecc/sablecc/lexer.txt
+++ b/src/main/resources/org/sablecc/sablecc/lexer.txt
@@ -39,8 +39,8 @@ public class Lexer implements ITokenListContainer
     protected State state = State.$2$;
 
     private PushbackReader in;
-    private int line;
-    private int pos;
+    protected int line;
+    protected int pos;
     private boolean cr;
     private boolean eof;
     private final StringBuffer text = new StringBuffer();