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 --- plugin/examples/highlighting.cps | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'plugin/examples/highlighting.cps') diff --git a/plugin/examples/highlighting.cps b/plugin/examples/highlighting.cps index 10d93d8..a7ec8c6 100644 --- a/plugin/examples/highlighting.cps +++ b/plugin/examples/highlighting.cps @@ -75,3 +75,13 @@ ENDCLASS DECLARE Count : Counter CALL Count.Add(Limit) OUTPUT Count.Get() + +// Preprocessor conditions do not add indentation. +PP_DEFINE Demo +PP_IFDEF Demo +OUTPUT "Enabled" +PP_IFNDEF OtherDemo +OUTPUT "Nested condition" +PP_ENDIF +PP_ENDIF +PP_UNDEF Demo -- cgit v1.3.1-4-g156e