diff options
| author | Stefan Monnier | 2017-03-16 09:44:56 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2017-03-16 09:44:56 -0400 |
| commit | f6b995ef4ec50455f8dbf174b91de6b5887d014e (patch) | |
| tree | 5c712b8890d7265384c4ba88f3af589c4d5f9f7f | |
| parent | a3207a383009720bbd89327425e0eb1c9c20c267 (diff) | |
| download | emacs-f6b995ef4ec50455f8dbf174b91de6b5887d014e.tar.gz emacs-f6b995ef4ec50455f8dbf174b91de6b5887d014e.zip | |
(semantic-lex-type-invalid): Fix nested backquote.
* lisp/cedet/semantic/lex.el: Use lexical-binding.
(semantic-lex-type-invalid): Fix nested backquote.
(semantic-lex-map-symbols, semantic-lex-type-symbol)
(semantic-lex-keyword-symbol): Use obarrayp.
| -rw-r--r-- | lisp/cedet/semantic/lex.el | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/cedet/semantic/lex.el b/lisp/cedet/semantic/lex.el index 2e8817e13a1..b2a63cdcc3c 100644 --- a/lisp/cedet/semantic/lex.el +++ b/lisp/cedet/semantic/lex.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; semantic/lex.el --- Lexical Analyzer builder | 1 | ;;; semantic/lex.el --- Lexical Analyzer builder -*- lexical-binding:t -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1999-2017 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1999-2017 Free Software Foundation, Inc. |
| 4 | 4 | ||
| @@ -190,7 +190,7 @@ | |||
| 190 | "Call function FUN on every symbol in TABLE. | 190 | "Call function FUN on every symbol in TABLE. |
| 191 | If optional PROPERTY is non-nil, call FUN only on every symbol which | 191 | If optional PROPERTY is non-nil, call FUN only on every symbol which |
| 192 | as a PROPERTY value. FUN receives a symbol as argument." | 192 | as a PROPERTY value. FUN receives a symbol as argument." |
| 193 | (if (arrayp table) | 193 | (if (obarrayp table) |
| 194 | (mapatoms | 194 | (mapatoms |
| 195 | #'(lambda (symbol) | 195 | #'(lambda (symbol) |
| 196 | (if (or (null property) (get symbol property)) | 196 | (if (or (null property) (get symbol property)) |
| @@ -213,7 +213,7 @@ These keywords are matched explicitly, and converted into special symbols.") | |||
| 213 | 213 | ||
| 214 | (defsubst semantic-lex-keyword-symbol (name) | 214 | (defsubst semantic-lex-keyword-symbol (name) |
| 215 | "Return keyword symbol with NAME or nil if not found." | 215 | "Return keyword symbol with NAME or nil if not found." |
| 216 | (and (arrayp semantic-flex-keywords-obarray) | 216 | (and (obarrayp semantic-flex-keywords-obarray) |
| 217 | (stringp name) | 217 | (stringp name) |
| 218 | (intern-soft name semantic-flex-keywords-obarray))) | 218 | (intern-soft name semantic-flex-keywords-obarray))) |
| 219 | 219 | ||
| @@ -337,13 +337,13 @@ so that analysis can continue, if possible." | |||
| 337 | "Buffer local types obarray for the lexical analyzer.") | 337 | "Buffer local types obarray for the lexical analyzer.") |
| 338 | (make-variable-buffer-local 'semantic-lex-types-obarray) | 338 | (make-variable-buffer-local 'semantic-lex-types-obarray) |
| 339 | 339 | ||
| 340 | (defmacro semantic-lex-type-invalid (type) | 340 | (defun semantic-lex-type-invalid (type) |
| 341 | "Signal that TYPE is an invalid lexical type name." | 341 | "Signal that TYPE is an invalid lexical type name." |
| 342 | `(signal 'wrong-type-argument '(semantic-lex-type-p ,type))) | 342 | (signal 'wrong-type-argument `(semantic-lex-type-p ,type))) |
| 343 | 343 | ||
| 344 | (defsubst semantic-lex-type-symbol (type) | 344 | (defsubst semantic-lex-type-symbol (type) |
| 345 | "Return symbol with TYPE or nil if not found." | 345 | "Return symbol with TYPE or nil if not found." |
| 346 | (and (arrayp semantic-lex-types-obarray) | 346 | (and (obarrayp semantic-lex-types-obarray) |
| 347 | (stringp type) | 347 | (stringp type) |
| 348 | (intern-soft type semantic-lex-types-obarray))) | 348 | (intern-soft type semantic-lex-types-obarray))) |
| 349 | 349 | ||
| @@ -635,7 +635,7 @@ This specifies how many lists to create tokens in.") | |||
| 635 | (make-variable-buffer-local 'semantic-lex-depth) | 635 | (make-variable-buffer-local 'semantic-lex-depth) |
| 636 | 636 | ||
| 637 | (defvar semantic-lex-unterminated-syntax-end-function | 637 | (defvar semantic-lex-unterminated-syntax-end-function |
| 638 | (lambda (syntax syntax-start lex-end) lex-end) | 638 | (lambda (_syntax _syntax-start lex-end) lex-end) |
| 639 | "Function called when unterminated syntax is encountered. | 639 | "Function called when unterminated syntax is encountered. |
| 640 | This should be set to one function. That function should take three | 640 | This should be set to one function. That function should take three |
| 641 | parameters. The SYNTAX, or type of syntax which is unterminated. | 641 | parameters. The SYNTAX, or type of syntax which is unterminated. |
| @@ -1779,7 +1779,7 @@ If there is no error, then the last value of FORMS is returned." | |||
| 1779 | See variable `semantic-lex-tokens'.") | 1779 | See variable `semantic-lex-tokens'.") |
| 1780 | 1780 | ||
| 1781 | (defvar semantic-flex-unterminated-syntax-end-function | 1781 | (defvar semantic-flex-unterminated-syntax-end-function |
| 1782 | (lambda (syntax syntax-start flex-end) flex-end) | 1782 | (lambda (_syntax _syntax-start flex-end) flex-end) |
| 1783 | "Function called when unterminated syntax is encountered. | 1783 | "Function called when unterminated syntax is encountered. |
| 1784 | This should be set to one function. That function should take three | 1784 | This should be set to one function. That function should take three |
| 1785 | parameters. The SYNTAX, or type of syntax which is unterminated. | 1785 | parameters. The SYNTAX, or type of syntax which is unterminated. |