-
Notifications
You must be signed in to change notification settings - Fork 588
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
File named "build" always opens as "NAnt Build FIle" type #1862
Comments
With that said this issue is not related with the Default Packages and can not be fixed in the syntax defintions without changing ST core behavior. A backward compatible solution would probably be to introduce a new
|
see sublimehq/sublime_text#1353 for a prior discussion |
FWIW, I use ApplySyntax for more fine-grained control until things like @deathaxe's wish are implemented. Here's the main problem I use it for:
Both files have the same filename. Neither one has a shebang or other guaranteed first line stuff. How do you distinguish them? Even with @deathaxe's system, can the patterns test the full path?
|
As a side note, I'm not sure |
Fixes sublimehq#1862 This commit unassignes `build` file extension from NAnt Build File syntax as it is a too generic extension used by many syntaxes. With this change `*.build` files need to be assigned to NAnt Build File manually if desired.
Fixes #1862 This commit unassignes `build` file extension from NAnt Build File syntax as it is a too generic extension used by many syntaxes. With this change `*.build` files need to be assigned to NAnt Build File manually if desired.
How to reproduce:
Create file named "build", put anything into it, eg.
#!/bin/bash
, and then save it.Closing and opening the file switches to "NAnt Build File", also on Sidebar file is wrongly detected.
The text was updated successfully, but these errors were encountered: