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

HTML: introduce a specialized tokenizer for script areas #3598

Merged

Conversation

masatake
Copy link
Member

The original code used a html-aware tokenizer for reading tokens in <script>...</script> areas.

As reported in #3581 and #3597, this original code could not recognize <script>...</script> areas in some cases.

This change introduces a tokenizer specialized to script areas in addition to the original html-aware tokenizer.

Close #3581.
Close #3597.

Signed-off-by: Masatake YAMATO yamato@redhat.com

@codecov
Copy link

codecov bot commented Dec 17, 2022

Codecov Report

Base: 82.82% // Head: 82.82% // No change to project coverage 👍

Coverage data is based on head (3af4135) compared to base (3af4135).
Patch has no changes to coverable lines.

❗ Current head 3af4135 differs from pull request most recent head baef2cd. Consider uploading reports for the commit baef2cd to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3598   +/-   ##
=======================================
  Coverage   82.82%   82.82%           
=======================================
  Files         223      223           
  Lines       54190    54190           
=======================================
  Hits        44884    44884           
  Misses       9306     9306           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

The original code used a html-aware tokenizer for reading
tokens in <script>...</script> areas.

As reported in universal-ctags#3581 and universal-ctags#3597, this original code could
not recognize <script>...</script> areas in some cases.

This change introduces a tokenizer specialized to script
areas in addition to the original html-aware tokenizer.

Close universal-ctags#3581.
Close universal-ctags#3597.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
@masatake masatake force-pushed the html--html-string-in-js-in-html branch from ddf6766 to baef2cd Compare December 17, 2022 19:18
@masatake masatake merged commit b2588fe into universal-ctags:master Dec 18, 2022
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.

HTML: HTML comment starter in JavaScript area html: apostrophe in JavaScript comment breaks guest parser
1 participant