This repository was archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 72
github bash syntax highlighting after loop in subshell var assignment #175
Copy link
Copy link
Open
Description
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- N/A Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- N/A Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
on shell code uploaded to github, https://github.com/georgalis/pub/blob/master/sub/fn.bash#L815
fs="$(sed -e 's/^\.\///' <<<"$fs" | while IFS= read f ; do [ -f "${f%%/*}" ] && echo "${f%%/*}" || true ; done)"
for p in {0..31} ; do # iterate on each major base 32
b="$(base 32 $p)"
...done is expected rendered as red, and subsequent code looses syntax highlighting as well.
Steps to Reproduce
Upload the fs line above to github with some subsequent code, view result.
Expected behavior:
syntax rainbow that is the code
Actual behavior:
cyan
Reproduces how often:
see above example to reproduce
Versions
I am seeing rendering on github site, not using Atom directly.
Additional Information
vim doesn't have the problem. Is bourne, ksh and bash all highlighted the same way?
Metadata
Metadata
Assignees
Labels
No labels