Merge pull request #366 from felipegchi/rule-orig

Fix file origin of rules
This commit is contained in:
Victor Taelin 2022-09-21 12:19:55 -03:00 committed by GitHub
commit d8eced2fc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -617,6 +617,7 @@ pub fn entry_set_origin_file(entry: &mut Entry, file: usize) {
}
pub fn rule_set_origin_file(rule: &mut Rule, file: usize) {
rule.orig = set_origin_file(rule.orig, file);
for pat in &mut rule.pats {
term_set_origin_file(pat, file);
}