From e69ec3f52845ef15c55a39e88c92c524d077fc0f Mon Sep 17 00:00:00 2001 From: Jon Meow <46229924+jonmeow@users.noreply.github.com> Date: Mon, 1 Nov 2021 10:56:23 -0700 Subject: [PATCH] Fix format_grammar to run on lexer.lpp changes (#929) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ea37c6378588..c60f41507500 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -89,7 +89,7 @@ repos: name: Format the executable_semantics grammar file entry: executable_semantics/syntax/format_grammar.py language: python - files: ^executable_semantics/syntax/parser.ypp$ + files: ^executable_semantics/syntax/(lexer.lpp|parser.ypp)$ pass_filenames: false # Formatters should be run late so that they can re-format any prior changes. - repo: https://github.com/psf/black