mirror of
				https://gitea.invidious.io/iv-org/shard-ameba.git
				synced 2024-08-15 00:53:29 +00:00 
			
		
		
		
	Add comments to macros
This commit is contained in:
		
							parent
							
								
									94e31d4685
								
							
						
					
					
						commit
						b156a6a6a1
					
				
					 2 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -240,6 +240,7 @@ class Ameba::Config
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # :nodoc:
 | 
					  # :nodoc:
 | 
				
			||||||
  module RuleConfig
 | 
					  module RuleConfig
 | 
				
			||||||
 | 
					    # Define rule properties
 | 
				
			||||||
    macro properties(&block)
 | 
					    macro properties(&block)
 | 
				
			||||||
      {% definitions = [] of NamedTuple %}
 | 
					      {% definitions = [] of NamedTuple %}
 | 
				
			||||||
      {% if block.body.is_a? Assign %}
 | 
					      {% if block.body.is_a? Assign %}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -112,6 +112,7 @@ module Ameba::Rule
 | 
				
			||||||
      name.hash
 | 
					      name.hash
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # Adds an issue to the *source*
 | 
				
			||||||
    macro issue_for(*args, **kwargs, &block)
 | 
					    macro issue_for(*args, **kwargs, &block)
 | 
				
			||||||
      source.add_issue(self, {{ *args }}, {{ **kwargs }}) {{ block }}
 | 
					      source.add_issue(self, {{ *args }}, {{ **kwargs }}) {{ block }}
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue