aboutsummaryrefslogtreecommitdiff
path: root/plugin/examples
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/examples')
-rw-r--r--plugin/examples/highlighting.cps10
1 files changed, 10 insertions, 0 deletions
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