mirror of
				https://github.com/cmur2/joe-syntax.git
				synced 2025-10-31 00:25:07 +01:00 
			
		
		
		
	Ruby: remove .<digit> float support
Newer Rubies (appearently 1.7 and above) do not accept floating point literals like .5 anymore with the following error: no .<digit> floating literal anymore; put 0 before dot
This commit is contained in:
		
							
								
								
									
										5
									
								
								ruby.jsf
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								ruby.jsf
									
									
									
									
									
								
							| @@ -38,7 +38,6 @@ | |||||||
| 	"{}"		brace		recolor=-1 | 	"{}"		brace		recolor=-1 | ||||||
| 	"0"		first_digit	recolor=-1 | 	"0"		first_digit	recolor=-1 | ||||||
| 	"1-9"		decimal		recolor=-1 | 	"1-9"		decimal		recolor=-1 | ||||||
| 	"."		maybe_float |  | ||||||
| 	"\""		string		recolor=-1 | 	"\""		string		recolor=-1 | ||||||
| 	"'"		char		recolor=-1 | 	"'"		char		recolor=-1 | ||||||
| 	"`"		backtick	recolor=-1 | 	"`"		backtick	recolor=-1 | ||||||
| @@ -203,10 +202,6 @@ done | |||||||
| 	"eE"		epart | 	"eE"		epart | ||||||
| 	"."		float | 	"."		float | ||||||
|  |  | ||||||
| :maybe_float Constant |  | ||||||
| 	*		after_term	noeat recolor=-2 |  | ||||||
| 	"0-9"		float		recolor=-2 |  | ||||||
|  |  | ||||||
| :float Constant | :float Constant | ||||||
| 	*		after_term	noeat | 	*		after_term	noeat | ||||||
| 	"eE"		epart | 	"eE"		epart | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Christian Nicolai
					Christian Nicolai