branch: externals/phps-mode commit 34a595fa0924de892f1d2c3889b7334a4b5ec2fb Author: Christian Johansson <christ...@cvj.se> Commit: Christian Johansson <christ...@cvj.se>
SDT class_const_list --- phps-mode-parser-sdt.el | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/phps-mode-parser-sdt.el b/phps-mode-parser-sdt.el index 17f4876e32..ce52e16b60 100644 --- a/phps-mode-parser-sdt.el +++ b/phps-mode-parser-sdt.el @@ -2929,6 +2929,36 @@ )) phps-mode-parser--table-translations) +;; 341 ((class_const_list) (class_const_list "," class_const_decl)) +(puthash + 341 + `(lambda(args _terminals) + (append ,(nth 1 args) ,(nth 3 args))) + phps-mode-parser--table-translations) + +;; 342 ((class_const_list) (class_const_decl)) +(puthash + 342 + (lambda(args _terminals) + (list args)) + phps-mode-parser--table-translations) + +;; 343 ((class_const_decl) (identifier "=" expr backup_doc_comment)) +(puthash + 343 + (lambda(args _terminals) + `( + ast-type + constant-assignment + ast-identifier + ,(nth 0 args) + ast-expr + ,(nth 2 args) + ast-backup-expression + ,(nth 3 args))) + phps-mode-parser--table-translations) + + ;; TODO Was here ;; expr -> ("[" array_pair_list "]" "=" expr)