From 55abb4f6f81fc370e349385b38dffb05fa9d5dcb Mon Sep 17 00:00:00 2001
From: Ferenc Szontágh <szf@fsociety.hu>
Date: Sat, 19 Apr 2025 20:36:38 +0000
Subject: [PATCH] add vscodium / vscode and vim syntax highlight

---
 src/Parser/Parser.cpp |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/Parser/Parser.cpp b/src/Parser/Parser.cpp
index d475d46..f940642 100644
--- a/src/Parser/Parser.cpp
+++ b/src/Parser/Parser.cpp
@@ -927,8 +927,14 @@
                 }
             }
             expect(Lexer::Tokens::Type::PUNCTUATION, ")");
-            // Create call expression node
-            output_queue.push_back(ParsedExpression::makeCall(func_name, std::move(call_args)));
+            // Create call expression node with source location
+            {
+                auto pe = ParsedExpression::makeCall(func_name, std::move(call_args));
+                pe->filename = this->current_filename_;
+                pe->line = token.line_number;
+                pe->column = token.column_number;
+                output_queue.push_back(std::move(pe));
+            }
             expect_unary = false;
         } else if (token.type == Lexer::Tokens::Type::OPERATOR_ARITHMETIC ||
                    token.type == Lexer::Tokens::Type::OPERATOR_RELATIONAL ||

--
Gitblit v1.9.3