-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix detecting the indent of files with many repeats after a single in…
…dent (#34)
- Loading branch information
Showing
3 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
/* Examine the case of an indent that happens only once | ||
but then has a long block at that level, as compared to | ||
an indent that occurs many times. | ||
The odd spacing on this line is artificial, but critical to the example. */ | ||
observation: 'This is literally the only line with a 1-space change', | ||
key1: 'dummy', | ||
key2: 'dummy', | ||
key3: 'dummy', | ||
key4: 'dummy', | ||
key5: 'dummy', | ||
key6: 'dummy', | ||
key7: 'dummy', | ||
key8: 'dummy', | ||
key9: 'dummy', | ||
key10: 'dummy', | ||
key11: 'dummy', | ||
key12: 'dummy', | ||
key13: 'dummy', | ||
key14: 'dummy', | ||
key15: 'dummy', | ||
key16: 'dummy', | ||
key17: 'dummy', | ||
key18: 'dummy', | ||
key19: 'dummy', | ||
key20: 'dummy', | ||
contrast: { | ||
idea: 'Now we will have about ten instances with an indent change of 4', | ||
}, | ||
contrast2: { | ||
subkey: 'dummy' | ||
}, | ||
contrast3: { | ||
subkey: 'dummy' | ||
}, | ||
contrast4: { | ||
subkey: 'dummy' | ||
}, | ||
contrast5: { | ||
subkey: 'dummy' | ||
}, | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters