feat: updated engine
This commit is contained in:
parent
cbe99774ff
commit
f4cf6b3999
6607 changed files with 910135 additions and 430025 deletions
|
|
@ -165,8 +165,13 @@ public:
|
|||
|
||||
Type type = EMPTY;
|
||||
Variant literal;
|
||||
int start_line = 0, end_line = 0, start_column = 0, end_column = 0;
|
||||
int cursor_position = -1;
|
||||
// The parser positions errors based on the previous token. This needs to
|
||||
// be default initialized so that errors on the first token don't access
|
||||
// uninitialized memory.
|
||||
int start_line = 1;
|
||||
int start_column = 1;
|
||||
int end_line = 1;
|
||||
int end_column = 1;
|
||||
CursorPlace cursor_place = CURSOR_NONE;
|
||||
String source;
|
||||
|
||||
|
|
@ -225,13 +230,16 @@ class GDScriptTokenizerText : public GDScriptTokenizer {
|
|||
String source;
|
||||
const char32_t *_source = nullptr;
|
||||
const char32_t *_current = nullptr;
|
||||
int line = -1, column = -1;
|
||||
int cursor_line = -1, cursor_column = -1;
|
||||
int line = 1;
|
||||
int column = 1;
|
||||
int cursor_line = -1;
|
||||
int cursor_column = -1;
|
||||
int tab_size = 4;
|
||||
|
||||
// Keep track of multichar tokens.
|
||||
const char32_t *_start = nullptr;
|
||||
int start_line = 0, start_column = 0;
|
||||
int start_line = 1;
|
||||
int start_column = 1;
|
||||
|
||||
// Info cache.
|
||||
bool line_continuation = false; // Whether this line is a continuation of the previous, like when using '\'.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue