emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r108365: * lisp/progmodes/js.el: Add


From: Stefan Monnier
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r108365: * lisp/progmodes/js.el: Add notes in comments.
Date: Fri, 25 May 2012 11:03:22 -0400
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 108365
committer: Stefan Monnier <address@hidden>
branch nick: trunk
timestamp: Fri 2012-05-25 11:03:22 -0400
message:
  * lisp/progmodes/js.el: Add notes in comments.
modified:
  lisp/progmodes/js.el
=== modified file 'lisp/progmodes/js.el'
--- a/lisp/progmodes/js.el      2012-04-26 12:43:28 +0000
+++ b/lisp/progmodes/js.el      2012-05-25 15:03:22 +0000
@@ -1646,6 +1646,11 @@
   (funcall
    (syntax-propertize-rules
     ;; Distinguish /-division from /-regexp chars (and from /-comment-starter).
+    ;; FIXME: Allow regexps after infix ops like + ...
+    ;; https://developer.mozilla.org/en/JavaScript/Reference/Operators
+    ;; We can probably just add +, -, !, <, >, %, ^, ~, |, &, ?, : at which
+    ;; point I think only * and / would be missing which could also be added,
+    ;; but need care to avoid affecting the // and */ comment markers.
     ("\\(?:^\\|[=([{,:;]\\)\\(?:[ \t]\\)*\\(/\\)[^/*]"
      (1 (ignore
         (forward-char -1)
@@ -3324,7 +3329,7 @@
         comment-start-skip "\\(//+\\|/\\*+\\)\\s *")
 
   (set (make-local-variable 'electric-indent-chars)
-       (append "{}():;," electric-indent-chars))
+       (append "{}():;," electric-indent-chars)) ;FIXME: js2-mode adds "[]*".
   (set (make-local-variable 'electric-layout-rules)
        '((?\; . after) (?\{ . after) (?\} . before)))
 


reply via email to

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