branch: master
commit 849e061c16393e209570b35c444bca7d83587558
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>
js2-indent-operator-re, js2-declaration-keyword-re: Use symbols boundaries
Fixes #319
---
js2-old-indent.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/js2-old-indent.el b/js2-old-indent.el
index 9768d1e..d855b9e 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)