emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/phps-mode 1c75371 1/7: Added FSF header to generated pa


From: Christian Johansson
Subject: [elpa] externals/phps-mode 1c75371 1/7: Added FSF header to generated parser script
Date: Sun, 7 Nov 2021 14:21:36 -0500 (EST)

branch: externals/phps-mode
commit 1c7537134f6efed5b0f555633dd3fa300c414e38
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>

    Added FSF header to generated parser script
---
 admin/phps-mode-automation.el   | 3 ++-
 phps-mode-automation-grammar.el | 7 ++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/admin/phps-mode-automation.el b/admin/phps-mode-automation.el
index 8947b42..35e8fdc 100644
--- a/admin/phps-mode-automation.el
+++ b/admin/phps-mode-automation.el
@@ -205,7 +205,8 @@
         (let ((export
                (parser-generator-lr-export-to-elisp
                 "phps-mode-parser"
-                phps-mode-automation-grammar--header)))
+                phps-mode-automation-grammar--header
+                phps-mode-automation-grammar--copyright)))
           (generate-new-buffer "*PHP Parser*")
           (switch-to-buffer "*PHP Parser*")
           (insert export)
diff --git a/phps-mode-automation-grammar.el b/phps-mode-automation-grammar.el
index 5b2a7a4..a4bc2fc 100644
--- a/phps-mode-automation-grammar.el
+++ b/phps-mode-automation-grammar.el
@@ -47,8 +47,13 @@
   "Non-nil means to move index.")
 
 (defvar
+  phps-mode-automation-grammar--copyright
+  ";; Copyright (C) 2018-2021  Free Software Foundation, Inc.\n\n;; This file 
is not part of GNU Emacs.\n\n;; GNU Emacs is free software: you can 
redistribute it and/or modify\n;; it under the terms of the GNU General Public 
License as published by\n;; the Free Software Foundation, either version 3 of 
the License, or\n;; (at your option) any later version.\n\n;; GNU Emacs is 
distributed in the hope that it will be useful,\n;; but WITHOUT ANY WARRANTY; 
without even the implied warranty of [...]
+  "Copyright contents for parser.")
+
+(defvar
   phps-mode-automation-grammar--header
-  "\n\n(defvar-local\n phps-mode-parser-tokens\n nil\n \"Tokens for 
parser.\")\n\n(define-error\n 'phps-parser-error\n \"PHPs Parser Error\")\n\n"
+  "\n(defvar-local\n phps-mode-parser-tokens\n nil\n \"Tokens for 
parser.\")\n\n(define-error\n 'phps-parser-error\n \"PHPs Parser Error\")\n\n"
   "Header contents for parser.")
 
 (defvar



reply via email to

[Prev in Thread] Current Thread [Next in Thread]