-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Language Shell session tokenizer is broken in web download #2685
Description
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:
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:
A look at the DOM tree of the test drive page shows that the tokenizer doesn't seem to work correctly:


