Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8548405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:29:17+00:00 2026-06-11T13:29:17+00:00

It seems the following two lines of code are breaking the syntax coloring in

  • 0

It seems the following two lines of code are breaking the syntax coloring in TCL.

regsub -all {/} $original {\\\\} target      # The last } is being escaped

set grep_keyword [string trim $grep_keyword {"}]   # The " character is starting a new quote

This code was like this when I opened the files. Is there a way to fix this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T13:29:18+00:00Added an answer on June 11, 2026 at 1:29 pm

    So, I came back to this and put some effort into solving my problem. I altered the tmLangauge file for TCL. The } character is recognized as the ending brace. I just added \} to this definition as well.

    <key>braces</key>
    <dict>
        <key>begin</key>
        <string>(?:^|(?&lt;=\s))\{</string>
        <key>comment</key>
        <string>matches a single brace-enclosed word</string>
        <key>end</key>
        <string>\}([^\s\]]*)</string>
        <key>endCaptures</key>
        <dict>
            <key>1</key>
            <dict>
                <key>name</key>
                <string>invalid.illegal.tcl</string>
            </dict>
        </dict>
        <key>patterns</key>
        <array>
            <dict>
                <key>match</key>
                <string>\\[{}\n]</string>
                <key>name</key>
                <string>constant.character.escape.tcl</string>
            </dict>
            <dict>
                <key>include</key>
                <string>#inner-braces</string>
            </dict>
        </array>
    </dict>
    

    In the above, I made a modification to the RegEx to look like so:

    <string>\}([^\s\]]*)|\\}\s</string>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given the following code (which is mostly irrelevant except for the last two lines),
Given the following code, I expect the last two lines to behave the same,
In someone else's code I read the following two lines: x = defaultdict(lambda: 0)
I've been trying to get the following two lines of Python code to run
The following code seems to be just too much, for getting a single count
The following code seems not to work, even though the file appears to be
I have absolutely no idea why this is happening but the following code seems
The following javascript code seems to leak memory but I’m not sure why. I’ve
I've seen the following two notations on CSS pages, and they seem to work
It seems that the following is a common method given in many tutorials on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.