You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever you have lines that contain a lot of logic, like if-statements and variables, the syntax highlighting below that logic line breaks. This problem is triggered when writing logic lines that are longer than 128 characters
Steps to reproduce
Working example
example:
teeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeest:
test: testother_test: test
nvim screenshot:
Broken example (add one more e)
example:
teeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeest:
test: testother_test: test
nvim screenshot:
What behavior is expected?
The syntax highlighting doesn't break when using lines that are longer than 128 characters
What have I already tried?
Update tree-sitter
Disable synmaxcol limit: :set synmaxcol 0
Run :syntax sync fromstart
The text was updated successfully, but these errors were encountered:
rejdeboer
changed the title
Issue: highlighting breaks with long logic lines
Issue: highlighting breaks with long ${{ }} lines
Mar 14, 2024
rejdeboer
changed the title
Issue: highlighting breaks with long ${{ }} lines
Issue: highlighting breaks with long object lines
Mar 14, 2024
What is the issue?
Whenever you have lines that contain a lot of logic, like if-statements and variables, the syntax highlighting below that logic line breaks. This problem is triggered when writing logic lines that are longer than 128 characters
Steps to reproduce
Working example
nvim screenshot:
![image](https://private-user-images.githubusercontent.com/33692223/312865654-18e3d32b-ca4a-4770-b5ff-073e4d584f4e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3MzM3MjMsIm5iZiI6MTcxODczMzQyMywicGF0aCI6Ii8zMzY5MjIyMy8zMTI4NjU2NTQtMThlM2QzMmItY2E0YS00NzcwLWI1ZmYtMDczZTRkNTg0ZjRlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDE3NTcwM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ3MDlhZmRjOTlmMWMyNjQyZmM1NjFiMDZiZTk5MDcxMTM5OThhN2FmYjY3ZTZlY2RjZDk3ZGMwMDFjY2EzYTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.CUtdDpMEDLjMcZeWqZ9St8eCkw5MflSuUpFarlI9EdY)
Broken example (add one more e)
nvim screenshot:
![image](https://private-user-images.githubusercontent.com/33692223/312865940-323d8f49-b148-4e9c-bf2c-0640f2f571d8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3MzM3MjMsIm5iZiI6MTcxODczMzQyMywicGF0aCI6Ii8zMzY5MjIyMy8zMTI4NjU5NDAtMzIzZDhmNDktYjE0OC00ZTljLWJmMmMtMDY0MGYyZjU3MWQ4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDE3NTcwM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMxN2VlNDk0MDZmNzUzNmRiZTVkYjBiOGZlMmYxZDY4ODUwMWM1MmIzMzhkNDc1N2MxNTFjOTNhMzkxZmE4YzImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.MTTwu9UcsPL9P5-QR0zpXj5vG8ZVEOrdH_DOp3pwU4A)
What behavior is expected?
The syntax highlighting doesn't break when using lines that are longer than 128 characters
What have I already tried?
:set synmaxcol 0
:syntax sync fromstart
The text was updated successfully, but these errors were encountered: