Kaydet (Commit) e7206f35 authored tarafından Nick Treleaven's avatar Nick Treleaven

Add sci_get_lexer() to plugin API.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5352 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst cf6756d0
2010-11-02 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/plugindata.h, src/plugins.c, plugins/geanyfunctions.h:
Add sci_get_lexer() to plugin API.
2010-11-01 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/utils.c, src/main.c:
......
......@@ -198,6 +198,8 @@
geany_functions->p_sci->sci_set_line_indentation
#define sci_get_line_indentation \
geany_functions->p_sci->sci_get_line_indentation
#define sci_get_lexer \
geany_functions->p_sci->sci_get_lexer
#define templates_get_template_fileheader \
geany_functions->p_templates->templates_get_template_fileheader
#define utils_str_equal \
......
......@@ -50,7 +50,7 @@
enum {
/** The Application Programming Interface (API) version, incremented
* whenever any plugin data types are modified or appended to. */
GEANY_API_VERSION = 196,
GEANY_API_VERSION = 197,
/** The Application Binary Interface (ABI) version, incremented whenever
* existing fields in the plugin data types have to be changed or reordered. */
......@@ -384,6 +384,7 @@ typedef struct SciFuncs
gint (*sci_find_text) (struct _ScintillaObject *sci, gint flags, struct Sci_TextToFind *ttf);
void (*sci_set_line_indentation) (struct _ScintillaObject *sci, gint line, gint indent);
gint (*sci_get_line_indentation) (struct _ScintillaObject *sci, gint line);
gint (*sci_get_lexer) (struct _ScintillaObject *sci);
}
SciFuncs;
......
......@@ -187,7 +187,8 @@ static SciFuncs sci_funcs = {
&sci_goto_line,
&sci_find_text,
&sci_set_line_indentation,
&sci_get_line_indentation
&sci_get_line_indentation,
&sci_get_lexer
};
static TemplateFuncs template_funcs = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment