Skip to content

Commit 80010b2

Browse files
committed
GeanyLua: Add the 'single' field to 'geany.fileinfo'.
1 parent 2dd3881 commit 80010b2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

geanylua/docs/geanylua-ref.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,7 @@
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>single</tt> </td><td> -- The line used for a single-line comment, e.g. "<b class="desc">//</b>".</td></tr>
547548
<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>
548549
<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>
549550
<tr><td width="5%"></td><td><tt>action</tt> </td><td> -- The action command as executed by the context menu</td></tr>

geanylua/glspi_doc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ static gint glspi_fileinfo(lua_State* L)
316316
}
317317
SetTableStr("type", FileTypeStr(name));
318318
SetTableStr("desc", FileTypeStr(title));
319+
SetTableStr("single", FileTypeStr(comment_single));
319320
SetTableStr("opener", FileTypeStr(comment_open));
320321
SetTableStr("closer", FileTypeStr(comment_close));
321322
SetTableStr("action", FileTypeStr(context_action_cmd));

0 commit comments

Comments
 (0)