summaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2018-11-10 02:47:26 +0100
committerPeter Kokot <peterkokot@gmail.com>2018-11-11 02:55:46 +0100
commitf0251a8b16631edf06830e08698cef5d76c1e01b (patch)
tree8a2fefe158a2d1cda48fd70bc697ea85e62e9828 /.gitignore
parent1c873c119133c6d5ef13b635cba820236fa5848d (diff)
downloadphp-git-f0251a8b16631edf06830e08698cef5d76c1e01b.tar.gz
Remove lexer files generated by RE2C
This patch removes generated lexer files by re2c during the build process so they are not tracked by Git yet can be still shipped when PHP is released. The genfiles script additionally provides generation of these lexer files when creating a release of the PHP source code. The genfiles script refactorings: - added file header - echoing steps instead of comments - cleaning only lines starting with `#line` - eval removed in favor of direct executed commands - the debug mode `set -x` removed - script can be called from any path - improved comments
Diffstat (limited to '.gitignore')
-rw-r--r--.gitignore15
1 files changed, 15 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index a43c15df34..c0e059714d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -154,6 +154,21 @@ config.h.in
php
# ------------------------------------------------------------------------------
+# Lexer files generated by re2c
+# ------------------------------------------------------------------------------
+/ext/json/json_scanner.c
+/ext/json/php_json_scanner_defs.h
+/ext/pdo/pdo_sql_parser.c
+/ext/phar/phar_path_check.c
+/ext/standard/url_scanner_ex.c
+/ext/standard/var_unserializer.c
+/sapi/phpdbg/phpdbg_lexer.c
+/Zend/zend_ini_scanner.c
+/Zend/zend_ini_scanner_defs.h
+/Zend/zend_language_scanner.c
+/Zend/zend_language_scanner_defs.h
+
+# ------------------------------------------------------------------------------
# PHP parser files generated by bison during the build process
# ------------------------------------------------------------------------------
/ext/json/json_parser.tab.h