GNOME Bugzilla – Bug 566982
don't autocomplete inside string or comment
Last modified: 2010-01-10 13:47:24 UTC
Anjuta offers symbol autocompletions even when I'm typing a string constant or comment. This is annoying, since most words in these contexts are not symbols. We shouldn't offer autocompletions in these contexts.
Created attachment 125999 [details] screenshot
this is language-support related.
I think scintilla doesn't autocomplete inside a comment or string. Unfortunately, gtksourceview does not export this information. There is a bug in gtksourceview about it, though I don't have the number handy currently. Can you check if this also happens with scintilla? Otherwise, I will reassign it to gtksourceview.
Scintilla autocompletes if you explicit tell it to do so. in the example it'll autocomplete only if you open the braket "main ("
I just tried this in Scintilla. The behavior is exactly the same as in gtksourceview: Anjuta offers autocompletions even when I'm typing a comment or string constant.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.