Add class method lineCOmmentStringForScope to TextMateBundle

This commit is contained in:
Corey Johnson
2012-08-09 10:33:31 -07:00
parent ea86ec401b
commit 92d706b52b

View File

@@ -32,6 +32,10 @@ class TextMateBundle
@getPreferenceInScope: (scopeSelector, preferenceName) ->
@preferencesByScopeSelector[scopeSelector][preferenceName]
@lineCommentStringForScope: (scope) ->
shellVariables = @getPreferenceInScope(scope, 'shellVariables')
lineComment = (_.find shellVariables, ({name}) -> name == "TM_COMMENT_START")['value']
grammars: null
constructor: (@path) ->