Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions rflint/parser/rfkeyword.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,12 @@ def __repr__(self):
# should this return the fully qualified name?
return "<Keyword: %s>" % self.name

# this is great, except that we don't return the line number
# or character position of each tag. The linter needs that. :-(
@property
def tags(self):
tags = []
for statement in self.statements:
if len(statement) > 2 and statement[1].lower() == "[tags]":
tags = tags + statement[2:]
return tags