Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

spellcheck: Don't check default styles of embedded HTML scripts

Don't check the spelling for the default styles used by embedded
scripting languages inside HTML.

While spellchecking the default HTML and SGML styles makes sense since
it includes most text, it doesn't make sense to do so for default style
of embedded scripting languages (such as PHP, Python, etc.), as those
"default" styles are the bare identifiers of the language (classes,
functions, etc.).

This doesn't affect HTML or SGML embedded in scripting languages, as
the default style for the scripting languages have a different value
than the ones for the markup languages.
  • Loading branch information...
commit 136362dd0b05127e7ccefe29c538fd2057f0ed7e 1 parent 390f005
@b4n b4n authored
Showing with 0 additions and 7 deletions.
  1. +0 −7 spellcheck/src/speller.c
View
7 spellcheck/src/speller.c
@@ -845,41 +845,34 @@ gboolean sc_speller_is_text(GeanyDocument *doc, gint pos)
case SCE_H_SGML_DOUBLESTRING:
case SCE_H_SGML_SIMPLESTRING:
case SCE_H_SGML_1ST_PARAM_COMMENT:
- case SCE_HJ_DEFAULT:
case SCE_HJ_COMMENT:
case SCE_HJ_COMMENTLINE:
case SCE_HJ_COMMENTDOC:
case SCE_HJ_DOUBLESTRING:
case SCE_HJ_SINGLESTRING:
case SCE_HJ_STRINGEOL:
- case SCE_HB_DEFAULT:
case SCE_HB_COMMENTLINE:
case SCE_HB_STRING:
case SCE_HB_STRINGEOL:
- case SCE_HBA_DEFAULT:
case SCE_HBA_COMMENTLINE:
case SCE_HBA_STRING:
case SCE_HBA_STRINGEOL:
- case SCE_HJA_DEFAULT:
case SCE_HJA_COMMENT:
case SCE_HJA_COMMENTLINE:
case SCE_HJA_COMMENTDOC:
case SCE_HJA_DOUBLESTRING:
case SCE_HJA_SINGLESTRING:
case SCE_HJA_STRINGEOL:
- case SCE_HP_DEFAULT:
case SCE_HP_COMMENTLINE:
case SCE_HP_STRING:
case SCE_HP_CHARACTER:
case SCE_HP_TRIPLE:
case SCE_HP_TRIPLEDOUBLE:
- case SCE_HPA_DEFAULT:
case SCE_HPA_COMMENTLINE:
case SCE_HPA_STRING:
case SCE_HPA_CHARACTER:
case SCE_HPA_TRIPLE:
case SCE_HPA_TRIPLEDOUBLE:
- case SCE_HPHP_DEFAULT:
case SCE_HPHP_SIMPLESTRING:
case SCE_HPHP_HSTRING:
case SCE_HPHP_COMMENT:
Please sign in to comment.
Something went wrong with that request. Please try again.