镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

add syntax for string interpolation #275

Closed

Description

@amiralies

Activity

  1. cristianoc commented on Jun 22, 2021

    @cristianoc
    Collaborator

    Is this about syntax highlighting?

  2. amiralies commented on Jun 22, 2021

    @amiralies
    ContributorAuthor
  3. zth commented on Feb 26, 2022

    @zth
    Member

    @amiralies is this still relevant, or was this fixed by the recent changes to highlighting?

  4. amiralies commented on Feb 26, 2022

    @amiralies
    ContributorAuthor

    I'm not sure, as I vscode is not my main editor.

    I think these cases should be covered.

    let var = `hello ${name} how you doin?`
    
    let var2 = j`hello ${name} how you doin?`
    
    let var3 = j`hello $name how you doin?`
    
    let varInvalid = `hello $name how you doin?`
    
    let expr = `2 + 2 is ${Int.toString(2 + 2)}`
  5. zth commented on Feb 26, 2022

    @zth
    Member

    Right. Well, at least on my theme, it's not fully highlighted:
    image

  6. amiralies commented on Feb 26, 2022

    @amiralies
    ContributorAuthor

    This is current vim behavior.
    image
    looks like var3 and expr case should be addressed, this might be tricky to implement in textmate grammars tho .

  7. zth commented on Mar 20, 2022

    @zth
    Member

    This is very close to being fixed in the semantic highlighting PR:

    image

    Will see if we can fix the $name case there too, so we can close this.

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions