Skip to content

Commit cb6a253

Browse files
committed
Fix code style, add test for nested conditions
1 parent 9797a67 commit cb6a253

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
An export plugin for stripping comments and "conditional compilation" of GDScript.
44

5-
Version: **1.0-dev**. Compatible with Godot **4.2.x**. Status: should be ready
6-
for production use. Please report if you find any bugs.
5+
Compatible with Godot **4.2.x**. Ready for production use. Please report if you find any bugs.
76

87
## How to use
98

addons/gdscript_preprocessor/export_plugin.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func _get_export_options(_platform: EditorExportPlatform) -> Array[Dictionary]:
3434
},
3535
default_value = "arm,arm32,arm64,arm64-v8a,armeabi,armeabi-v7a,bsd,freebsd" \
3636
+ ",linux,linuxbsd,movie,netbsd,openbsd,system_fonts,web_android" \
37-
+ ",web_ios,web_linuxbsd,web_macos,web_windows"
37+
+ ",web_ios,web_linuxbsd,web_macos,web_windows",
3838
},
3939
]
4040

tests/features/oneline_statements.gd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ func test() -> void:
22
if true: print(1)
33
if false: print(2)
44
if randi(): print(3)
5+
# Does not parse nested conditions.
6+
if true: if false: print(4)

tests/features/oneline_statements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ OK
22
func test() -> void:
33
if true: print(1)
44
if randi(): print(3)
5+
if true: if false: print(4)

0 commit comments

Comments
 (0)