Browse Source

Update lexer.h

blueloveTH 2 years ago
parent
commit
acf0e16cbb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/pocketpy/lexer.h

+ 1 - 1
include/pocketpy/lexer.h

@@ -104,7 +104,7 @@ struct Lexer {
     const char* curr_char;
     const char* curr_char;
     int current_line = 1;
     int current_line = 1;
     std::vector<Token> nexts;
     std::vector<Token> nexts;
-    stack<int> indents;
+    stack_no_copy<int, pod_vector<int>> indents;
     int brackets_level = 0;
     int brackets_level = 0;
     bool used = false;
     bool used = false;