2072 / 2072/PHP-Indenting-for-VIm

variable assignment spanning multiple lines

Open Beginner friendly
#84 1 comment 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
Vim Script
Stars
130
Forks
29
PR merge metrics
No merged PRs in 30d

Description

Hello,

Indenting is missed on multi-line variable assignment, eg. for something like this I would expect the second and third line to indent:

```
$sql = "select something "
. "from somewhere "
. "where conditions=match";
```

Is there a way to configure that to happen?

Thanks...

Contributor guide

No contributing guide indexed for this repository

Research direction

Look at the Vim indent script for PHP, likely in the repository's main indent file. The issue is about multi-line string concatenation with the dot operator. Test the current behavior with the provided example, then examine the indentation rules for line continuations. Check if there's a configuration option or if a rule needs to be added. Verify by editing the script and testing in Vim.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, vim
Domain
devtools
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.