mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* misc/ruby-style.el (ruby-style-{case,label}-indent): up list from
indentation point. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									29934eed9d
								
							
						
					
					
						commit
						9f9a532d98
					
				
					 2 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -19,6 +19,7 @@
 | 
			
		|||
 | 
			
		||||
(defun ruby-style-case-indent (x)
 | 
			
		||||
  (save-excursion
 | 
			
		||||
    (back-to-indentation)
 | 
			
		||||
    (unless (progn (backward-up-list) (back-to-indentation)
 | 
			
		||||
		   (> (point) (cdr x)))
 | 
			
		||||
      (goto-char (cdr x))
 | 
			
		||||
| 
						 | 
				
			
			@ -26,6 +27,7 @@
 | 
			
		|||
 | 
			
		||||
(defun ruby-style-label-indent (x)
 | 
			
		||||
  (save-excursion
 | 
			
		||||
    (back-to-indentation)
 | 
			
		||||
    (unless (progn (backward-up-list) (back-to-indentation)
 | 
			
		||||
		   (>= (point) (cdr x)))
 | 
			
		||||
      (goto-char (cdr x))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue