[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [kate] [Bug 317097] [PATCH] Python syntax for string.format
From:       xOneca <xoneca+bugs.kde.org () gmail ! com>
Date:       2013-05-14 7:18:19
Message-ID: bug-317097-17878-NXA1Gug7fg () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=317097

--- Comment #3 from xOneca <xoneca+bugs.kde.org@gmail.com> ---
(In reply to comment #2)
> Thanks for the patch. Just had a look and it seems to work. However, in your
> example:
> print "My var value: {var}".format(var=10)
> `format` is colored like the matched {var}. This makes it hard to tell where
> the string ends. Also, other string methods aren't highlighted either, so
> imho it probably be better (for consistency) not to match the `format`
> function as a string substitution.

That's because format is also a built-in function. (see
http://docs.python.org/2/library/functions.html#format -- all functions in that
page are colored the same)

In fact, they have different color styles: string substitution is 'dsOthers'
and built-in functions are 'dsDataType'.

-- 
You are receiving this mail because:
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic