Parentheses in optdepends break syntax highlighting in vim
From Pascal Ernster (hardfalcon) via https://bugs.archlinux.org/task/72647:
In PKGBUILD scripts, optdepends() array members may contain parentheses in the text describing what features the respective optdepend is needed for. However, using parentheses currently breaks syntax highlighting since the closing parenthesis inside the descriptive text string is misinterpreted as closing parenthesis for the whole optdepends() array, which in turn results in the closing string delimiter (" or ') being ignored and thus essentially the whole syntax highlighting for the rest of the file going bonkers.
Here are two examples of PKGBUILDs affected by this issue:
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=gnome-shell-extension-emoji-selector-git#n12
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=tilp#n16
Note that the issue only occurs if the optdepends() array is actually matched by the corresponding optdepends syntax highlighting rule, which requires the array to be at the beginning of the line and not being preceded by any whitespace/indention. For this reason, this bug doesn't occur with the following PKGBUILD:
https://github.com/archlinux/svntogit-packages/blob/packages/gvfs/trunk/PKGBUILD#L55