Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alignedIncrease indention for conditionals except top-level #663

Open
sebthom opened this issue Jan 7, 2023 · 0 comments
Open

alignedIncrease indention for conditionals except top-level #663

sebthom opened this issue Jan 7, 2023 · 0 comments
Labels
enhancement New feature or request indentation Indentation is incorrect

Comments

@sebthom
Copy link

sebthom commented Jan 7, 2023

Describe the Feature

I would like to be able to set the aligned indention behaviour for all #if conditionals that are on top-level of a module, i.e. outside any blocks, but the alignedIncrease indention behaviour for all #if conditionals inside any blocks.

(Optional) Sample of desired output

#if foo
class MyClass extends FooBase {
	static function main() {
		#if travix
			trace("travix"):
		#else
			#if sys
				trace("sys"):
			#elseif js
				trace("js"):
			#elseif flash
				trace("flash"):
			#end
		#end
	}
}
#end
@AlexHaxe AlexHaxe added enhancement New feature or request indentation Indentation is incorrect labels Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request indentation Indentation is incorrect
Projects
None yet
Development

No branches or pull requests

2 participants