refactor: improve quoted values matching
							parent
							
								
									c34e3a36f3
								
							
						
					
					
						commit
						30e2bfbef5
					
				
							
								
								
									
										9
									
								
								html.lua
								
								
								
								
							
							
						
						
									
										9
									
								
								html.lua
								
								
								
								
							| 
						 | 
					@ -356,16 +356,13 @@ function M.tokenise( content )
 | 
				
			||||||
				end
 | 
									end
 | 
				
			||||||
			end
 | 
								end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
			if char == "'" or char == '"' then
 | 
								if char == "'" or char == '"' then
 | 
				
			||||||
				if currently_opened_quotes == char then
 | 
									-- found matching closing quote type
 | 
				
			||||||
 | 
									if char == currently_opened_quotes then
 | 
				
			||||||
					currently_opened_quotes = nil
 | 
										currently_opened_quotes = nil
 | 
				
			||||||
				else
 | 
									elseif currently_opened_quotes == nil then
 | 
				
			||||||
					currently_opened_quotes = char
 | 
										currently_opened_quotes = char
 | 
				
			||||||
				end
 | 
									end
 | 
				
			||||||
 | 
					 | 
				
			||||||
				text_memory = text_memory .. char
 | 
					 | 
				
			||||||
				goto continue
 | 
					 | 
				
			||||||
			end
 | 
								end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			text_memory = text_memory .. char
 | 
								text_memory = text_memory .. char
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue