From: Dmitry Gutov Date: Fri, 18 Mar 2016 15:46:10 +0000 (+0200) Subject: js2-indent-operator-re, js2-declaration-keyword-re: Use symbols boundaries X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/849e061c16393e209570b35c444bca7d83587558 js2-indent-operator-re, js2-declaration-keyword-re: Use symbols boundaries Fixes #319 --- diff --git a/js2-old-indent.el b/js2-old-indent.el index 9768d1e51..d855b9e25 100644 --- a/js2-old-indent.el +++ b/js2-old-indent.el @@ -132,12 +132,12 @@ followed by an opening brace.") (defconst js2-indent-operator-re (concat "[-+*/%<>&^|?:.]\\([^-+*/]\\|$\\)\\|!?=\\|" - (regexp-opt '("in" "instanceof") 'words)) + (regexp-opt '("in" "instanceof") 'symbols)) "Regular expression matching operators that affect indentation of continued expressions.") (defconst js2-declaration-keyword-re - (regexp-opt '("var" "let" "const") 'words) + (regexp-opt '("var" "let" "const") 'symbols) "Regular expression matching variable declaration keywords.") (defun js2-re-search-forward-inner (regexp &optional bound count)