Project

General

Profile

Bug #3320 ยป ruby-mode.el.patch

zev (Zev Blut), 05/20/2010 12:21 AM

View differences:

misc/ruby-mode.el (working copy)
524 524
         (t
525 525
          (setq in-string (point))
526 526
          (goto-char end))))
527
       ((looking-at "/=") 
527
       ((looking-at "/=")
528 528
        (goto-char pnt))
529 529
       ((looking-at "/")
530 530
        (cond
......
779 779
          (setq indent (ruby-indent-size (current-column) (nth 2 state))))
780 780
         (t
781 781
          (setq indent (+ (current-column) ruby-indent-level)))))
782
       
782

  
783 783
       ((and (nth 2 state) (< (nth 2 state) 0)) ; in negative nest
784 784
        (setq indent (ruby-indent-size (current-column) (nth 2 state)))))
785 785
      (when indent
......
1115 1115
               (concat "^[ \t]*\\(def\\|class\\|module\\)[ \t]+"
1116 1116
                       "\\("
1117 1117
                       ;; \\. and :: for class method
1118
                        "\\([A-Za-z_]" ruby-symbol-re "*\\|\\.\\|::" "\\)" 
1118
                        "\\([A-Za-z_]" ruby-symbol-re "*\\|\\.\\|::" "\\)"
1119 1119
                        "+\\)")
1120 1120
               nil t)
1121 1121
              (progn
......
1177 1177
          ("\\(#\\)[{$@]" 1 (1 . nil))
1178 1178
          ;; the last $', $", $` in the respective string is not variable
1179 1179
          ;; the last ?', ?", ?` in the respective string is not ascii code
1180
          ("\\(^\\|[\[ \t\n<+\(,=]\\)\\(['\"`]\\)\\(\\\\.\\|\\2\\|[^'\"`\n\\\\]\\)*?\\\\?[?$]\\(\\2\\)"
1180
          ("\\(^\\|[\[ \t\n<+\(,=:]\\)\\(['\"`]\\)\\(\\\\.\\|\\2\\|[^'\"`\n\\\\]\\)*?\\\\?[?$]\\(\\2\\)"
1181 1181
           (2 (7 . nil))
1182 1182
           (4 (7 . nil)))
1183 1183
          ;; $' $" $` .... are variables