We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In order to keep consistency, rule location should encapsulate the whole rule (the string case is similar).
rule.location.begin
rule.location.end
}
rule.token_name
def test_rule_location(self): ymod = yaramod.Yaramod() yara_file = ymod.parse_string(r'''rule rule1 : Tag1 { strings: $1 = "Hello World!" condition: false } ''') r = yara_file.rules[0] self.assertEqual(r.location.begin.line, 1) self.assertEqual(r.location.begin.column, 1) self.assertEqual(r.location.end.line, 6) self.assertEqual(r.location.end.column, 1)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In order to keep consistency, rule location should encapsulate the whole rule (the string case is similar).
rule.location.begin
should be first character of the rule (can be even modifiers)rule.location.end
should be the last character of the rule}
rule.token_name
can be exposed to provide access to the (probably) commonly accessed token the rule nameThe text was updated successfully, but these errors were encountered: