mirror of
https://github.com/atom/atom.git
synced 2026-01-26 23:38:48 -05:00
Don't show leading phantom tokens
...thanks @grizzilus 😄
This commit is contained in:
@@ -229,7 +229,7 @@ class Token
|
||||
else match
|
||||
|
||||
hasLeadingWhitespace: ->
|
||||
@firstNonWhitespaceIndex? and @firstNonWhitespaceIndex > 0
|
||||
!@isPhantom and @firstNonWhitespaceIndex? and @firstNonWhitespaceIndex > 0
|
||||
|
||||
hasTrailingWhitespace: ->
|
||||
@firstTrailingWhitespaceIndex? and @firstTrailingWhitespaceIndex < @value.length
|
||||
|
||||
Reference in New Issue
Block a user