[Scummvm-git-logs] scummvm master -> ee0e32a9b41e233964d8ac3f50a9512e7b1f5e5e

scemino noreply at scummvm.org
Thu May 23 07:00:43 UTC 2024


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
ee0e32a9b4 DIRECTOR: Fix several errors in syntax highlighting


Commit: ee0e32a9b41e233964d8ac3f50a9512e7b1f5e5e
    https://github.com/scummvm/scummvm/commit/ee0e32a9b41e233964d8ac3f50a9512e7b1f5e5e
Author: scemino (scemino74 at gmail.com)
Date: 2024-05-23T09:00:30+02:00

Commit Message:
DIRECTOR: Fix several errors in syntax highlighting

Changed paths:
    engines/director/debugtools.cpp


diff --git a/engines/director/debugtools.cpp b/engines/director/debugtools.cpp
index 92d6b49268e..5d829956df9 100644
--- a/engines/director/debugtools.cpp
+++ b/engines/director/debugtools.cpp
@@ -290,6 +290,8 @@ public:
 			setScriptToDisplay(script);
 		}
 		ImGui::SameLine();
+		ImGui::Text(" ");
+		ImGui::SameLine();
 
 		if (node.noParens()) {
 			node.argList->accept(*this);
@@ -315,12 +317,17 @@ public:
 	}
 
 	virtual void visit(const LingoDec::PutStmtNode &node) override {
-		ImGui::TextColored(ImColor(_state->_colors._keyword_color), "put");
+		write(node._startOffset, "put ", _state->_colors._keyword_color);
 		ImGui::SameLine();
 		node.value->accept(*this);
+		ImGui::Text(" ");
+		ImGui::SameLine();
 		ImGui::TextColored(ImColor(_state->_colors._keyword_color), LingoDec::StandardNames::putTypeNames[node.type]);
 		ImGui::SameLine();
-		node.variable->accept(*this); //
+		ImGui::Text(" ");
+		ImGui::SameLine();
+		node.variable->accept(*this);
+		ImGui::NewLine();
 	}
 
 	virtual void visit(const LingoDec::TheExprNode &node) override {
@@ -404,6 +411,7 @@ public:
 		write(node._startOffset, "tell ", _state->_colors._keyword_color);
 		ImGui::SameLine();
 		node.window->accept(*this);
+		ImGui::NewLine();
 		node.block->accept(*this);
 		write(node._endOffset, "end tell", _state->_colors._keyword_color);
 	}
@@ -440,6 +448,8 @@ public:
 	virtual void visit(const LingoDec::ChunkExprNode &node) override {
 		ImGui::Text(LingoDec::StandardNames::chunkTypeNames[node.type]);
 		ImGui::SameLine();
+		ImGui::Text(" ");
+		ImGui::SameLine();
 		node.first->accept(*this);
 		if (!(node.last->type == LingoDec::kLiteralNode && node.last->getValue()->type == LingoDec::kDatumInt && node.last->getValue()->i == 0)) {
 			ImGui::TextColored(ImColor(_state->_colors._keyword_color), " to ");
@@ -563,6 +573,8 @@ public:
 		bool hasCastID = node.castID && !(node.castID->type == LingoDec::kLiteralNode && node.castID->getValue()->type == LingoDec::kDatumInt && node.castID->getValue()->i == 0);
 		ImGui::Text(node.type.c_str());
 		ImGui::SameLine();
+		ImGui::Text(" ");
+		ImGui::SameLine();
 		if (_dot) {
 			ImGui::Text("(");
 			ImGui::SameLine();




More information about the Scummvm-git-logs mailing list