Geany: Bash files syntax highlight

Created on 8 Apr 2018  路  5Comments  路  Source: geany/geany

In geany .sh file have a syntax highlighting that's not quite good, compared i.e. to other editors like sublime. In particular when you have $(...) things inside the parenthesis are all colored in red.
Geany version: 1.31
Color combination: default
GTK version: 2.24.31
O.S.: Ubuntu 17.10
filetype: .sh

filetype scintilla

Most helpful comment

@elextr I think @surveyor3 is complaining that the syntax inside of $() is not highlighted specifically, but only as a single $() block. In shell, $() is a command substitution, so the content inside it could be highlighted as normal syntax.

This is a Scintilla lexer limitation, see https://sourceforge.net/p/scintilla/feature-requests/1033/

All 5 comments

If you don't like the colours you can choose another colour scheme from those contributed by others or make your own.

@elextr I think @surveyor3 is complaining that the syntax inside of $() is not highlighted specifically, but only as a single $() block. In shell, $() is a command substitution, so the content inside it could be highlighted as normal syntax.

This is a Scintilla lexer limitation, see https://sourceforge.net/p/scintilla/feature-requests/1033/

In shell, $() is a command substitution, so the content inside it could be highlighted as normal syntax.

Oh, I thought it was just the orange that was the problem, ok.

Yes, it's not about the color itself but is about the thing that inside is all highlighted with the same color and it's not correct.
I did a screenshot to show you the issue.
schermata del 2018-04-09 23-45-20

Thanks for the attention and for all the good work in Geany.

I posted a PR in the scintilla project to fix this, see https://sourceforge.net/p/scintilla/code/merge-requests/22.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dandv picture dandv  路  6Comments

mrkaban picture mrkaban  路  5Comments

esotericpig picture esotericpig  路  4Comments

fyah picture fyah  路  4Comments

makitso picture makitso  路  16Comments