Skip to content
New issue

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

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

Already on GitHub? # to your account

Lua comment miscategorized as text/x-patch #19

Open
llllvvuu opened this issue Nov 1, 2023 · 0 comments
Open

Lua comment miscategorized as text/x-patch #19

llllvvuu opened this issue Nov 1, 2023 · 0 comments

Comments

@llllvvuu
Copy link

llllvvuu commented Nov 1, 2023

Heuristic for unified diff format is three dashes followed by a space: --- . Unfortunately this is also how Lua comments start, so if you have a file like

--- @class Foo

it will be miscategorized.

Workaround: comment without the space

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant