Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

github bash syntax highlighting after loop in subshell var assignment #175

@georgalis

Description

@georgalis

Prerequisites

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions