summary refs log tree commit diff
path: root/xlint
diff options
context:
space:
mode:
authoreater <=@eater.me>2020-04-14 13:07:54 +0200
committerLeah Neukirchen <leah@vuxu.org>2021-02-15 18:46:22 +0100
commit8a37db0bb271efb8948c615beef8ff7583109ed5 (patch)
tree68d3a3db7fbb04f6f0793cfd7cc7d34454d7363c /xlint
parent92c032b2c3207eb6934b31f2c79f7215e7bb3769 (diff)
downloadxtools-8a37db0bb271efb8948c615beef8ff7583109ed5.tar.gz
xtools-8a37db0bb271efb8948c615beef8ff7583109ed5.tar.xz
xtools-8a37db0bb271efb8948c615beef8ff7583109ed5.zip
xlint: ignore comments v0.63
Closes: #177 [via git-merge-pr]
Diffstat (limited to 'xlint')
-rwxr-xr-xxlint1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlint b/xlint
index 2ba4bd8..d611d4a 100755
--- a/xlint
+++ b/xlint
@@ -6,6 +6,7 @@ export LC_ALL=C
 scan() {
 	local rx="$1" msg="$2"
 	grep -P -Hn -e "$rx" "$template" |
+		grep -v -P -e "[^:]*:[^:]*:\s*#" |
 		sed "s/^\([^:]*:[^:]*:\)\(.*\)/\1 $msg/"
 }