Steps to reproduce: 1. Open kate 2. Switch syntax mode to "Lua" 3. Type in "function " and press return. What happens: kate indents the following line, presumably because it interprets the string as a function declaration. What should happen: Not that.
@Jonathan, since you are the author of the lua.js, could you have a look into this? https://phabricator.kde.org/source/ktexteditor/browse/master/src/script/data/indentation/lua.js I guess with functions like document.isCode(), isString(), isComment() etc. this probabl can easily be fixed. See API in: https://phabricator.kde.org/source/ktexteditor/browse/master/src/script/katescriptdocument.h See also: https://docs.kde.org/stable5/en/applications/katepart/dev-scripting.html
lua.js was removed https://invent.kde.org/frameworks/ktexteditor/-/commit/73034646a306b85cf8bba50238c6ffd15bcf3f0f?merge_request_iid=222