Skip to content

Folding on "if" in Comments #47

@timkite

Description

@timkite

Currently, if you put the word "if" in a comment with the Shell Script grammar active, TextMate will erroneously put a code folding start mark at that comment. This has an easy fix which I think is correct and doesn't seem to have any nasty side-effects.

Current Settings -> Folding:
{ foldingStartMarker = '\b(if|case)\b|(\{|\b(do)\b)$';
foldingStopMarker = '^\s*(\}|(done|fi|esac)\b)';
}

Proposed Settings-> Folding:
{ foldingStartMarker = '^\s*\b(if|case)\b|(\{|\b(do)\b)$';
foldingStopMarker = '^\s*(\}|(done|fi|esac)\b)';
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions