Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Merged
merged 1 commit into from

2 participants

Colomban Wendling Enrico Tröger
Colomban Wendling
Owner

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.

Colomban Wendling b4n 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.
136362d
Enrico Tröger eht16 merged commit cbfe198 into from
Enrico Tröger
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 20, 2014
  1. Colomban Wendling

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

    b4n authored
    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.
This page is out of date. Refresh to see the latest.
Showing with 0 additions and 7 deletions.
  1. +0 −7 spellcheck/src/speller.c
7 spellcheck/src/speller.c
View
@@ -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:
Something went wrong with that request. Please try again.