GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — python string syntax highlight errors · Issue #245 · MagicStack/MagicPython

python string syntax highlight errors #245

New issue
Copy link
New issue
Copy link
Open
Open
python string syntax highlight errors#245
Copy link

Description

@alexr00
alexr00
opened on Nov 24, 2021
Issue body actions
  • Editor name and version: VS Code 1.62+

  • Platform: Any

  • Color scheme: Any

  • MagicPython version: latest commit from main

  • A sreenshot:
    image

  • 5-10 lines of surrounding code:

# This is not an f-string, but VSCode highlights `workspaceFolder' like a variable.
a = "${workspaceFolder}"

Originally filed by @mikisama in microsoft/vscode#137694

Activity

  1. SyzenEinca commented on Mar 4, 2022

    @SyzenEinca
    SyzenEinca
    on Mar 4, 2022
    More actions

    This is for the .format() method, I think?
    like:

    a = "{key}".format(key="something")
  2. mikisama commented on Mar 11, 2022

    @mikisama
    mikisama
    on Mar 11, 2022
    More actions

    This is for the .format() method, I think? like:

    a = "{key}".format(key="something")

    Hi, @SyzenEinca
    It's not for the .format() method.
    I use python to generate some configuration.
    Then I found this python string syntax highlight errors.

    paths = [
        'OLD_PREFIX/include',
        'OLD_PREFIX/inc',
    ]
    
    paths = [i.replace('OLD_PREFIX', '${workspaceFolder}') for i in paths]
    
    print(paths)

    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue 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.