Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Conversation

RunDevelopment
Copy link
Member

This fixes #2685.

@github-actions
Copy link

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%).

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"]
]]
]]
]
Copy link
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
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
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
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
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