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 4047982
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T13:45:35+00:00 2026-05-20T13:45:35+00:00

I regularly use ⌃⇧L in TextMate to wrap selection as a link. When I

  • 0

I regularly use ⌃⇧L in TextMate to wrap selection as a link. When I used it this morning, i got…

    /tmp/temp_textmate.RRepHN:13: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n'
    /tmp/temp_textmate.RRepHN:15: syntax error, unexpected keyword_when, expecting keyword_end
      when %r{http://www.(amazon.(?:com...
          ^
    /tmp/temp_textmate.RRepHN:15: syntax error, unexpected ':', expecting keyword_end
    /tmp/temp_textmate.RRepHN:17: syntax error, unexpected keyword_when, expecting keyword_end
      when %r{\A[a-zA-Z][a-zA-Z0-9.+-]*://.*\z}:
          ^
    /tmp/temp_textmate.RRepHN:17: syntax error, unexpected ':', expecting keyword_end
    /tmp/temp_textmate.RRepHN:19: syntax error, unexpected keyword_when, expecting keyword_end
      when %r{\A(www\..*|.*\.(com|uk|net|org|info))\z}:
          ^
    /tmp/temp_textmate.RRepHN:19: syntax error, unexpected ':', expecting keyword_end
    /tmp/temp_textmate.RRepHN:21: syntax error, unexpected keyword_when, expecting keyword_end
      when %r{\A.*\.(com|uk|net|org|info)\z}:
          ^
    /tmp/temp_textmate.RRepHN:21: syntax error, unexpected ':', expecting keyword_end
    /tmp/temp_textmate.RRepHN:23: syntax error, unexpected keyword_when, expecting keyword_end
      when %r{\A\S+\z}:
          ^
    /tmp/temp_textmate.RRepHN:23: syntax error, unexpected ':', expecting keyword_end
    /tmp/temp_textmate.RRepHN:27: warning: else without rescue is useless
    /tmp/temp_textmate.RRepHN:28: syntax error, unexpected keyword_end, expecting

I can’t think of anything specific I might have done to cause the issue.

I have reloaded bundles and reinstalled TextMate.

I also tried using the code at http://svn.textmate.org/trunk/Bundles/Hyperlink%20Helper.tmbundle/Commands/Wrap%20Selection%20as%20Link.tmCommand.

None of them fixed the problem.

Anyone have any ideas?!

Thanks.

  • 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-05-20T13:45:36+00:00Added an answer on May 20, 2026 at 1:45 pm

    There shouldn’t be a colon at the when ... line. You can edit the snippet and remove it in the Bundle Editor.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use 3 computers regularly and a fourth one ocassionaly. I have used Dropbox
I have this api routine that I use regularly to capture dos output. Recently
I have a WinForms utility that I use constantly, and enhance regularly. Roughly one
How do I use regular expressions and search and replace to turn this [UserID]
I want to use this regular expression in Python: <(?:[^]*[']*|'[^']*'[']*|[^'>])+> (from RegEx match open
I regularly use the jQuery jScrollPane plugin to add custom scroll bars to page
In the past I have created ItemTemplates for classes that I regularly use in
I regularly use a standard form to send login information through the HTTP POST
I have bash script that I use regularly in my job to automate a
i have a shared template that i use regularly to show errors like :

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.