aboutsummaryrefslogtreecommitdiff
path: root/explain.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-08-28 16:05:30 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-08-28 16:05:30 -0700
commitf8860c385ee35e50c716e2119131103fdb6fd70e (patch)
tree3f45681dbf519285680c421cdf14ee13d7059100 /explain.c
parentd44806f746b22311a04e45a80a9281d4f4f3a71d (diff)
Style change: added cino=:0 (i.e. case statements on same indentation as
switch). Also fixed issue where $$ would fail to match with trailing newline on file
Diffstat (limited to 'explain.c')
-rw-r--r--explain.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/explain.c b/explain.c
index 2d54234..79ef8c7 100644
--- a/explain.c
+++ b/explain.c
@@ -65,9 +65,9 @@ static void _explain_matches(match_node_t *firstmatch, int depth, const char *te
for (size_t i = 0; i < viz_typelen; i++) {
switch (viz_type[i]) {
- case '\n': printf("↵"); break;
- case '\t': printf("⇥"); break;
- default: printf("%c", viz_type[i]); break;
+ case '\n': printf("↵"); break;
+ case '\t': printf("⇥"); break;
+ default: printf("%c", viz_type[i]); break;
}
}
@@ -169,3 +169,5 @@ void explain_match(match_t *m)
_explain_matches(&first, 0, m->start, (size_t)(m->end - m->start));
printf("\033[?7h"); // Re-enable line wrapping
}
+
+// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0