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

Tcl lexer doesn't respect comments #2039

Closed
verhovsky opened this issue Apr 3, 2024 · 0 comments · Fixed by #2041
Closed

Tcl lexer doesn't respect comments #2039

verhovsky opened this issue Apr 3, 2024 · 0 comments · Fixed by #2041
Labels
bugfix-request A request for a bugfix to be developed.

Comments

@verhovsky
Copy link
Contributor

verhovsky commented Apr 3, 2024

Name of the lexer
Tcl

Code sample
A sample of the code that produces the bug.

# The braced form of variable substitution handles more complex variable names:
set greeting "Hello, ${first name}"

# "set" can always be used instead of variable substitution, and can handle all
# variable names:
set greeting "Hello, [set {first name}]"


# To unpack a list into the command, use the expansion operator, "{*}".  These
# two commands are equivalent:
set name Neo
set {*}{name Neo}

The "set" in the comment is highlighted

https://rouge.jneen.net/v4.2.1/tcl/IyBUaGUgYnJhY2VkIGZvcm0gb2YgdmFyaWFibGUgc3Vic3RpdHV0aW9uIGhhbmRsZXMgbW9yZSBjb21wbGV4IHZhcmlhYmxlIG5hbWVzOgpzZXQgZ3JlZXRpbmcgIkhlbGxvLCAke2ZpcnN0IG5hbWV9IgoKIyAic2V0IiBjYW4gYWx3YXlzIGJlIHVzZWQgaW5zdGVhZCBvZiB2YXJpYWJsZSBzdWJzdGl0dXRpb24sIGFuZCBjYW4gaGFuZGxlIGFsbAojIHZhcmlhYmxlIG5hbWVzOgpzZXQgZ3JlZXRpbmcgIkhlbGxvLCBbc2V0IHtmaXJzdCBuYW1lfV0iCgoKIyBUbyB1bnBhY2sgYSBsaXN0IGludG8gdGhlIGNvbW1hbmQsIHVzZSB0aGUgZXhwYW5zaW9uIG9wZXJhdG9yLCAieyp9Ii4gIFRoZXNlCiMgdHdvIGNvbW1hbmRzIGFyZSBlcXVpdmFsZW50OgpzZXQgbmFtZSBOZW8Kc2V0IHsqfXtuYW1lIE5lb30K

https://learnxinyminutes.com/docs/tcl/ (uses rouge 3.30.0)

@verhovsky verhovsky added the bugfix-request A request for a bugfix to be developed. label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix-request A request for a bugfix to be developed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant