Open AnrDaemon opened 6 years ago
The new types Shell Scripts (POSIX)
and Shell Scripts (bash)
do not color sources at all. Selecting the sh/ksh/bash script
manually will enable coloring as always, but the reported issue remains.
@AnrDaemon could you please provide an example of shell script that is not highlighted?
#!/bin/sh
true
ping?
check latest version.
if something doesn't work yet, then an example is needed.
At this point, the best I can do is to zip an entire base directory. base-2024-05-01.zip
Sorry, I didn't understand the last one. This is your set of schemes, and? Yes, it's old, with something homemade. What should we understand from this?
It's last released schemes with minimal custom additions. All changes are in "auto" directory. But removing them makes no change. Any idea what could be the cause?
Another bit of information I just noticed:
This makes me think the issue is somewhere inside the "Shell (POSIX)" theme, as "Shell (bash)" inherit from it.
which version of far and far colorer is used? the described behavior depends only on them. The schemes have nothing to do with it.
Far 2.0.0.1807 FarColorer 1.0.3.7
Oh, this is a very old version. I find it difficult to say how it works. But according to your description, there are problems with redrawing after selecting a new file type. moving the cursor should help, as an option.
Then my guess is that the new scheme uses something older Colorer do not understand. I'll have to dig out, what is it.
Right now, POSIX shell scripts' highlighting is broken on constructs such as
In short, it does not pick
$( )
capture correctly. If anybody can provide with pointers about fixing it, I would gladly appreciate the help.