View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000625 | file | General | public | 2025-02-22 13:52 | 2025-02-22 13:52 |
Reporter | mgkurtz | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 5.46 | ||||
Summary | 0000625: Lua script misclassified as JavaScript | ||||
Description | I have a Lua file containing `(function(` which gets classified as JavaScript although it contains a shebang line. While JavaScript may be much more likely in the wild, I would expect a shebang line to be considered a much much stronger clue than any piece of typical code. | ||||
Steps To Reproduce | Here is a minimal sensible example file ```lua #!/usr/bin/lua a, err = pcall(function() print"Hello world!" end) ``` | ||||
Additional Information | My actual shebang line read `#!/usr/bin/env texlua` but the result is the same. | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2025-02-22 13:52 | mgkurtz | New Issue |