mirror of
https://github.com/atom/atom.git
synced 2026-02-09 14:15:24 -05:00
A pattern with no name or contentName does not insert undefined into scope array
This commit is contained in:
@@ -144,7 +144,7 @@ class Pattern
|
||||
|
||||
handleMatch: (stack, line, captureIndices) ->
|
||||
scopes = _.pluck(stack, "scopeName")
|
||||
scopes.push(@scopeName) unless @popRule
|
||||
scopes.push(@scopeName) if @scopeName and not @popRule
|
||||
|
||||
if @captures
|
||||
tokens = @getTokensForCaptureIndices(line, captureIndices, scopes)
|
||||
|
||||
Reference in New Issue
Block a user