Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Sun, 20 Apr 2014 15:33:15 UTC Commit: 136362dd0b05127e7ccefe29c538fd2057f0ed7e https://github.com/geany/geany-plugins/commit/136362dd0b05127e7ccefe29c538fd...
Log Message: ----------- 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.
Modified Paths: -------------- spellcheck/src/speller.c
Modified: spellcheck/src/speller.c 7 lines changed, 0 insertions(+), 7 deletions(-) =================================================================== @@ -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:
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org