emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 849e061 081/110: js2-indent-operator-re, js2-declaration-k


From: Dmitry Gutov
Subject: [elpa] master 849e061 081/110: js2-indent-operator-re, js2-declaration-keyword-re: Use symbols boundaries
Date: Thu, 23 Jun 2016 01:13:01 +0000 (UTC)

branch: master
commit 849e061c16393e209570b35c444bca7d83587558
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]