José told me:
"In the latest version of gtksourceview, there is the notion of context
classes, which means that the highlighting engine
marks parts of the text to not to be spellchecked. Then the
SpellChecker plugin takes that into account and hence you have proper
spellchecking right in gedit+spellchecker plugin."