Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Textmate lexer file is invalid #517

Closed
Chris2011 opened this issue Feb 10, 2020 · 1 comment
Closed

Textmate lexer file is invalid #517

Chris2011 opened this issue Feb 10, 2020 · 1 comment

Comments

@Chris2011
Copy link

Chris2011 commented Feb 10, 2020

  • VSCode Version: -
  • OS Version: Windows [Version 10.0.18363.592]
  • REST Client Version: -

Steps to Reproduce:

  1. Go to this site: https://www.liquid-technologies.com/online-xml-validator
  2. Paste the code from your textmate file https://github.com/Huachao/vscode-restclient/blob/master/syntaxes/http.tmLanguage and hit validate.
  3. Problem is this line: <string>^\s*(?=\<\S)</string>

I don't know how VS Code handles it, but the file is not valid. Apache NetBeans 11.3 (Beta 2) can handle Textmate too but It get's a parse error, because of this line. I think escaping it to &lt; will fix the problem, but didn't test it yet.

Huachao added a commit that referenced this issue Feb 11, 2020
@Huachao
Copy link
Owner

Huachao commented Feb 11, 2020

@Chris2011 nice catch, I guess VSCode internally transforms textmate files to its JSON format.

@Huachao Huachao closed this as completed Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants