Branch: refs/heads/master Author: Thomas Martitz thomas.martitz@mailbox.org Committer: Thomas Martitz thomas.martitz@mailbox.org Date: Wed, 04 Oct 2023 19:54:27 UTC Commit: 9aa597e945876aa61024de1ff6398fa5eba281f0 https://github.com/geany/geany/commit/9aa597e945876aa61024de1ff6398fa5eba281...
Log Message: ----------- Map new python "attribute" mapping to identifier_2, by default.
"attribute" is for highlighting object attributes or methods, i.e. to style foo and bar differently in foo.bar.
Also set lexer properties to allow scintilla using different styles.
See https://github.com/ScintillaOrg/lexilla/pull/49
Modified Paths: -------------- data/filedefs/filetypes.python.in src/highlightingmappings.h
Modified: data/filedefs/filetypes.python.in 3 lines changed, 3 insertions(+), 0 deletions(-) =================================================================== @@ -21,6 +21,7 @@ fstring=string_1 fcharacter=character ftriple=string_2 ftripledouble=string_2 +attribute=identifier_1
[keywords] # all items must be in one line @@ -34,6 +35,8 @@ identifiers=ArithmeticError AssertionError AttributeError BaseException Blocking [lexer_properties] fold.quotes.python=1 lexer.python.keywords2.no.sub.identifiers=1 +lexer.python.identifier.attributes=1 +lexer.python.identifier.decorator=1
[settings] # default extension used when saving files
Modified: src/highlightingmappings.h 3 lines changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -1349,7 +1349,8 @@ static const HLStyle highlighting_styles_PYTHON[] = { SCE_P_FCHARACTER, "fcharacter", FALSE }, { SCE_P_FTRIPLE, "ftriple", FALSE }, { SCE_P_FTRIPLEDOUBLE, "ftripledouble", FALSE }, - { SCE_P_DECORATOR, "decorator", FALSE } + { SCE_P_DECORATOR, "decorator", FALSE }, + { SCE_P_ATTRIBUTE, "attribute", FALSE } }; static const HLKeyword highlighting_keywords_PYTHON[] = {
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).