Skip to content

Commit

Permalink
Update string/comment style types to check for newly added filetypes …
Browse files Browse the repository at this point in the history
…in Geany
  • Loading branch information
eht16 committed Oct 13, 2013
1 parent 4a0ce3e commit 7cf927c
Showing 1 changed file with 42 additions and 2 deletions.
44 changes: 42 additions & 2 deletions spellcheck/src/speller.c
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -927,6 +953,7 @@ gboolean sc_speller_is_text(GeanyDocument *doc, gint pos)
break;
}
case SCLEX_MATLAB:
case SCLEX_OCTAVE:
{
switch (style)
{
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -1134,5 +1176,3 @@ gboolean sc_speller_is_text(GeanyDocument *doc, gint pos)
* valid text to not ignore more than we want */
return TRUE;
}


0 comments on commit 7cf927c

Please sign in to comment.