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

[GDScript]Sometimes highlight wrongly #2448

Closed
librehugohu opened this issue Mar 4, 2020 · 6 comments
Closed

[GDScript]Sometimes highlight wrongly #2448

librehugohu opened this issue Mar 4, 2020 · 6 comments
Labels
bug help welcome Could use help from community language

Comments

@librehugohu
Copy link

librehugohu commented Mar 4, 2020

Look like this ,highlight.js may highlight the comments and ignore the statements
Snipaste_2020-03-04_18-10-46
Snipaste_2020-03-04_18-10-59
Snipaste_2020-03-04_18-11-13

@librehugohu librehugohu added bug help welcome Could use help from community language labels Mar 4, 2020
@joshgoebel
Copy link
Member

joshgoebel commented Mar 4, 2020

Please confirm you are manually specifying GDscript as the language and not using auto-detect. It looks like an auto-detect failure because of how many times you use "Call" and "function" in your comments... and if that's the case there isn't anything we can do about it - you'd need to manually specify that the language is GDscript rather than trying to let us guess.

@librehugohu
Copy link
Author

Please confirm you are manually specifying GDscript as the language and not using auto-detect. It looks like an auto-detect failure because of how many times you use "Call" and "function" in your comments... and if that's the case there isn't anything we can do about it - you'd need to manually specify that the language is GDscript rather than trying to let us guess.

yeah,I specify the language is GDScript

@joshgoebel
Copy link
Member

joshgoebel commented Mar 5, 2020

Please provide a JSFiddle the reproduces this problem outside your environment so we can see exactly what you're doing.

You can fork my example:
https://jsfiddle.net/ajoshguy/gfzujpyt/

yeah,I specify the language is GDScript

Right now I'd say either you're mistaken or you're running into some weird issue with your environment, not Highlight.js. That's very obviously not just confusing the comments but seems to be highlighting with an entirely different language, which is exactly what would happen if you were using highlightAuto.

@librehugohu
Copy link
Author

librehugohu commented Mar 5, 2020 via email

@joshgoebel
Copy link
Member

joshgoebel commented Mar 5, 2020

That seems to be a third party language module. If you're having a problem with it please report it to the modules author directly:

https://github.com/highlightjs/highlightjs-gdscript

The GDScript.md is the file I found highlight error,I delete other statements and save all code blocks,the two pictures is the highlight result on my computer.

I have no idea where this GDscritp.md file you speak of might be.

@librehugohu
Copy link
Author

librehugohu commented Mar 5, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug help welcome Could use help from community language
Projects
None yet
Development

No branches or pull requests

2 participants