[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/lex 5483ed3 5/7: * packages/lex/lex.el: Use lexical-bin
From: |
Stefan Monnier |
Subject: |
[elpa] externals/lex 5483ed3 5/7: * packages/lex/lex.el: Use lexical-binding. |
Date: |
Tue, 1 Dec 2020 16:18:10 -0500 (EST) |
branch: externals/lex
commit 5483ed3eeb7eb54d479c04c9df0447ce4f1471b0
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
* packages/lex/lex.el: Use lexical-binding.
---
lex.el | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/lex.el b/lex.el
index b1c2693..bd84f58 100644
--- a/lex.el
+++ b/lex.el
@@ -1,6 +1,6 @@
-;;; lex.el --- Lexical analyser construction
+;;; lex.el --- Lexical analyser construction -*- lexical-binding:t -*-
-;; Copyright (C) 2008,2013 Free Software Foundation, Inc.
+;; Copyright (C) 2008,2013,2014 Free Software Foundation, Inc.
;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
;; Keywords:
@@ -964,7 +964,7 @@ Returns a new NFA."
(optimize-char-table (cdr lexer) 'eq)
;; Eliminate the table if possible.
(map-char-table
- (lambda (range v)
+ (lambda (range _v)
(setq char
(if (and (characterp range) (null char))
range t)))
@@ -1063,21 +1063,21 @@ Returns a new NFA."
;;; Matching engine
-(defun lex--match-bobp (arg pos &optional string)
+(defun lex--match-bobp (_arg pos &optional string)
(= pos (if string 0 (point-min))))
-(defun lex--match-eobp (arg pos &optional string)
+(defun lex--match-eobp (_arg pos &optional string)
(= pos (if string (length string) (point-max))))
-(defun lex--match-bolp (arg pos &optional string)
+(defun lex--match-bolp (_arg pos &optional string)
(if string (or (= pos 0) (eq ?\n (aref string (1- pos))))
(memq (char-before pos) '(nil ?\n))))
-(defun lex--match-eolp (arg pos &optional string)
+(defun lex--match-eolp (_arg pos &optional string)
(if string (or (= pos (length string)) (eq ?\n (aref string pos)))
(memq (char-after pos) '(nil ?\n))))
-(defun lex--match-bowp (arg pos &optional string)
+(defun lex--match-bowp (_arg pos &optional string)
(and (not (if string (and (> pos 0)
(eq ?w (char-syntax (aref string (1- pos)))))
(and (> pos (point-min)) (eq 2 (car (syntax-after (1- pos)))))))
@@ -1085,7 +1085,7 @@ Returns a new NFA."
(eq ?w (char-syntax (aref string pos))))
(eq 2 (car (syntax-after pos))))))
-(defun lex--match-eowp (arg pos &optional string)
+(defun lex--match-eowp (_arg pos &optional string)
(and (if string (and (> pos 0)
(eq ?w (char-syntax (aref string (1- pos)))))
(and (> pos (point-min)) (eq 2 (car (syntax-after (1- pos))))))
@@ -1093,7 +1093,7 @@ Returns a new NFA."
(eq ?w (char-syntax (aref string pos))))
(eq 2 (car (syntax-after pos)))))))
-(defun lex--match-bosp (arg pos &optional string)
+(defun lex--match-bosp (_arg pos &optional string)
(and (not (if string
(and (> pos 0)
(memq (char-syntax (aref string (1- pos))) '(?w ?_)))
@@ -1103,7 +1103,7 @@ Returns a new NFA."
(memq (char-syntax (aref string pos)) '(?w ?_)))
(memq (car (syntax-after pos)) '(2 3)))))
-(defun lex--match-eosp (arg pos &optional string)
+(defun lex--match-eosp (_arg pos &optional string)
(and (if string (and (> pos 0)
(memq (char-syntax (aref string (1- pos))) '(?w ?_)))
(and (> pos (point-min)) (memq (car (syntax-after (1- pos))) '(2 3))))
@@ -1111,7 +1111,7 @@ Returns a new NFA."
(memq (char-syntax (aref string pos)) '(?w ?_)))
(memq (car (syntax-after pos)) '(2 3))))))
-(defun lex--match-not-word-boundary (arg pos &optional string)
+(defun lex--match-not-word-boundary (_arg pos &optional string)
(eq (if string (and (> pos 0)
(eq ?w (char-syntax (aref string (1- pos)))))
(and (> pos (point-min)) (eq 2 (car (syntax-after (1- pos))))))
@@ -1119,12 +1119,12 @@ Returns a new NFA."
(eq ?w (char-syntax (aref string pos))))
(eq 2 (car (syntax-after pos))))))
-(defun lex--match-upper (arg pos &optional string)
+(defun lex--match-upper (_arg pos &optional string)
(when (< pos (if string (length string) (point-max)))
(let ((char (if string (aref string pos) (char-after pos))))
(not (eq (downcase char) char)))))
-(defun lex--match-lower (arg pos &optional string)
+(defun lex--match-lower (_arg pos &optional string)
(when (< pos (if string (length string) (point-max)))
(let ((char (if string (aref string pos) (char-after pos))))
(not (eq (upcase char) char)))))
- [elpa] branch externals/lex created (now a25aef6), Stefan Monnier, 2020/12/01
- [elpa] externals/lex 02a8843 1/7: New package lex.el., Stefan Monnier, 2020/12/01
- [elpa] externals/lex d5f1594 3/7: * lex.el: Compatibility fix, Stefan Monnier, 2020/12/01
- [elpa] externals/lex e9faad4 4/7: Only keep the strictly necessary *-pkg.el files, Stefan Monnier, 2020/12/01
- [elpa] externals/lex 5483ed3 5/7: * packages/lex/lex.el: Use lexical-binding.,
Stefan Monnier <=
- [elpa] externals/lex fe3a98b 2/7: * packages/lex/lex-parse-re.el: New file, extracted from lex.el., Stefan Monnier, 2020/12/01
- [elpa] externals/lex cd89324 6/7: * packages/gnome-c-style/gnome-c-tests.el: Add copyright blurb, Stefan Monnier, 2020/12/01
- [elpa] externals/lex a25aef6 7/7: * .gitignore: New file, Stefan Monnier, 2020/12/01