From 5d37ebcc02f6ca2ce1ced93f803dd1daf634d866 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Tue, 27 Oct 2026 14:00:49 +0000 Subject: feat(editor): support PP directives in VS Code and Bundle Share preprocessor highlighting through the existing grammar, keep conditional blocks at the ordinary indentation depth, and exercise switches in Bundle's native runner test. Co-Authored-By: Claude Opus 5.5 --- bundle/src-tauri/src/runner.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bundle/src-tauri/src/runner.rs') diff --git a/bundle/src-tauri/src/runner.rs b/bundle/src-tauri/src/runner.rs index f8fa353..e0831e8 100644 --- a/bundle/src-tauri/src/runner.rs +++ b/bundle/src-tauri/src/runner.rs @@ -183,6 +183,12 @@ mod tests { async fn prefilled_input_empty_eof_and_diagnostics() { let runner = Runner::default(); for (program, input, expected, code) in [ + ( + "PP_DEFINE Enabled\nPP_IFDEF Enabled\nOUTPUT 1\nPP_ENDIF\nPP_UNDEF Enabled\nPP_IFNDEF Enabled\nOUTPUT 2\nPP_ENDIF\n", + "", + "1\n2\n", + 0, + ), ( "DECLARE N : INTEGER\nINPUT N\nOUTPUT N\nOUTPUT \"\\U0001F600\"\n", "42\n", -- cgit v1.3.1-4-g156e