Skip to content

Language Shell session tokenizer is broken in web download #2685

@r0the

Description

@r0the

Information:

  • Prism version: 1.22, 1.23
  • Plugins: Custom Class, Keep Markup
  • Environment: Browser

Description

The language "Shell session" doesn't seem to tokenize correctly anymore. I experienced this problem both with 1.22 and 1.23 from the download page. With an earlier download of version 1.22, the highlighting of shell session works fine.

Since the behaviour changed between two different downloads of version 1.22, I assume that there was some change in the download generation code that breaks the tokenizer of the shell session language.

The behaviour of both minified and development downloads ist the same.

Example

This is the example used:

/home/user$ echo "Hello World"
Hello World
/home/user$ exit

With a Prism version 1.22 downloaded soon after Oct 10, 2020, the highlighting works fine:

Bildschirmfoto 2021-01-01 um 15 04 45

With a more recent download of 1.22, a download of 1.23 and also on the Prism Test drive page, the highlighting doesn't
work anymore. This is a screen shot of the test drive page with language "shell session" selected:

Bildschirmfoto 2021-01-01 um 15 05 04

A look at the DOM tree of the test drive page shows that the tokenizer doesn't seem to work correctly:

Bildschirmfoto 2021-01-01 um 15 13 45

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions