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

[call x] inside double quotes followed by alnum char breaks subsequent highlighting #28

Open
jasonkradams opened this issue May 5, 2023 · 0 comments

Comments

@jasonkradams
Copy link

** Example Working**

proc hello_world {} {return "Hello World!"}
when HTTP_REQUEST priority 500 {
    # Comments should be green
    if {1} {puts "i should look like this"}
    puts "[call hello_world]"
    if {1} {puts "i am still highlighted properly"}
    # I am green
}

image

Example Broken

When [call hello_world] is followed by any alpha or numeric character, it causes the following code to appear as though it is quoted string.

proc hello_world {} {return "Hello World!"}
when HTTP_REQUEST priority 500 {
    # Comments should be green
    if {1} {puts "i should look like this"}
    puts "[call hello_world]a"
    if {1} {puts "but now I look like quoted text"}
    # I am brown; and the if statement above 
}

image

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

No branches or pull requests

1 participant