]> Cypherpunks repositories - gostls13.git/commitdiff
codereview: allow spaces in y.tab.[ch]
authorRuss Cox <rsc@golang.org>
Fri, 3 Feb 2012 15:54:05 +0000 (10:54 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 3 Feb 2012 15:54:05 +0000 (10:54 -0500)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5620053

lib/codereview/codereview.py

index 7e9f6ca72887d0d0c8e7866057fdaa11211009f3..6f5b8d590db5fde31173228d167a0553ea2758bb 100644 (file)
@@ -925,7 +925,7 @@ def CheckGofmt(ui, repo, files, just_warn):
 
 # Check that *.[chys] files indent using tabs.
 def CheckTabfmt(ui, repo, files, just_warn):
-       files = [f for f in files if f.startswith('src/') and re.search(r"\.[chys]$", f)]
+       files = [f for f in files if f.startswith('src/') and re.search(r"\.[chys]$", f) and not re.search(r"\.tab\.[ch]$", f)]
        if not files:
                return
        cwd = os.getcwd()