jeff-hykin / better-shell-syntax

💾 📦 ♻️ An improvement to the shell syntax for VS Code
MIT License
50 stars 4 forks source link

Using parenthesis instead of curly braces for function body breaks further syntax highlighting #49

Closed alexr00 closed 1 year ago

alexr00 commented 1 year ago

The code with a problem is (notice lines 3 and 5 where ( and ) are used instead of { and }):

#!/bin/sh

_get_current_ip() (
    curl -s -f "https://avacyn.aerium.hr/ip" || exit 1
)

_ctype="Content-Type: application/json"

It looks like:

image

It should look like:

image

From @karabaja4 in https://github.com/microsoft/vscode/issues/176190#issuecomment-1455251249

jeff-hykin commented 1 year ago

just recently fixed! (duplicate of #45 ) v1.4.3