Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
taylor committed Jul 6, 2015
1 parent 5c6ee2a commit 4f327ba
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions clang_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ def load_settings():
languages = settings.get('languages', ['C', 'C++', 'C++11', 'JavaScript'])

def is_supported(lang):
# TODO: Add Objective-C and Objective-C++ here.
load_settings()
return any((lang.endswith((l + '.tmLanguage', l + '.sublime-syntax')) for l in languages))

Expand Down Expand Up @@ -253,9 +252,7 @@ def run(self, edit, whole_buffer=False):
# Hook for on-save event, to allow application of clang-format on save.
class clangFormatEventListener(sublime_plugin.EventListener):
def on_pre_save(self, view):

# Only do this for C or C++. TODO: we should consider adding support
# For Objective-C at some point.
# Only do this for supported languages
syntax = view.settings().get('syntax')
if is_supported(syntax):
# Ensure that settings are up to date.
Expand Down

0 comments on commit 4f327ba

Please sign in to comment.