Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shell variable with remove prefix is visually commented out because of "#" #1518

Open
tobias992 opened this issue Sep 11, 2023 · 0 comments
Open
Labels
better to fix unwanted behaviors better to fix syntax highlight issues related to syntax highlighting

Comments

@tobias992
Copy link

Description

Hi,
in my scripts i use code like that to remove a prefix from a variable:

mystring="test_12345"
echo ${mystring#test_}

CotEditor interpret the "#" as an comment and commented the rest of that line out. Maybe there is a way to improve the syntax inspector. Easy workaround is to use "echo ${mystring/test_/}".

To Reproduce

mystring="test_12345"
echo ${mystring#test_}

#test_} -> will be commented out from design

Expected behavior

No response

CotEditor version

4.5.9

macOS version

13.5.2

Additional context

No response

@tobias992 tobias992 added the potential bug issues not yet tested label Sep 11, 2023
@1024jp 1024jp added the syntax highlight issues related to syntax highlighting label Sep 12, 2023
@1024jp 1024jp added better to fix unwanted behaviors better to fix and removed potential bug issues not yet tested labels Oct 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
better to fix unwanted behaviors better to fix syntax highlight issues related to syntax highlighting
Development

No branches or pull requests

2 participants