mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
codereview: allow spaces in y.tab.[ch]
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5620053
This commit is contained in:
parent
0f78ee574b
commit
870c9d1c09
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue