]> git.mdlowis.com Git - projs/tide.git/commitdiff
grep doesnt seem to handle crlf line endings so strip the $ off ctags lookups before...
authorMichael D. Lowis <mike.lowis@gentex.com>
Mon, 5 Dec 2016 19:30:37 +0000 (14:30 -0500)
committerMichael D. Lowis <mike.lowis@gentex.com>
Mon, 5 Dec 2016 19:30:37 +0000 (14:30 -0500)
xtagpick

index 712bff818a22f17b28aa9003f47efe3b1b4df96b..74264f6f3727b7d0120cec3a2c93c345b20af5da 100755 (executable)
--- a/xtagpick
+++ b/xtagpick
@@ -21,7 +21,7 @@ BEGIN { FS = "[\t]+" }
 ($1 == TAG) {
     matchstr = $3
     sub(/^\//, "\"", matchstr)
-    sub(/\/;"$/, "\"", matchstr)
+    sub(/\$\/;"$/, "\"", matchstr)
     gsub(/\*/, "\\*", matchstr)
     print "grep -Hn", matchstr, $2, "| cut -d: -f1,2"
 }