diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-26 22:51:06 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-26 22:51:06 +0100 |
commit | c250f6eeb6c7c3bd0936cd9c4abc7162d02db5d8 (patch) | |
tree | f06c5cda18da0336b375b7f8e5d527216c573a13 /servers/rendering/shader_preprocessor.h | |
parent | 0a199732455fa373f6c90ce84acd250df43ab01e (diff) | |
parent | 6f5598979f35a206456523f3d54e97be64ae6bf8 (diff) |
Merge pull request #72058 from bitsawer/shader_preprocessor_fixes
Several shader preprocessor parser fixes and improvements
Diffstat (limited to 'servers/rendering/shader_preprocessor.h')
-rw-r--r-- | servers/rendering/shader_preprocessor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/rendering/shader_preprocessor.h b/servers/rendering/shader_preprocessor.h index 6e5533c575..2b7d2c274e 100644 --- a/servers/rendering/shader_preprocessor.h +++ b/servers/rendering/shader_preprocessor.h @@ -93,11 +93,13 @@ private: int get_line() const; int get_index() const; char32_t peek(); + int consume_line_continuations(int p_offset); void get_and_clear_generated(Vector<Token> *r_out); void backtrack(char32_t p_what); LocalVector<Token> advance(char32_t p_what); void skip_whitespace(); + bool consume_empty_line(); String get_identifier(bool *r_is_cursor = nullptr, bool p_started = false); String peek_identifier(); Token get_token(); |