[TxMt] Custom Changes
Dave Grijalva
grijalva at gmail.com
Tue Oct 31 06:09:22 UTC 2006
I'm trying to make some changes to the Language without losing the ability
to get updates (to the language). I just want to add in a couple extra
things. I want to have my documentation a different color from the
commented out code. Also, i want to have a (space)* inserted at the
beginning of newlines when I'm using the docblock format.
Here's what I've come up with:
I created a new Language under JavaScript with this:
{ scopeName = 'source.js.dave';
fileTypes = ( 'js' );
foldingStartMarker =
'^.*\bfunction\s*(\w+\s*)?\([^\)]*\)(\s*\{[^\}]*)?\s*$';
foldingStopMarker = '^\s*\}';
patterns = (
{ name = 'comment.documentation.docblock.js';
begin = '/\*\*';
end = '\*/';
captures = { 0 = { name = 'punctuation.definition.comment.js';
}; };
},
{ name = 'comment.documentation.line.triple-slash.js';
match = '(///).*$\n?';
captures = { 1 = { name = 'punctuation.definition.comment.js';
}; };
},
{ include = 'source.js'; },
);
}
Is there a better way to do this?
thanks
-dave
On 10/26/06, Allan Odgaard <throw-away-1 at macromates.com> wrote:
>
> On 27. Oct 2006, at 03:44, Dave Grijalva wrote:
>
> > Is it true that if I make changes to any of my bundles, they will
> > no longer
> > be updated by TextMate updates?
>
> No
>
> > Is it possible to make a separate bundle that just encompases my
> > changes and have them apply to another bundle?
>
> Depends on what exactly you wish to change.
>
> > If I've missed this in the manual, can you point me at where I can
> > find it?
>
> http://macromates.com/textmate/manual/
> bundles#editing_default_bundles_items
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20061030/122b8537/attachment.html>
More information about the textmate
mailing list