Skip to content

Commit

Permalink
Use lexical-binding
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasPetton committed Oct 13, 2017
1 parent a606a7d commit 35415e1
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 10 deletions.
2 changes: 1 addition & 1 deletion js2-refactor.el
@@ -1,4 +1,4 @@
;;; js2-refactor.el --- The beginnings of a JavaScript refactoring library in emacs.
;;; js2-refactor.el --- The beginnings of a JavaScript refactoring library in emacs. -*- lexical-binding: t; -*-

;; Copyright (C) 2012-2014 Magnar Sveen
;; Copyright (C) 2015-2016 Magnar Sveen and Nicolas Petton
Expand Down
2 changes: 1 addition & 1 deletion js2r-conditionals.el
@@ -1,4 +1,4 @@
;;; js2r-conditionals.el --- Conditional refactoring functions for js2-refactor
;;; js2r-conditionals.el --- Conditional refactoring functions for js2-refactor -*- lexical-binding: t; -*-

;; Copyright (C) 2012-2014 Magnar Sveen
;; Copyright (C) 2015-2016 Magnar Sveen and Nicolas Petton
Expand Down
2 changes: 1 addition & 1 deletion js2r-conveniences.el
@@ -1,4 +1,4 @@
;;; js2r-conveniences.el --- Convenience functions for js2-refactor
;;; js2r-conveniences.el --- Convenience functions for js2-refactor -*- lexical-binding: t; -*-

;; Copyright (C) 2012-2014 Magnar Sveen
;; Copyright (C) 2015-2016 Magnar Sveen and Nicolas Petton
Expand Down
2 changes: 1 addition & 1 deletion js2r-formatting.el
@@ -1,4 +1,4 @@
;;; js2r-formatting.el --- Private helper functions for formatting
;;; js2r-formatting.el --- Private helper functions for formatting -*- lexical-binding: t; -*-

;; Copyright (C) 2012-2014 Magnar Sveen
;; Copyright (C) 2015-2016 Magnar Sveen and Nicolas Petton
Expand Down
2 changes: 1 addition & 1 deletion js2r-functions.el
@@ -1,4 +1,4 @@
;;; js2r-functions.el --- Function manipulation functions for js2-refactor
;;; js2r-functions.el --- Function manipulation functions for js2-refactor -*- lexical-binding: t; -*-

;; Copyright (C) 2012-2014 Magnar Sveen
;; Copyright (C) 2015-2016 Magnar Sveen and Nicolas Petton
Expand Down
2 changes: 1 addition & 1 deletion js2r-helpers.el
@@ -1,4 +1,4 @@
;;; js2r-helpers.el --- Private helper functions for js2-refactor
;;; js2r-helpers.el --- Private helper functions for js2-refactor -*- lexical-binding: t; -*-

;; Copyright (C) 2012-2014 Magnar Sveen
;; Copyright (C) 2015-2016 Magnar Sveen and Nicolas Petton
Expand Down
2 changes: 1 addition & 1 deletion js2r-iife.el
@@ -1,4 +1,4 @@
;;; js2r-iife.el --- IIFE wrapping functions for js2-refactor
;;; js2r-iife.el --- IIFE wrapping functions for js2-refactor -*- lexical-binding: t; -*-

;; Copyright (C) 2012-2014 Magnar Sveen
;; Copyright (C) 2015-2016 Magnar Sveen and Nicolas Petton
Expand Down
2 changes: 1 addition & 1 deletion js2r-paredit.el
@@ -1,4 +1,4 @@
;;; js2r-paredit.el --- Paredit-like extensions for js2-refactor
;;; js2r-paredit.el --- Paredit-like extensions for js2-refactor -*- lexical-binding: t; -*-

;; Copyright (C) 2012-2014 Magnar Sveen
;; Copyright (C) 2015-2016 Magnar Sveen and Nicolas Petton
Expand Down
2 changes: 1 addition & 1 deletion js2r-vars.el
@@ -1,4 +1,4 @@
;;; js2r-vars.el --- Variable declaration manipulation functions for js2-refactor
;;; js2r-vars.el --- Variable declaration manipulation functions for js2-refactor -*- lexical-binding: t; -*-

;; Copyright (C) 2012-2014 Magnar Sveen
;; Copyright (C) 2015-2016 Magnar Sveen and Nicolas Petton
Expand Down
31 changes: 30 additions & 1 deletion js2r-wrapping.el
@@ -1,4 +1,33 @@
(require 'yasnippet)
;;; js2r-wrapping.el --- Helper functions for wrapping/unwrapping -*- lexical-binding: t; -*-

;; Copyright (C) 2017 Nicolas Petton

;; Author: Nicolas Petton(require 'yasnippet) <nicolas@petton.fr>

;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.

;;; Commentary:

;;

;;; Code:



(provide 'js2r-wrapping)
;;; js2r-wrapping.el ends here


(defvar js2r--space-str " \t\n")

Expand Down

0 comments on commit 35415e1

Please sign in to comment.