Bash: fix parameter & brace expansion

Authored by nibags on Sep 9 2018, 10:24 PM.

Description

Bash: fix parameter & brace expansion

Summary:
BUG: 387915

Sometimes, the content in braces { ... } is not correctly highlighted, since the RegExpr rule that detects it is very general.

Also, some parameter expressions are added, such as ${parameter^^pattern}, ${parameter,,pattern} & ${parameter@operator} (before, that was highlighted as "Error"). In the expressions ${parameter:offset:length}, spaces are allowed after ":" and +/- signs in numbers.

Source:

Reviewers: cullmann, dhaumann, Framework: Syntax Highlighting

Reviewed By: cullmann, dhaumann, Framework: Syntax Highlighting

Subscribers: kwrite-devel, kde-frameworks-devel

Tags: Kate, Frameworks

Differential Revision: https://phabricator.kde.org/D15390

Details

Committed
nibagsSep 10 2018, 8:10 AM
Reviewer
Framework: Syntax Highlighting
Differential Revision
D15390: Bash: fix parameter & brace expansion
Parents
R216:58ce23f7fdb9: Unit test: Check all shipped themes for completeness
Branches
Unknown
Tags
Unknown