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

Remove symbols starting with 'tree_sitter_html_' #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mjambon
Copy link

@mjambon mjambon commented Sep 18, 2024

Including the file scanner.cc from tree-sitter-html causes a duplication of symbols and parsing errors when using both tree-sitter-html and tree-sitter-vue in the same program. It was particularly hard to detect because there was no compiler warning in our application (Semgrep).

You may not want to merge this pull request as is since the changes will be overridden when we run the script scripts/update-html-scanner.sh. I would actually suggest removing the script since it's a little complicated and keep a patch file instead. I can do this if you think it's a good idea. Let us know.

Note that I didn't invest too much time into this because recent versions of tree-sitter no longer support C++ scanners. The current scanner would have to be translated to pure C (I briefly tried and failed). tree-sitter-html was already updated to provide a C scanner.

…nd bugs

when tree-sitter-html is used in the same program
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.

1 participant