#3707 Broken shell syntax highlighting
Closed: Fixed 6 years ago Opened 6 years ago by netvor.

My shell script, which starts like this:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

shellfu import pretty


uripecker() {
    #
    # Scan stdin for what looks like URI, ID or keyword
    #
    # Usage:
    #     <SOURCE_TEXT uripecker MAP
    #
    # Search through SOURCE_TEXT and output in following order:
    #
    #  1. apparent URIs,
    #  2. hash IDs ("bug#1234"),
    #  3. equal sign expressions ("bug = 1234"),
    #  4. "tags" ("bug1234")
    #  5. keyword expressions ("BUG 1234" or "g hello world"),
    #
[...]

renders incorrectly (could not upload png, see one at my server):

  • does not make use of shebang line,
  • highlights incorrectly (incorrect words)
  • hides away part of the comment (the text contains <).

I believe this has been fixed by @ryanlerch in https://pagure.io/pagure/pull-request/3729

Let's reopen this ticket if that is not the case after the next release.

Thanks!

Metadata Update from @pingou:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

6 years ago

Metadata Update from @pingou:
- Issue set to the milestone: 5.1
- Issue tagged with: bug

6 years ago

Log in to comment on this ticket.

Metadata