Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Sun, 13 Oct 2013 11:32:08 UTC Commit: 7cf927cae49326af56dbeee5cdee922c83a7a29a https://github.com/geany/geany-plugins/commit/7cf927cae49326af56dbeee5cdee92...
Log Message: ----------- Update string/comment style types to check for newly added filetypes in Geany
Modified Paths: -------------- spellcheck/src/speller.c
Modified: spellcheck/src/speller.c 44 files changed, 42 insertions(+), 2 deletions(-) =================================================================== @@ -558,6 +558,20 @@ gboolean sc_speller_is_text(GeanyDocument *doc, gint pos) lexer = scintilla_send_message(doc->editor->sci, SCI_GETLEXER, 0, 0); switch (lexer) { + case SCLEX_ABAQUS: + { + switch (style) + { + case SCE_ABAQUS_DEFAULT: + case SCE_ABAQUS_COMMENT: + case SCE_ABAQUS_COMMENTBLOCK: + case SCE_ABAQUS_STRING: + return TRUE; + default: + return FALSE; + } + break; + } case SCLEX_ADA: { switch (style) @@ -604,6 +618,18 @@ gboolean sc_speller_is_text(GeanyDocument *doc, gint pos) } break; } + case SCLEX_BATCH: + { + switch (style) + { + case SCE_BAT_DEFAULT: + case SCE_BAT_COMMENT: + return TRUE; + default: + return FALSE; + } + break; + } case SCLEX_CAML: { switch (style) @@ -927,6 +953,7 @@ gboolean sc_speller_is_text(GeanyDocument *doc, gint pos) break; } case SCLEX_MATLAB: + case SCLEX_OCTAVE: { switch (style) { @@ -990,6 +1017,21 @@ gboolean sc_speller_is_text(GeanyDocument *doc, gint pos) } break; } + case SCLEX_POWERSHELL: + { + switch (style) + { + case SCE_POWERSHELL_DEFAULT: + case SCE_POWERSHELL_COMMENT: + case SCE_POWERSHELL_STRING: + case SCE_POWERSHELL_COMMENTSTREAM: + case SCE_POWERSHELL_COMMENTDOCKEYWORD: + return TRUE; + default: + return FALSE; + } + break; + } case SCLEX_PROPERTIES: { switch (style) @@ -1134,5 +1176,3 @@ gboolean sc_speller_is_text(GeanyDocument *doc, gint pos) * valid text to not ignore more than we want */ return TRUE; } - -
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).