mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* misc/ruby-mode.el (ruby-forward-sexp): stop after literal hash
key labels. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									05a0c30adc
								
							
						
					
					
						commit
						f4c909b965
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1,4 +1,7 @@
 | 
			
		|||
Mon Nov 29 21:11:16 2010  Nobuyoshi Nakada  <nobu@ruby-lang.org>
 | 
			
		||||
Mon Nov 29 21:12:51 2010  Nobuyoshi Nakada  <nobu@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* misc/ruby-mode.el (ruby-forward-sexp): stop after literal hash
 | 
			
		||||
	  key labels.
 | 
			
		||||
 | 
			
		||||
	* misc/ruby-mode.el (ruby-font-lock-keywords): highlight literal
 | 
			
		||||
	  hash key labels as symbols.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -973,6 +973,7 @@ An end of a defun is found by moving forward from the beginning of one."
 | 
			
		|||
      (condition-case nil
 | 
			
		||||
          (while (> i 0)
 | 
			
		||||
            (skip-syntax-forward " ")
 | 
			
		||||
            (if (looking-at ",\\s *") (goto-char (match-end 0)))
 | 
			
		||||
            (cond ((looking-at "\\?\\(\\\\[CM]-\\)*\\\\?\\S ")
 | 
			
		||||
                   (goto-char (match-end 0)))
 | 
			
		||||
                  ((progn
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue