uɐʎɹ ррoʇ uɐʎɹ bio photo

uɐʎɹ ррoʇ uɐʎɹ

Hello. Is is me you're looking for?
robotic life signs.
makes noise, hears sounds, intafon.
affe auf deux roues.

Email Github Github Gist Last.fm Soundcloud Flickr

The current release of TextMate seems to be missing the capability to allow for the auto continuation of block comments when editing actionscript files. To fix this, you can add a new snippet to the actionscript bundle in the bundle editor.

  1. In TM, go to the menu Bundles/Bundle Editor and choose Edit Snippets…
  2. Open the ActionScript section on the left, and click the “+” button at the bottom left and choose to add a new snippet.
  3. Name the new snippet, such as “Continue Block Comment”.
  4. In the text area where is says Syntax Summary, delete the contents, and paste in the following: ${TM_CURRENT_LINE/(.*\*\/$)|.*?(\/\*(?!.*\*\/)).*|.*/(?1: : (?2: )* )/}

  5. Now click the Activation menu below (says “Tab Trigger”) and change it to Key Equivalent. Click the field next to it, and hit the key (or the key if you prefer). The return key symbol should show up.
  6. In the scope selector field, type source.actionscript comment.block – this will set the snippet to just work inside actionscript block comments bounded by /** */.

You can now close the bundle editor, and while typing in block comments in actionscript files, the return key should drop you to the next line, preserve the indent, and type in an asterisk followed by a space.