From 5e4221f91cd7b0072e99e466d56bbd39dfba1f0a Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Wed, 18 Feb 2015 09:46:03 +0100 Subject: [PATCH] Don't show leading phantom tokens ...thanks @grizzilus :smile: --- src/token.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/token.coffee b/src/token.coffee index d3e17a570..2c82fa23f 100644 --- a/src/token.coffee +++ b/src/token.coffee @@ -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