-
Notifications
You must be signed in to change notification settings - Fork 81
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
Problems with tabs #340
Comments
Unclosed tag, sorry |
I'm not really sure what you are showing me. Can you add the actual code that causes an issue and indicted the line number/s that the error appears on. |
Since Atom 1.15 the atom parser only sends the first 1000 chars (the link states 500 chars but is wrong) to the grammar regex engine. It appears that your path has a d attribute that is a string over 1000 chars long. Now the atom parser misses the closing " and the ending tag and that causes the malaligned indent. I think the Atom parser is now broken for long lines! I think they have provided an escape for grammars that want to revert to the old system so I may use that. I still don't see any issues with your other screenshots. Please provide some actual code and indicate the line mumber concerned. Thanks |
This is an example
|
Yes that's because the line is over 1000 characters long - 1747 in fact. Because Atom truncates the grammar parser to the first 1000 characters I miss the closing Longer term, Github are working on a new version of Atom that uses a C based incremental parsing system that won't have this issue, as well as supporting VSCode's Language Server Protocol. Hopefully, this will allow a more robust system that also works more in a background process. |
Looks like you have a line that contains more than 100 tokens. Atom has a hardcoded limit that will only allow 100 tokens on a line and will ignore any further tokens. As it is inside Atom code here https://github.com/atom/atom/blob/62c1bad39c5347010c81ee8baf6b607caaa10cb6/src/grammar-registry.coffee#L18 there isn't anything I can do about it. |
ok thanks for your answer! |
Hello, I'm facing some issues when I have in my code.
Seems like language-babel is adding a new tab after
<svg>
Thanks
The text was updated successfully, but these errors were encountered: