summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-05-14 14:24:19 -0400
committerJune McEnroe <june@causal.agency>2020-05-14 14:24:19 -0400
commit6e1986ae0939e02ac72b5e7f0ac018d3c0fff1fb (patch)
tree57b4ae8ccac63cd228af6f835b227908b40b72f5 /bin
parentRemove gpg symlink from NetBSD install (diff)
downloadsrc-6e1986ae0939e02ac72b5e7f0ac018d3c0fff1fb.tar.gz
src-6e1986ae0939e02ac72b5e7f0ac018d3c0fff1fb.zip
Add hi rule for sh arithmetic expansion
Shell highlighting is hopeless anyway but this makes it slightly less
obviously broken.
Diffstat (limited to 'bin')
-rw-r--r--bin/hi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/hi.c b/bin/hi.c
index 38810d51..80fe2864 100644
--- a/bin/hi.c
+++ b/bin/hi.c
@@ -257,6 +257,8 @@ static const struct Syntax ShSyntax[] = {
 		.pattern = "[\\][\"$\\`]" },
 	{ Interp, .parent = ~SET(Escape),
 		.pattern = "[$][(][^)]*[)]" "|" "`[^`]*`" },
+	{ Interp, .parent = ~SET(Escape),
+		.pattern = "[$][(][(]([^)]|[)][^)])*[)][)]" },
 	{ String, .parent = SET(Interp),
 		.pattern = PATTERN_DQ },
 	{ Interp, .parent = ~SET(Escape),
1-12cache: don't leave cache_slot fields uninitializedJohn Keeping 2014-01-10filter: split filter functions into their own fileJason A. Donenfeld 2014-01-10filter: make exit status localJason A. Donenfeld 2014-01-10parsing: fix header typoJason A. Donenfeld 2014-01-10cgit.c: Fix comment on bit mask hackLukas Fleischer 2014-01-10cgit.c: Use "else" for mutually exclusive branchesLukas Fleischer 2014-01-10ui-snapshot.c: Do not reinvent suffixcmp()Lukas Fleischer 2014-01-10Refactor cgit_parse_snapshots_mask()Lukas Fleischer 2014-01-10Disallow use of undocumented snapshot delimitersLukas Fleischer 2014-01-10Replace most uses of strncmp() with prefixcmp()Lukas Fleischer 2014-01-09README: Fix dependenciesLukas Fleischer 2014-01-08README: Spelling and formatting fixesLukas Fleischer 2014-01-08Fix UTF-8 with syntax-highlighting.pyPřemysl Janouch 2014-01-08Add a suggestion to the manpagePřemysl Janouch 2014-01-08Fix the example configurationPřemysl Janouch 2014-01-08Fix about-formatting.shPřemysl Janouch 2014-01-08Fix some spelling errorsPřemysl Janouch 2014-01-08filters: highlight.sh: add css comments for highlight 2.6 and 3.8Ferry Huberts