Skip to content

[jade/pug] Block Expansion (nested tags) syntax highlighting broken #65983

Closed

Description

@Tenrys
  • VSCode Version: 1.30.1
  • OS Version: Windows_NT x64 10.0.17763 (1809)

Does this issue occur when all extensions are disabled?: Yes

Activity

  1. Tenrys commented on Jan 3, 2019

    @Tenrys
    Author

    This also seems to be happening...

  2. alexr00 commented on Jan 7, 2019

    @alexr00
    Member

    This issue was moved to davidrios/pug-tmbundle#28

  3. alexr00 commented on Jan 7, 2019

    @alexr00
    Member

    Our jade/pug support comes from davidrios/pug-tmbundle. I've forwarded the issue to that repo.

  4. neilsoult commented on Jan 17, 2019

    @neilsoult

    Alex Ross (@alexr00) that repo hasn't been updated in 2+ years... Is there a possibility of fixing this for vscode some other way?

  5. alexr00 commented on Jan 21, 2019

    @alexr00
    Member

    If you can find another repo that more frequently maintained then I could consider changing to pull the grammar in from a new repo.

  6. neilsoult commented on Jan 22, 2019

    @neilsoult

    Alex Ross (@alexr00) great, I will try my best to fork the repo and begin improvements focused on vscode. Can you provide any guidance on how I could create a development environment using a new pug grammar repo/file/bundle on a local machine? The original repo only has instructions on how to use it with Sublime Text and Textmate.

  7. alexr00 commented on Jan 23, 2019

    @alexr00
    Member

    I think the easiest way is probably to create an extension from the grammar using the steps here. Then you can easily test out your changes by running your extension.

  8. neilsoult commented on Jan 25, 2019

    @neilsoult

    Alex Ross (@alexr00) thanks for your help, I've started to do some simple exploration and testing, but I've found some inconsistencies, as the grammar seems to work fine in TextMate ( which, as I understand it, it what the grammar files are written for ). So I was wondering, are we absolutely positive that this is indeed a problem with the grammar, and not with VSCode's interpretation / integration with textmate language? After all, if this was a bug with the actual grammar, I would expect to find the syntax highlighting problem in TextMate 2, as well as in VSCode. Since that doesn't appear to be the case, can you help suggest how I can confirm that it is indeed a problem with the grammar file itself?

  9. neilsoult commented on Jan 25, 2019

    @neilsoult

    To follow up, here is what it the sample.pug file looks like in both VSCode (dracula theme) and TextMate 2 (default theme)
    VSCode:
    screen shot 2019-01-24 at 5 15 02 pm
    TextMate 2:
    screen shot 2019-01-24 at 5 15 37 pm

  10. alexr00 commented on Jan 25, 2019

    @alexr00
    Member

    Neil Soult (@neilsoult) thank you for the additional investigation! I checked the grammar from https://github.com/davidrios/pug-tmbundle in another editor and you are right, it does not appear to be a problem with the grammar. Instead it looks to be an issue with VS Code textmate.

  11. added
    upstream
    grammar
    and removed
    upstream
    grammar
    on Jan 25, 2019
  12. alexr00 commented on Mar 22, 2019

    @alexr00
    Member

    Closing in favor of the upstream vscode-textmate issue.

  13. locked and limited conversation to collaborators on May 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

upstream

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions