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

Relax highlighting rules on HTML element names #54

Merged
merged 2 commits into from
Aug 20, 2019

Conversation

karlhorky
Copy link
Contributor

@karlhorky karlhorky commented Aug 18, 2019

Instead of requiring a name to match an existing HTML element, this relaxes the
restrictions to:

This is similar to the fix to the following issue in the HTML syntax
highlighting repo (and actually depends on the "derivative" syntax that was
created for that issue):

textmate/html.tmbundle#92

Closes #53

Instead of requiring a name to match an existing HTML element, this relaxes the
restrictions to:

- starting with [a-zA-Z] (matching the HTML parser WICG/webcomponents#239 (comment))
- then continuing with anything other than a space, forward slash or closing
  angle bracket

This is similar to the fix to the following issue in the HTML syntax
highlighting repo (and actually depends on the "derivative" syntax that was
created for that issue):

textmate/html.tmbundle#92
@msftclas
Copy link

msftclas commented Aug 18, 2019

CLA assistant check
All CLA requirements met.

@karlhorky
Copy link
Contributor Author

karlhorky commented Aug 18, 2019

Ah just realized this changed the test results for the issue 42 test... pushed a fix now.

@karlhorky
Copy link
Contributor Author

Hm, tests are failing:

$ npm test --silent
### VS Code Extension Test Run ###
Current working directory: /home/travis/build/microsoft/vscode-markdown-tm-grammar
Downloading VS Code 1.37.1 into .vscode-test/vscode-1.37.1.
Downloading VS Code from: https://update.code.visualstudio.com/1.37.1/linux-x64/stable
Downloaded VS Code 1.37.1
Running extension tests: /home/travis/build/microsoft/vscode-markdown-tm-grammar/.vscode-test/vscode-1.37.1/VSCode-linux-x64/code /home/travis/build/microsoft/vscode-markdown-tm-grammar/test --extensionDevelopmentPath=/home/travis/build/microsoft/vscode-markdown-tm-grammar --extensionTestsPath=/home/travis/build/microsoft/vscode-markdown-tm-grammar/test --locale=en
Tests exited with code: 1
The command "npm test --silent" exited with 1.

They run for me locally though :(

Is there any way I can see the output on CI? I suppose turning off "silent" or something...?

@mjbvz mjbvz merged commit 377bf44 into microsoft:master Aug 20, 2019
@mjbvz
Copy link
Contributor

mjbvz commented Aug 20, 2019

Looks like the output is printed and only issue-42.md` is still failing: https://travis-ci.org/microsoft/vscode-markdown-tm-grammar/jobs/573494345#L279

I'll merge this PR since it is unrelated to that change

@karlhorky
Copy link
Contributor Author

Ok sounds good, thanks!

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

Successfully merging this pull request may close these issues.

Markdown Highlighting: Unknown Tags
3 participants