chore: cosmetic & fix.
This commit is contained in:
parent
72107dcfff
commit
54fdf38861
3 changed files with 32 additions and 14 deletions
|
|
@ -6,24 +6,21 @@ package aa
|
|||
|
||||
import (
|
||||
"slices"
|
||||
)
|
||||
|
||||
const (
|
||||
tokABI = "abi"
|
||||
tokALIAS = "alias"
|
||||
tokINCLUDE = "include"
|
||||
tokIFEXISTS = "if exists"
|
||||
tokVARIABLE = "@{"
|
||||
tokCOMMENT = "#"
|
||||
)
|
||||
|
||||
type Comment struct {
|
||||
RuleBase
|
||||
}
|
||||
|
||||
func newCommentFromRule(rule rule) (Rule, error) {
|
||||
base := newRuleFromRule(rule)
|
||||
base.IsLineRule = true
|
||||
return &Comment{RuleBase: base}, nil
|
||||
}
|
||||
|
||||
func (r *Comment) Less(other any) bool {
|
||||
return false
|
||||
}
|
||||
|
|
@ -152,8 +149,6 @@ type Variable struct {
|
|||
Define bool
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func (r *Variable) Less(other any) bool {
|
||||
o, _ := other.(*Variable)
|
||||
if r.Name != o.Name {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue