Skip to content

Shell session: Commands prefixed with a path are now detected#2686

Merged
RunDevelopment merged 2 commits intoPrismJS:masterfrom
RunDevelopment:shell-session-path-fix
Jan 1, 2021
Merged

Shell session: Commands prefixed with a path are now detected#2686
RunDevelopment merged 2 commits intoPrismJS:masterfrom
RunDevelopment:shell-session-path-fix

Conversation

@RunDevelopment
Copy link
Copy Markdown
Member

This fixes #2685.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 1, 2021

JS File Size Changes (gzipped)

A total of 1 files have changed, with a combined diff of +3 B (+0.7%).

Details
file master pull size diff % diff
components/prism-shell-session.min.js 460 B 463 B +3 B +0.7%

Generated by 🚫 dangerJS against a9a67ad

["builtin", "exit"]
]]
]]
] No newline at end of file
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: new line

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used the npm run test:languages -- --accept command to insert the token stream. With or without final new line, I don't mind, but if it's something that bothers you, then I'll change the implementation.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol it doesn't really bother me but I've noticed you making that change elsewhere so I figured we wanted consistency.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh kk. I only make that change everywhere because I configured my IDE that way.

If we really want that consistency, then I'll just reformat all test files. Only takes a second but will probably change ~500 files. Maybe it's not that necessary.

Copy link
Copy Markdown
Member

@mAAdhaTTah mAAdhaTTah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gtg w/ nit

@RunDevelopment RunDevelopment merged commit c83fd0b into PrismJS:master Jan 1, 2021
@RunDevelopment RunDevelopment deleted the shell-session-path-fix branch January 1, 2021 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Language Shell session tokenizer is broken in web download

2 participants