aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2026-02-15 05:49:13 +0000
committerLi Jin <dragon-fly@qq.com>2026-02-15 07:36:30 +0000
commitcf5b1b4a68d762e6e33cac8367611ecea15fa942 (patch)
tree25de1a4113d26882c0135e38b7ff166efbc39969 /src
parentecd8f3bfd07e91d04e0a2d72f4a50f9cc6c75433 (diff)
downloadyuescript-cf5b1b4a68d762e6e33cac8367611ecea15fa942.tar.gz
yuescript-cf5b1b4a68d762e6e33cac8367611ecea15fa942.tar.bz2
yuescript-cf5b1b4a68d762e6e33cac8367611ecea15fa942.zip
Add goto statement documentation and testsHEADmain
- Added goto.md documentation files in all languages (en, de, zh, pt-br, id-id) - Updated conditionals.md to include goto statement references - Updated VitePress config to include new goto documentation pages - Updated makefile for goto documentation compilation - Added test outputs for goto examples in all languages - Updated yue.cpp core implementation Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src')
-rw-r--r--src/yue.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/yue.cpp b/src/yue.cpp
index a30075d..0493205 100644
--- a/src/yue.cpp
+++ b/src/yue.cpp
@@ -264,7 +264,9 @@ static std::string compileFile(const fs::path& file, yue::YueConfig conf, const
264 return "Failed to read file: "s + srcFile.string() + '\n'; 264 return "Failed to read file: "s + srcFile.string() + '\n';
265 } 265 }
266} 266}
267#endif // YUE_NO_WATCHER
267 268
269#ifndef YUE_NO_WATCHER
268class UpdateListener : public efsw::FileWatchListener { 270class UpdateListener : public efsw::FileWatchListener {
269public: 271public:
270 void handleFileAction(efsw::WatchID, const std::string& dir, const std::string& filename, efsw::Action action, std::string) override { 272 void handleFileAction(efsw::WatchID, const std::string& dir, const std::string& filename, efsw::Action action, std::string) override {