-
Notifications
You must be signed in to change notification settings - Fork 63
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
Incorrect mapping for BEGIN and appropriate END keyword #85
Comments
Equivalent case: select getdate()
begin
begin
end
end The problem is that the Adding a |
Thanks for it! Good point! |
The There are other SQL variant lexers: |
Closing. |
Description of the Issue
There is incorrect mapping for BEGIN and appropriate END keyword.
Steps to Reproduce the Issue
1.Check the following sql code
2. Try to collapse outer BEGIN-END block by clicking '-' near BEGIN.
Expected Behavior
All code inside outer BEGIN-END block should be hide:
![image](https://user-images.githubusercontent.com/11201733/169882365-66405f55-a2fc-43b6-8a1c-ba0321408aea.png)
![image](https://user-images.githubusercontent.com/11201733/169882516-f15112ba-e857-4858-a656-d384bde8639e.png)
Actual Behavior
There is incorrect hiding of code between outer BEGIN and inner END:
![image](https://user-images.githubusercontent.com/11201733/169882569-72f75850-32ab-42ff-818a-d61b5c8ddab0.png)
![image](https://user-images.githubusercontent.com/11201733/169882591-2faaf307-bf74-4b5c-a1de-adb82435b6ec.png)
The text was updated successfully, but these errors were encountered: