Skip to content

Commit b45f248

Browse files
author
Danny Milosavljevic
committedDec 16, 2022
Scanner: Add sensible defaults.
1 parent 0dc2cb2 commit b45f248

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎lib/Builtins/Scanners/Scanner

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ protected:
4343
int line_number;
4444
int column_number;
4545
char* input_name;
46-
int backtracking_column_numbers[5]; /* last is dummy */
47-
bool backtracking_beginning_of_line[5]; /* last is dummy */
48-
bool B_honor_indentation;
49-
bool B_beginning_of_line;
46+
int backtracking_column_numbers[5] = {0, 0, 0, 0, 0}; /* last is dummy */
47+
bool backtracking_beginning_of_line[5] = {false, false, false, false, false}; /* last is dummy */
48+
bool B_honor_indentation = true;
49+
bool B_beginning_of_line = true;
5050
int brace_level; // non-indentation braces.
5151
std::list<std::pair<int, int> > open_indentations; // line and column number.
5252
void update_indentation();

0 commit comments

Comments
 (0)