| Summary: | [PATCH] Python string.format() highlighting of escaped braces | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | xOneca <xoneca+kde> |
| Component: | syntax | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | goinnn, i.zaufi, oss, srhaque |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | All | ||
| Latest Commit: | Version Fixed In: | ||
| Sentry Crash Report: | |||
| Attachments: | Patch for Python syntax file version 2.19 | ||
Created attachment 81257 [details]
Patch for Python syntax file version 2.19
@Python guys: Can someone of you confirm the fix, especially that it does not introduce new regressions? Is this the same as bug #320813? (In reply to comment #3) > Is this the same as bug #320813? No, it is not. This fix was committed by Alex Turbov on August 12th, 2013 in http://quickgit.kde.org/?p=kate.git&a=commit&h=05caf8b02fa31aa9249f8678cd4a5b09d0c7cebe @Alex: if you make sure to have BUG 322671 on a separate line, bugs are automatically closed when you push. (In reply to comment #5) > @Alex: if you make sure to have > BUG 322671 > on a separate line, bugs are automatically closed when you push. huh, I'll try to remember :) working w/ few bug trackers it is hard to remember exact syntax for that things :) In fact, it only works, if you have "BUG: 322671" on a separate line, i.e. with a colon. @Alex: imho the easiest way to "memorize" this and other related triggers is to configure a commit template for kde/ kate: http://techbase.kde.org/Development/Git/Configuration#Commit_Template hth |
The escaped double-curly-braces ('{{' and '}}') are not highlighted. (Last sentence of second paragraph of http://docs.python.org/2.7/library/string.html#format-string-syntax) This can be a follow-up of the bug #317097 Reproducible: Always Steps to Reproduce: "{{ some random text }}".format() Actual Results: The curly braces are not highlighted. Indeed, it is highlighted as if "{ some random text }" were an actual replacement field. Expected Results: Only the curly braces should be highlighted. I am using version 2.19 of the Python syntax file. I haven't found any newer version...