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

broken syntax highlighting of bash #3881

Closed
mc-butler opened this issue Nov 27, 2017 · 4 comments
Closed

broken syntax highlighting of bash #3881

mc-butler opened this issue Nov 27, 2017 · 4 comments
Labels
area: mcedit mcedit, the built-in text editor prio: medium Has the potential to affect progress ver: 4.8.19 Reproducible in version 4.8.19

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/3881
Reporter xmlich02 (xmlich02@….fit.vutbr.cz)
Keywords highlighting

By the way, the trac version combobox doesn't allow selection of '4.8.20'.

Create an bash script:

echo "hello world"
res="$(ls "-1" "$(pwd)")"
echo "hello world"

Second hello world is highlighted incorrectly. You can compare highlighting with vim or other editor as well. See attached screenshot

[jmlich@jmlich-dell Desktop$ mcedit -V
GNU Midnight Commander 4.8.20
Built with GLib 2.48.2
Using the S-Lang library with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, sftpfs, fish, smbfs
Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;
[jmlich@jmlich-dell Desktop$ mcedit ./highlight.sh

Note

Original attachments:

  • highlight.sh (raw) by xmlich02 (xmlich02@….fit.vutbr.cz) on Nov 27, 2017 at 15:32 UTC
  • highlight.png (raw) by xmlich02 (xmlich02@….fit.vutbr.cz) on Nov 27, 2017 at 15:32 UTC
@mc-butler
Copy link
Author

Changed by xmlich02 (xmlich02@….fit.vutbr.cz) on Nov 27, 2017 at 15:32 UTC

reproducer

@mc-butler
Copy link
Author

Changed by xmlich02 (xmlich02@….fit.vutbr.cz) on Nov 27, 2017 at 15:32 UTC

screenshot

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Nov 27, 2017 at 17:10 UTC (comment 1)

  • Milestone Future Releases deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Closed as duplicate of #2142.

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Feb 29, 2020 at 6:33 UTC (comment 2)

  • Description edited

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: mcedit mcedit, the built-in text editor prio: medium Has the potential to affect progress ver: 4.8.19 Reproducible in version 4.8.19
Development

No branches or pull requests

1 participant