From c45fd91574a268417fc49cbd2923b55a2b0a9eb0 Mon Sep 17 00:00:00 2001 From: Skif-off Date: Tue, 31 Dec 2024 02:50:28 +0400 Subject: [PATCH] GeanyLua: Add the 'single' field to 'geany.fileinfo'. --- geanylua/docs/geanylua-ref.html | 1 + geanylua/glspi_doc.c | 1 + 2 files changed, 2 insertions(+) diff --git a/geanylua/docs/geanylua-ref.html b/geanylua/docs/geanylua-ref.html index c11837554..748d2a86b 100644 --- a/geanylua/docs/geanylua-ref.html +++ b/geanylua/docs/geanylua-ref.html @@ -544,6 +544,7 @@ ext -- The file extension, including the dot, e.g. ".DLL" or ".txt" type -- A one-word description of the filetype, e.g. "C" or "Python". desc -- A longer description of the filetype, e.g. "Lua source file" or "Cascading StyleSheet". +single -- The line used for a single-line comment, e.g. "//". opener -- The string used to begin a comment, e.g. "<!--". closer -- The string used to end a comment, e.g. "-->". action -- The action command as executed by the context menu diff --git a/geanylua/glspi_doc.c b/geanylua/glspi_doc.c index cc1e4fe77..1fa0580ff 100644 --- a/geanylua/glspi_doc.c +++ b/geanylua/glspi_doc.c @@ -316,6 +316,7 @@ static gint glspi_fileinfo(lua_State* L) } SetTableStr("type", FileTypeStr(name)); SetTableStr("desc", FileTypeStr(title)); + SetTableStr("single", FileTypeStr(comment_single)); SetTableStr("opener", FileTypeStr(comment_open)); SetTableStr("closer", FileTypeStr(comment_close)); SetTableStr("action", FileTypeStr(context_action_cmd));