Skip to content

How to parse embedded languages? #4

Description

@pengsongkun741

I am trying to parse the vue file .
It is found that the embedded language inside cannot be parsed normally. What configuration is needed to achieve this goal?

In your sample code I see that the GetFilePath(string scopeName) method is automatically called in IRegistryOptions.
I can see that some embedded languages ​​needed by vue will find its tmlanguage files in this way. Is this related to the problem I mentioned?

Activity

  1. danipen commented on Aug 20, 2021

    @danipen
    Owner

    Checkout the RegistryOptions provided for AvaloniaEdit. This may help. It supports loading dependent grammars.

    https://github.com/AvaloniaUI/AvaloniaEdit/blob/feature/textmate-support/src/AvaloniaEdit.TextMate/RegistryOptions.cs

  2. Repository owner locked and limited conversation to collaborators on Dec 14, 2021
  3. converted this issue into a discussion #6 on Dec 14, 2021
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

    questionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions