branch: externals/phps-mode
commit add17a75d428058087dec390cebf44364cbcadcc
Author: Christian Johansson <[email protected]>
Commit: Christian Johansson <[email protected]>

    T_COMMENT and T_DOC_COMMENT are excluded from parser
---
 phps-mode-automation-grammar.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/phps-mode-automation-grammar.el b/phps-mode-automation-grammar.el
index b2a0a4a..b6ad484 100644
--- a/phps-mode-automation-grammar.el
+++ b/phps-mode-automation-grammar.el
@@ -1488,7 +1488,9 @@
 
                ((or
                  (equal (car first) 'T_OPEN_TAG)
-                 (equal (car first) 'T_CLOSE_TAG))
+                 (equal (car first) 'T_CLOSE_TAG)
+                 (equal (car first) 'T_DOC_COMMENT)
+                 (equal (car first) 'T_COMMENT))
                 (setq-local
                  phps-mode-parser-lex-analyzer--index
                  (cdr (cdr first)))

Reply via email to