Ignore autocompletion in D WYSIWYG strings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3932 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
1063c6ebdf
commit
a0aa8b9919
12
src/editor.c
12
src/editor.c
@ -1725,7 +1725,7 @@ static gboolean autocomplete_check_for_html(gint ft_id, gint style)
|
|||||||
|
|
||||||
|
|
||||||
/* Algorithm based on based on Scite's StartAutoCompleteWord() */
|
/* Algorithm based on based on Scite's StartAutoCompleteWord() */
|
||||||
static gboolean complete_doc_word(GeanyEditor *editor, gchar *root, gsize rootlen)
|
static gboolean autocomplete_doc_word(GeanyEditor *editor, gchar *root, gsize rootlen)
|
||||||
{
|
{
|
||||||
ScintillaObject *sci = editor->sci;
|
ScintillaObject *sci = editor->sci;
|
||||||
gchar *word;
|
gchar *word;
|
||||||
@ -1869,7 +1869,7 @@ gboolean editor_start_auto_complete(GeanyEditor *editor, gint pos, gboolean forc
|
|||||||
ret = autocomplete_tags(editor, root, rootlen);
|
ret = autocomplete_tags(editor, root, rootlen);
|
||||||
/* If forcing and there's nothing else to show, complete from words in document */
|
/* If forcing and there's nothing else to show, complete from words in document */
|
||||||
if (!ret && (force || editor_prefs.autocomplete_doc_words))
|
if (!ret && (force || editor_prefs.autocomplete_doc_words))
|
||||||
ret = complete_doc_word(editor, root, rootlen);
|
ret = autocomplete_doc_word(editor, root, rootlen);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3172,9 +3172,11 @@ static gboolean is_string_style(gint lexer, gint style)
|
|||||||
style == SCE_PAS_STRINGEOL);
|
style == SCE_PAS_STRINGEOL);
|
||||||
|
|
||||||
case SCLEX_D:
|
case SCLEX_D:
|
||||||
return (style == SCE_D_CHARACTER ||
|
return (style == SCE_D_STRING ||
|
||||||
style == SCE_D_STRING ||
|
style == SCE_D_STRINGEOL ||
|
||||||
style == SCE_D_STRINGEOL);
|
style == SCE_D_CHARACTER ||
|
||||||
|
style == SCE_D_STRINGB ||
|
||||||
|
style == SCE_D_STRINGR);
|
||||||
|
|
||||||
case SCLEX_PYTHON:
|
case SCLEX_PYTHON:
|
||||||
return (style == SCE_P_STRING ||
|
return (style == SCE_P_STRING ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user