From cee8080379ea2719345245eb69fc1b1cec585462 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 1 Mar 2021 17:39:07 +0200 Subject: [PATCH] Fix an issue with line numbers after #line being off-by-one I had added the flag for this back in 1083ad1 but forgot to use it. --- source/glsl/tokenizer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/glsl/tokenizer.cpp b/source/glsl/tokenizer.cpp index 6ba139ff..057aa342 100644 --- a/source/glsl/tokenizer.cpp +++ b/source/glsl/tokenizer.cpp @@ -61,6 +61,7 @@ void Tokenizer::expect(const string &token) void Tokenizer::set_location(const Location &loc) { location = loc; + suppress_line_advance = true; } string Tokenizer::parse_token_() -- 2.45.2