Bash: fix parameter & brace expansion
ClosedPublic

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

Details

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:

Diff Detail

Repository
R216 Syntax Highlighting
Branch
fix-bash
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 2663
Build 2681: arc lint + arc unit
nibags created this revision.Sep 9 2018, 10:27 PM
Restricted Application added projects: Kate, Frameworks. · View Herald TranscriptSep 9 2018, 10:27 PM
Restricted Application added subscribers: kde-frameworks-devel, kwrite-devel. · View Herald Transcript
nibags requested review of this revision.Sep 9 2018, 10:27 PM
nibags edited the summary of this revision. (Show Details)Sep 9 2018, 10:29 PM
nibags edited the summary of this revision. (Show Details)
cullmann accepted this revision.Sep 10 2018, 5:14 AM

Looks better, thanks.

This revision is now accepted and ready to land.Sep 10 2018, 5:14 AM
dhaumann accepted this revision.Sep 10 2018, 5:59 AM

+1, thanks.

nibags closed this revision.Sep 10 2018, 8:10 AM