Add string-cont lineup function which detect equal sign or dot#211
Closed
Abdillah wants to merge 1 commit into
Closed
Add string-cont lineup function which detect equal sign or dot#211Abdillah wants to merge 1 commit into
Abdillah wants to merge 1 commit into
Conversation
Collaborator
|
Thank you for the patch. I merged it as commit 6baad9e. |
syohex
added a commit
to syohex/php-mode
that referenced
this pull request
Jan 28, 2015
- Fix byte compile warnings - Add unit test - Correct dot case '(re-search-forward ".")' makes no sense. Because '.' matches any single character. - Simplify the code
ejmr
pushed a commit
that referenced
this pull request
Jan 29, 2015
zonuexe
added a commit
that referenced
this pull request
Jul 16, 2026
Resolve the indentation behaviours that were deferred when the cc-mode independent engine was first ported from js.el: * php-indent--skip-term-backward now skips comments and newlines between chain links, so a `->' chain aligns to the first `->' even when comment lines are interleaved (issues #115, #135). * A chain rooted in a `::' static access is no longer aligned to the operator; like CC Mode it is treated as a plain statement continuation, and inside argument lists it is indented as an ordinary element without the continued-expression bonus (php-indent--static-chain-in-list-p). * New php-indent--statement-continuation-indentation indents lines that continue an unterminated statement (stacked member modifiers, a lone `extends', a broken `return'/`yield', a return-type `):') one php-indent-offset beyond the statement's first line. * New php-indent--concat-continuation-indentation aligns a leading `.' string-concatenation line to the `=' of the assignment it continues (issue #211). * When a brace is preceded by a parameter/condition list, the bracket indentation now anchors to the start of the whole statement, which may lie on an earlier line than the `(' (namespace-block fixture). * php-indent-chain-indent is no longer set buffer-locally by the coding styles; like the old php-mode-lineup-cascaded-calls it is a plain global user option (issues #237, #623).
zonuexe
added a commit
that referenced
this pull request
Jul 16, 2026
Resolve the indentation behaviours that were deferred when the cc-mode independent engine was first ported from js.el: * php-indent--skip-term-backward now skips comments and newlines between chain links, so a `->' chain aligns to the first `->' even when comment lines are interleaved (issues #115, #135). * A chain rooted in a `::' static access is no longer aligned to the operator; like CC Mode it is treated as a plain statement continuation, and inside argument lists it is indented as an ordinary element without the continued-expression bonus (php-indent--static-chain-in-list-p). * New php-indent--statement-continuation-indentation indents lines that continue an unterminated statement (stacked member modifiers, a lone `extends', a broken `return'/`yield', a return-type `):') one php-indent-offset beyond the statement's first line. * New php-indent--concat-continuation-indentation aligns a leading `.' string-concatenation line to the `=' of the assignment it continues (issue #211). * When a brace is preceded by a parameter/condition list, the bracket indentation now anchors to the start of the whole statement, which may lie on an earlier line than the `(' (namespace-block fixture). * php-indent-chain-indent is no longer set buffer-locally by the coding styles; like the old php-mode-lineup-cascaded-calls it is a plain global user option (issues #237, #623).
zonuexe
added a commit
that referenced
this pull request
Jul 16, 2026
Resolve the indentation behaviours that were deferred when the cc-mode independent engine was first ported from js.el: * php-indent--skip-term-backward now skips comments and newlines between chain links, so a `->' chain aligns to the first `->' even when comment lines are interleaved (issues #115, #135). * A chain rooted in a `::' static access is no longer aligned to the operator; like CC Mode it is treated as a plain statement continuation, and inside argument lists it is indented as an ordinary element without the continued-expression bonus (php-indent--static-chain-in-list-p). * New php-indent--statement-continuation-indentation indents lines that continue an unterminated statement (stacked member modifiers, a lone `extends', a broken `return'/`yield', a return-type `):') one php-indent-offset beyond the statement's first line. * New php-indent--concat-continuation-indentation aligns a leading `.' string-concatenation line to the `=' of the assignment it continues (issue #211). * When a brace is preceded by a parameter/condition list, the bracket indentation now anchors to the start of the whole statement, which may lie on an earlier line than the `(' (namespace-block fixture). * php-indent-chain-indent is no longer set buffer-locally by the coding styles; like the old php-mode-lineup-cascaded-calls it is a plain global user option (issues #237, #623).
zonuexe
added a commit
that referenced
this pull request
Jul 16, 2026
Resolve the indentation behaviours that were deferred when the cc-mode independent engine was first ported from js.el: * php-indent--skip-term-backward now skips comments and newlines between chain links, so a `->' chain aligns to the first `->' even when comment lines are interleaved (issues #115, #135). * A chain rooted in a `::' static access is no longer aligned to the operator; like CC Mode it is treated as a plain statement continuation, and inside argument lists it is indented as an ordinary element without the continued-expression bonus (php-indent--static-chain-in-list-p). * New php-indent--statement-continuation-indentation indents lines that continue an unterminated statement (stacked member modifiers, a lone `extends', a broken `return'/`yield', a return-type `):') one php-indent-offset beyond the statement's first line. * New php-indent--concat-continuation-indentation aligns a leading `.' string-concatenation line to the `=' of the assignment it continues (issue #211). * When a brace is preceded by a parameter/condition list, the bracket indentation now anchors to the start of the whole statement, which may lie on an earlier line than the `(' (namespace-block fixture). * php-indent-chain-indent is no longer set buffer-locally by the coding styles; like the old php-mode-lineup-cascaded-calls it is a plain global user option (issues #237, #623).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The indentation of string continuation based on equal or dot on the previous line.