[Github-comments] [geany/geany] lexer.python.keywords2.no.sub.identifiers should default to 1 (#1542)

Vasiliy Faronov notifications at xxxxx
Sat Jul 15 15:20:30 UTC 2017


Scintilla’s Python lexer has a property `lexer.python.keywords2.no.sub.identifiers` which, when set to 1, prevents it from highlighting attributes as builtins.

In other words, with this property set to 1, a bare `file` is highlighted, because it’s a Python builtin, but the word `file` in `obj.file` is not highlighted, because it’s an unknown attribute of `obj`.

This is almost always the desired behavior and it should be the default. If someone has a peculiar codebase where `obj.file` is the same as the builtin `file`, they can flip the switch back in their `filetypes.python`.

-- 
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/1542
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170715/c7100161/attachment.html>


More information about the Github-comments mailing list