Fixes #90. The problem wasn't with the end keyword, but the way the Actor was being matched. In this case, it didn't properly handle ending parentheses, which caused the whole line to not be treated as a proper "(Actor)(Arrow)(Actor)(:)(Message)" line and thus fallback to only looking for end within the line.
With the change, this line is properly highlighted:
Fixes #90. The problem wasn't with the
end
keyword, but the way the Actor was being matched. In this case, it didn't properly handle ending parentheses, which caused the whole line to not be treated as a proper "(Actor)(Arrow)(Actor)(:)(Message)" line and thus fallback to only looking forend
within the line.With the change, this line is properly highlighted: