Docstrings are syntactically __strings__ 
[see](https://docs.python.org/3/reference/lexical_analysis.html) so they will 
show as that, the fact that they are considered docstrings is actually just a 
convention, and not part of the Python language at all.  So greater semantic 
analysis would be needed to identify docstrings if they were to be highlighted 
differently.  And they seem to be highlighted the same as all other strings in 
gedit too (a GTKsourceview editor).

Compare the speed of a GTKsourceview based editor and a Scintilla based editor 
opening a large file, Scintilla is much faster to highlight than gtksourceview, 
thats because Scintilla lexers are C++ not regexen.  But that does allow the 
possibility for smarter lexers too, but "somebody" has to write them and C++ 
takes more effort.

Scintilla supports lots of languages and its unreasonable to expect the 
maintainer to support them all.

So clearly the Scintilla issue 1078 is not important enough for anyone to 
contribute a fix after the maintainer didn't.  Scintilla (and Geany) rely on 
volunteers to support various languages, so if nobody volunteered the fix its 
not causing enough problems.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2799#issuecomment-826089895

Reply via email to