[SVN] PATCH: Erlang.tmBundle: automatic entry for module directive
Alain O'Dea
alain.odea at gmail.com
Sun Feb 17 02:19:58 UTC 2008
The following patch makes the Module Directive snippet in
Erlang.tmBundle put in the name of the current file without the file
extension.
Index: Erlang.tmbundle/Snippets/Module Directive.tmSnippet
===================================================================
--- Erlang.tmbundle/Snippets/Module Directive.tmSnippet (revision 8933)
+++ Erlang.tmbundle/Snippets/Module Directive.tmSnippet (working copy)
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd
">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd
">
<plist version="1.0">
<dict>
<key>content</key>
- <string>-module (${1:module}).</string>
+ <string>-module (${TM_FILEPATH/^.*\/(.*)\.erl$/$1/g}).</string>
<key>name</key>
<string>Module Directive</string>
<key>scope</key>
More information about the textmate-dev
mailing list