Some more error debugging for indentation fun. (0.37.19)
This commit is contained in:
parent
689a716499
commit
bfe1926fe6
2 changed files with 22 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
cmake_minimum_required(VERSION 3.10)
|
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 99)
|
||||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||||
|
|
|
||||||
21
examples/error/test_indent.fun
Normal file
21
examples/error/test_indent.fun
Normal file
|
|
@ -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 <you@hanez.org>
|
||||||
|
* 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
|
||||||
|
*/
|
||||||
Loading…
Add table
Add a link
Reference in a new issue