branch: externals/js2-mode commit 6bee6cc9a6a38aa05bec63a1e501b2d287d7f00f Author: Damien Cassou <dam...@cassou.me> Commit: Damien Cassou <dam...@cassou.me>
Replace deprecated `lsh' with `ash' Both are equivalent when the second argument is positive. --- js2-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js2-mode.el b/js2-mode.el index 9961a72b53..123101421a 100644 --- a/js2-mode.el +++ b/js2-mode.el @@ -778,7 +778,7 @@ parser as a frontend to an interpreter or byte compiler.") ;;; Parser instance variables (buffer-local vars for js2-parse) -(defconst js2-ti-after-eol (lsh 1 16) +(defconst js2-ti-after-eol (ash 1 16) "Flag: first token of the source line.") ;; Inline Rhino's CompilerEnvirons vars as buffer-locals. @@ -5855,7 +5855,7 @@ corresponding number. Otherwise return -1." (cl-decf c (- ?a 10)) (throw 'check nil)))) (throw 'return -1)) - (logior c (lsh accumulator 4)))) + (logior c (ash accumulator 4)))) (defun js2-get-token (&optional modifier) "If `js2-ti-lookahead' is zero, call scanner to get new token.