mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Add class method lineCOmmentStringForScope to TextMateBundle
This commit is contained in:
@@ -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) ->
|
||||
|
||||
Reference in New Issue
Block a user