Skip to content

Commit 8c567d3

Browse files
committed
GeanyLua: Add the 'comment' field to 'geany.fileinfo'; rename fields 'opener' and 'closer' to 'comment_open' and 'comment_close'.
1 parent a10d86b commit 8c567d3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

geanylua/docs/geanylua-ref.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,9 @@
544544
<tr><td width="5%"></td><td><tt>ext</tt> </td><td> -- The file extension, including the dot, e.g. "<b>.DLL</b>" or "<b>.txt</b>"</td></tr>
545545
<tr><td width="5%"></td><td><tt>type</tt> </td><td> -- A one-word description of the filetype, e.g. "<b>C</b>" or "<b>Python</b>".</td></tr>
546546
<tr><td width="5%"></td><td><tt>desc</tt> </td><td> -- A longer description of the filetype, e.g. "<b>Lua source file</b>" or "<b>Cascading StyleSheet</b>".</td></tr>
547-
<tr><td width="5%"></td><td><tt>opener</tt> </td><td> -- The string used to begin a comment, e.g. "<b class="desc">&lt;!--</b>".</td></tr>
548-
<tr><td width="5%"></td><td><tt>closer</tt> </td><td> -- The string used to end a comment, e.g. "<b class="desc">--&gt;</b>".</td></tr>
547+
<tr><td width="5%"></td><td><tt>comment</tt> </td><td> -- The line used for a single-line comment, e.g. "<b class="desc">//</b>".</td></tr>
548+
<tr><td width="5%"></td><td><tt>comment_open</tt> </td><td> -- The string used to begin a multi-line comment, e.g. "<b class="desc">&lt;!--</b>".</td></tr>
549+
<tr><td width="5%"></td><td><tt>comment_close</tt> </td><td> -- The string used to end a multi-line comment, e.g. "<b class="desc">--&gt;</b>".</td></tr>
549550
<tr><td width="5%"></td><td><tt>action</tt> </td><td> -- The action command as executed by the context menu</td></tr>
550551
<!--
551552
<tr><td width="5%"></td><td><tt>compiler</tt> </td><td> -- The command used to compile this type of file.</td></tr>

geanylua/glspi_doc.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,9 @@ static gint glspi_fileinfo(lua_State* L)
321321
}
322322
SetTableStr("type", FileTypeStr(name));
323323
SetTableStr("desc", FileTypeStr(title));
324-
SetTableStr("opener", FileTypeStr(comment_open));
325-
SetTableStr("closer", FileTypeStr(comment_close));
324+
SetTableStr("comment", FileTypeStr(comment_single));
325+
SetTableStr("comment_open", FileTypeStr(comment_open));
326+
SetTableStr("comment_close", FileTypeStr(comment_close));
326327
SetTableStr("action", FileTypeStr(context_action_cmd));
327328
/*
328329
SetTableStr("compiler", BuildCmdStr(compiler));

0 commit comments

Comments
 (0)