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

JavaScript: Better highlighting of functions #1190

Merged
merged 1 commit into from
Oct 10, 2017

Conversation

Golmote
Copy link
Contributor

@Golmote Golmote commented Sep 16, 2017

Add support for function highlighting when there are spaces between the name and the opening parenthesis:
foo ().

Try to highlight variables that contain functions as functions:
a = function () {}, b = () => {}, c = x => x

This would fix #1185.

jbid6or

@Golmote Golmote merged commit 8ee2cd3 into PrismJS:gh-pages Oct 10, 2017
@Golmote Golmote deleted the js-functions branch February 9, 2018 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant