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

UTF BOM screws up language auto-detect #20

Closed
mitchcapper opened this issue Apr 12, 2024 · 1 comment
Closed

UTF BOM screws up language auto-detect #20

mitchcapper opened this issue Apr 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mitchcapper
Copy link

I noticed when doing a grep on a project some resx files had proper highlighting and some did not. Renaming them to XML fixed this (as it used extension detection for lang I assume) but after some troubleshooting I found the same file with and without BOM would result in the problem (with BOM preventing the auto detection).
image
image

@rhysd rhysd added the bug Something isn't working label Apr 15, 2024
@rhysd
Copy link
Owner

rhysd commented Apr 15, 2024

Thank you for catching this. It looks a bug of built-in grep feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants