From bfe1926fe6252a281c6c961a105f6475edfb3871 Mon Sep 17 00:00:00 2001 From: hanez Date: Wed, 24 Dec 2025 00:49:25 +0100 Subject: [PATCH] Some more error debugging for indentation fun. (0.37.19) --- CMakeLists.txt | 2 +- examples/error/test_indent.fun | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 examples/error/test_indent.fun diff --git a/CMakeLists.txt b/CMakeLists.txt index 8118674..1f21240 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.10) -project(fun VERSION 0.37.18 LANGUAGES C) +project(fun VERSION 0.37.19 LANGUAGES C) set(CMAKE_C_STANDARD 99) set(CMAKE_C_STANDARD_REQUIRED ON) diff --git a/examples/error/test_indent.fun b/examples/error/test_indent.fun new file mode 100644 index 0000000..a052832 --- /dev/null +++ b/examples/error/test_indent.fun @@ -0,0 +1,21 @@ +#!/usr/bin/env fun + +/* + * This file is part of the Fun programming language. + * https://fun-lang.xyz/ + * + * Copyright 2025 Johannes Findeisen + * Licensed under the terms of the Apache-2.0 license. + * https://opensource.org/license/apache-2-0 + * + * Added: 2025-12-24 + */ + +if (true) + print("This should fail if 4 spaces are not allowed") +else + print("This is 2 spaces") + +/* Expected output: +This should fail if 4 spaces are not allowed +*/