Lua: fix color of end with several levels of condition and function nesting

Authored by jpoelen on Jul 30 2019, 10:28 PM.

Description

Lua: fix color of end with several levels of condition and function nesting

Summary:
if x then

function foo()
  if x then
  end -- control (before: keyword)
end -- keyword (before: control)

end -- control

Reviewers: Framework: Syntax Highlighting, dhaumann, cullmann

Reviewed By: Framework: Syntax Highlighting, cullmann

Subscribers: kde-frameworks-devel, kwrite-devel

Tags: Kate, Frameworks

Differential Revision: https://phabricator.kde.org/D23014