Merge pull request #15172 from binbitten/issue_15167

Fixed wrong highlighted line when erroring and using comments
This commit is contained in:
Gilles Roudiere 2017-12-30 22:17:11 +09:00 committed by GitHub
commit 9d40688952
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -334,6 +334,7 @@ ShaderLanguage::Token ShaderLanguage::_get_token() {
while (true) { while (true) {
if (GETCHAR(0) == '\n') { if (GETCHAR(0) == '\n') {
tk_line++;
char_idx++; char_idx++;
break; break;
} }