We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Curly brackets ({ and }) tend to mess up indentation when pasted or typed in a zephir file.
{
}
For these examples, all code can be pasted inside an empty class to provide one level of indentation.
class Test { // here }
In the following snippets, the curly brackets and the code in between gets a wrong indentation level:
Pasted code:
function abc() { }
Result:
class Test { function abc() { } }
if a == b { }
class Test { if a == b { } }
loop { }
class Test { loop { } }
However, if brackets are used in an if construct, the indentation level is as expected:
if(a == b) { }
class Test { if(a == b) { } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Curly brackets (
{
and}
) tend to mess up indentation when pasted or typed in a zephir file.For these examples, all code can be pasted inside an empty class to provide one level of indentation.
In the following snippets, the curly brackets and the code in between gets a wrong indentation level:
Pasted code:
Result:
Pasted code:
Result:
Pasted code:
Result:
However, if brackets are used in an if construct, the indentation level is as expected:
Pasted code:
Result:
The text was updated successfully, but these errors were encountered: