GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Syntax Highlighting regex+format strings (rf) · Issue #256 · MagicStack/MagicPython Open Description
myString = "baz" MYCONST = "qux" myDict = { "foo": "bar" } correctColoring = rf"(?=[\w]+){myString}{MYCONST}[\d]+" incorrectDictionary = rf"(?=[\w]+){myDict['foo']}[\d]+" regularFString = f"word{myDict['foo']}number" This is a followup to #186. After upgrading to 1.1.0, I'm very excited that rf strings support both regex style and format string. In the attached screenshot, behold how correctly varied ActivityMetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |