Closed sryze closed 8 years ago
It looks like the specs need to be updated as well, I'll attempt to do it later tonight.
The package currently attempts to detect indentation before tokenization because a file might be opened that doesn't have a corresponding language package. It will still re-detect after the tokenization. On Mon, Mar 14, 2016 at 12:31 AM Sergey Zolotarev notifications@github.com wrote:
It looks like the specs need to be updated as well, I'll attempt to do it later tonight.
— Reply to this email directly or view it on GitHub https://github.com/jtokoph/auto-detect-indentation/pull/12#issuecomment-196182494 .
Jason
Oh, didn't see that. I actually consoled out what editor.isBufferRowCommented i
was returning and to my surprise if didn't detect any of the comments. But after adding this it worked.
The first pass before tokenization won't detect comments. But the second pass after tokenization will detect them. You should be seeing things logged twice unless there is some other error On Mon, Mar 14, 2016 at 8:28 AM Sergey Zolotarev notifications@github.com wrote:
Oh, didn't see that. I actually consoled out what editor.isBufferRowCommented i was returning and to my surprise if didn't detect any of the comments. But after adding this it worked.
— Reply to this email directly or view it on GitHub https://github.com/jtokoph/auto-detect-indentation/pull/12#issuecomment-196368380 .
Jason
This fixes #7.