Commit 870c9d1c authored by Russ Cox's avatar Russ Cox

codereview: allow spaces in y.tab.[ch]

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5620053
parent 0f78ee57
...@@ -925,7 +925,7 @@ def CheckGofmt(ui, repo, files, just_warn): ...@@ -925,7 +925,7 @@ def CheckGofmt(ui, repo, files, just_warn):
# Check that *.[chys] files indent using tabs. # Check that *.[chys] files indent using tabs.
def CheckTabfmt(ui, repo, files, just_warn): 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: if not files:
return return
cwd = os.getcwd() cwd = os.getcwd()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment