[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/phps-mode 3f9898cd2a 11/17: Added instructions of how t
From: |
Christian Johansson |
Subject: |
[elpa] externals/phps-mode 3f9898cd2a 11/17: Added instructions of how to update lexer rules |
Date: |
Tue, 26 Jul 2022 08:44:20 -0400 (EDT) |
branch: externals/phps-mode
commit 3f9898cd2ab82793fdebd01358f9bd135b446c1a
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
Added instructions of how to update lexer rules
---
phps-mode-lexer.el | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/phps-mode-lexer.el b/phps-mode-lexer.el
index cf97c57235..5d79de85fc 100644
--- a/phps-mode-lexer.el
+++ b/phps-mode-lexer.el
@@ -12,6 +12,11 @@
;; * Defines the lexer for this grammar based on the Zend PHP 8.1 Lexer at
;;
https://raw.githubusercontent.com/php/php-src/PHP-8.1/Zend/zend_language_scanner.l
;; which is using re2c.
+;;
+;; Instructions on how to generate new lexer rules
+;; 1. Make edits in lexer rules in function
`phps-mode-lexer--generate-lexer-rules'
+;; 2. Run `eval-buffer' and then `phps-mode-lexer--generate-lexer-rules'
+;; 3. Update inline value of `phps-mode-lexer--lambdas-by-state' by running
code "(insert (format "%S" phps-mode-lexer--lambdas-by-state))"
;;; Code:
- [elpa] externals/phps-mode dd4e6c134f 07/17: Added another unit-test for T_READONLY, (continued)
- [elpa] externals/phps-mode dd4e6c134f 07/17: Added another unit-test for T_READONLY, Christian Johansson, 2022/07/26
- [elpa] externals/phps-mode dbd63046ef 14/17: Fixed T_ENUM token length, Christian Johansson, 2022/07/26
- [elpa] externals/phps-mode d766293a8d 04/17: Added support for underscores, Christian Johansson, 2022/07/26
- [elpa] externals/phps-mode 585bc28fa5 01/17: Added T_ENUM and T_READONLY, Christian Johansson, 2022/07/26
- [elpa] externals/phps-mode 534c766344 03/17: Fixed number constants, Christian Johansson, 2022/07/26
- [elpa] externals/phps-mode 3a59ef2141 05/17: Added tests for new lexer tokens, Christian Johansson, 2022/07/26
- [elpa] externals/phps-mode b9f74656ad 02/17: Added ONUM regex, Christian Johansson, 2022/07/26
- [elpa] externals/phps-mode 4f936cd5cd 06/17: Fixed byte-compilation issue with new lexer rules, Christian Johansson, 2022/07/26
- [elpa] externals/phps-mode 3d4576eac6 08/17: Another fix for readonly, Christian Johansson, 2022/07/26
- [elpa] externals/phps-mode e50ecb53be 09/17: More debugging byte-compilation issue, Christian Johansson, 2022/07/26
- [elpa] externals/phps-mode 3f9898cd2a 11/17: Added instructions of how to update lexer rules,
Christian Johansson <=
- [elpa] externals/phps-mode f070d688a4 13/17: Added TODO items, Christian Johansson, 2022/07/26
- [elpa] externals/phps-mode e84ba21c7d 15/17: Updated TODO, Christian Johansson, 2022/07/26
- [elpa] externals/phps-mode a56b01bd3f 17/17: Updated version and date, Christian Johansson, 2022/07/26
- [elpa] externals/phps-mode e5fda9efb3 10/17: New lexer tokens working after byte-compilation, Christian Johansson, 2022/07/26
- [elpa] externals/phps-mode 777c88da24 12/17: Fixed byte-compilation warning, Christian Johansson, 2022/07/26
- [elpa] externals/phps-mode a682f890c1 16/17: Fixed indentation for enumerations, Christian Johansson, 2022/07/26