mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-30 09:00:31 -08:00
Remove some useless eval-when-compile
* lisp/cedet/semantic/java.el (semantic-java-number-regexp): * lisp/cedet/semantic/lex.el (semantic-lex-number-expression): * lisp/emacs-lisp/cl-indent.el (common-lisp-indent-function-1): * lisp/emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression) (lisp--el-match-keyword, lisp-string-in-doc-position-p): * lisp/emacs-lisp/shorthands.el (shorthands-font-lock-shorthands): * lisp/net/socks.el (socks-send-command): * lisp/progmodes/meta-mode.el (meta-font-lock-keywords): * lisp/shell.el (shell--parse-pcomplete-arguments): * lisp/textmodes/sgml-mode.el (sgml-mode): * lisp/textmodes/tex-mode.el (tex--guess-mode) (tex-common-initialization, tex-input-files-re): * lisp/textmodes/tildify.el (tildify-mode): * lisp/xdg.el (xdg-line-regexp): Eliminate `eval-when-compile` when the argument would be evaluated by the compiler anyway.
This commit is contained in:
parent
544361d37f
commit
1268902db1
12 changed files with 141 additions and 162 deletions
|
|
@ -37,25 +37,24 @@
|
|||
;;; Lexical analysis
|
||||
;;
|
||||
(defconst semantic-java-number-regexp
|
||||
(eval-when-compile
|
||||
(concat "\\("
|
||||
"\\<[0-9]+[.][0-9]+\\([eE][-+]?[0-9]+\\)?[fFdD]?\\>"
|
||||
"\\|"
|
||||
"\\<[0-9]+[.][eE][-+]?[0-9]+[fFdD]?\\>"
|
||||
"\\|"
|
||||
"\\<[0-9]+[.][fFdD]\\>"
|
||||
"\\|"
|
||||
"\\<[0-9]+[.]"
|
||||
"\\|"
|
||||
"[.][0-9]+\\([eE][-+]?[0-9]+\\)?[fFdD]?\\>"
|
||||
"\\|"
|
||||
"\\<[0-9]+[eE][-+]?[0-9]+[fFdD]?\\>"
|
||||
"\\|"
|
||||
"\\<0[xX][[:xdigit:]]+[lL]?\\>"
|
||||
"\\|"
|
||||
"\\<[0-9]+[lLfFdD]?\\>"
|
||||
"\\)"
|
||||
))
|
||||
(concat "\\("
|
||||
"\\<[0-9]+[.][0-9]+\\([eE][-+]?[0-9]+\\)?[fFdD]?\\>"
|
||||
"\\|"
|
||||
"\\<[0-9]+[.][eE][-+]?[0-9]+[fFdD]?\\>"
|
||||
"\\|"
|
||||
"\\<[0-9]+[.][fFdD]\\>"
|
||||
"\\|"
|
||||
"\\<[0-9]+[.]"
|
||||
"\\|"
|
||||
"[.][0-9]+\\([eE][-+]?[0-9]+\\)?[fFdD]?\\>"
|
||||
"\\|"
|
||||
"\\<[0-9]+[eE][-+]?[0-9]+[fFdD]?\\>"
|
||||
"\\|"
|
||||
"\\<0[xX][[:xdigit:]]+[lL]?\\>"
|
||||
"\\|"
|
||||
"\\<[0-9]+[lLfFdD]?\\>"
|
||||
"\\)"
|
||||
)
|
||||
"Lexer regexp to match Java number terminals.
|
||||
Following is the specification of Java number literals.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue