Don't show leading phantom tokens

...thanks @grizzilus 😄
This commit is contained in:
Antonio Scandurra
2015-02-18 09:46:03 +01:00
parent 88ca44d53b
commit 5e4221f91c

View File

@@ -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