Skip to content

Ignore indentation for shiftwidth in comment blocks (phpdoc style) #3

@blueyed

Description

@blueyed

The following code should not set shiftwidth=1, based on the indentation of the multiline doc block, but only consider the "outer" level of the doc block.

<?php
/**
 * foo
 */

function foo() {
  bar();
}

Looking at the syntax of this block (on line 3) shows:
group: phpComment->Comment guifg=244(244) guibg=-1(-1)

(via SyntaxAttr script, https://github.com/vim-scripts/SyntaxAttr.vim)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions