facelessuser / ApplySyntax

Syntax detector for Sublime Text
https://facelessuser.github.io/ApplySyntax/
343 stars 48 forks source link

Sublime keep changing my setting files, removing '*.inc' files from 'AmxxPawn' and adding it as 'PHP'. #102

Closed evandrocoan closed 8 years ago

evandrocoan commented 8 years ago

The details are described here: https://github.com/SublimeTextIssues/Core/issues/1333

facelessuser commented 8 years ago

This is not a bug, but how it is intended to work. See the rule: https://github.com/facelessuser/ApplySyntax/blob/master/ApplySyntax.sublime-settings#L139.

If you don't like the default rule, configure it how you would like it by overriding it. If you can give a convincing argument as to why it shouldn't be defaulted to PHP by default, we can remove it.

Please read the docs to learn how to configure your own personal rules: http://facelessuser.github.io/ApplySyntax/usage/#creating-rules.

Rules are managed by the community via pull requests, I just maintain the framework (though I step in when bad rules step on how I use it).

evandrocoan commented 8 years ago

I can see and understand perfectly. It forces predefined extensions, always overriding the user settings, over, and over again.

facelessuser commented 8 years ago

The only way I use this package is editing the source code by myself.

You are mistaken, you do not edit the package source, you edit the settings file. You simply drop a settings file with the same name in your User folder and override. This is quite sensible. If you have a strong argument that supports that *.inc should not be a default rule, let me know. It can be removed if it is problematic via a pull request (just update the setting file, no "source code" needs to be touched).

evandrocoan commented 8 years ago

You are mistaken

You right, I overlooked too quickly, *.inc should stay.

You could add this to the first page: It forces predefined extensions, always overriding the user settings on the usual extension setting files as 'PHP.sublime-settings'. To use different extensions, you must edit the package settings yourself. For example, if you need only '*.inc' files being used as anything else than PHP. It would save me much headache.