Permalink
Commits on Aug 4, 2010
Commits on Jun 2, 2010
  1. Fix potential error in Reformat Document command

    Bypassing the `$_ENV` shenanigans by just using `getenv()`
    joshvarner committed Jun 2, 2010
Commits on Nov 22, 2008
  1. Add negative look-ahead to comment.block.documentation to prevent a n…

    …ever-ending comment. Fixes ticket 0D07729D.
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/JavaScript.tmbundle@10851 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    infininight committed Nov 22, 2008
Commits on Jun 6, 2008
  1. The JavaScript syntax has special rules for assigning functions, e.g.

    foo.bar = function() { … }
    
    However the equals operator was not scoped in these cases, whereas it is in standard assigns.
    
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/JavaScript.tmbundle@9878 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    ciaran committed Jun 6, 2008
Commits on Mar 31, 2008
Commits on Mar 21, 2008
Commits on Feb 21, 2008
  1. Update to v42 of beautify library.

    - E notation with negative power fix (1e-10 was converted to 1e - 10)
    - Repeatedly duplicating newline bug fixed.
    
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/JavaScript.tmbundle@8969 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    infininight committed Feb 21, 2008
Commits on Dec 18, 2007
  1. Moving beautify command into library form for easier updates. Updated…

    … to r38 of library.
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/JavaScript.tmbundle@8684 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    infininight committed Dec 18, 2007
Commits on Nov 27, 2007
Commits on Nov 26, 2007
  1. Update to v35 of Beautify Javascript.

    git-svn-id: http://svn.textmate.org/trunk/Bundles/JavaScript.tmbundle@8548 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    infininight committed Nov 26, 2007
Commits on Nov 25, 2007
Commits on Nov 24, 2007
  1. [NEW] Add a Javascript beautifier script, with a shortcut of ⌃Q.

    Thanks to Einars "elfz" Lielmanis for permission to include it, and Ale Muñoz for porting it.
    
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/JavaScript.tmbundle@8522 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    infininight committed Nov 24, 2007
Commits on Nov 16, 2007
  1. Adding a command to encode a section of Javascript as a bookmarklet a…

    …nd copy it to the clipboard.
    
    Thanks to John Gruber for writing this and giving permission to port it to TextMate.
    
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/JavaScript.tmbundle@8463 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    infininight committed Nov 16, 2007
Commits on Apr 26, 2007
  1. • match regexps that follow a ‘return’ keyword, example:

      return /^[a-zA-Z]([a-zA-Z0-9+-.])*:/.test(s);
    
    
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/JavaScript.tmbundle@7067 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Apr 26, 2007
Commits on Apr 19, 2007
  1. • add jsx as a recognized file type, apparently what Photoshop CS2 an…

    …d CS3 uses for JavaScript
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/JavaScript.tmbundle@7017 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Apr 19, 2007
Commits on Mar 20, 2007
  1. • change several patterns of the form: [A-Za-z…]+\w* into [A-Za-z…][\…

    …w…]* — I am thinking though, that ‘…’ should not be allowed for anything but the first character
    
    • change a pattern of the fork: \w+ \.? \w* into \w+ (\. \w*)?
    
    Both of the above would previously result in potential really bad performance, because two greedy repeats basically matching the same thing, was after each other, and that leads to exponential time complexity in input size.
    
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/JavaScript.tmbundle@6859 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Mar 20, 2007
Commits on Mar 12, 2007
Commits on Mar 9, 2007
Commits on Mar 4, 2007
  1. Add the following keys to the bundle’s info.plist:

    contactName:
       The full name of the contact for this bundle.
    contactEmailRot13:
       A ROT13 encoded email address for the bundle contact (we obfuscate it to avoid spammers from picking up the files, seeing how bundles will often be available via anonymous svn over http).
    description:
       A short description for this bundle. Do link to more info about the language (or whatever) the bundle is about. I decided on using HTML for this (but leave out the initial paragraph tag) since it seemed like overkill to run a single line of text through Markdown.pl, just to convert [foo](link) into <a href="link">foo</a>
    
    Many of the current descriptions could use some improvements, I just wanted to get the ball rolling :)
    
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/JavaScript.tmbundle@6718 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Mar 4, 2007
Commits on Feb 15, 2007
  1. Removed old bas scope

    Set ⌥⇧: as the shortcut for object keys
    Set the trigger for "for faster" to "for" to get the menu
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/JavaScript.tmbundle@6595 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    subtleGradient committed Feb 15, 2007
Commits on Feb 13, 2007
Commits on Feb 9, 2007
Commits on Feb 3, 2007
Commits on Dec 12, 2006
Commits on Nov 28, 2006
  1. http://pastie.textmate.org/24618

    Javascript commenting should use // method like with PHP, not /* ... */
    Now it does. Yay comments!
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/JavaScript.tmbundle@6258 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    subtleGradient committed Nov 28, 2006
  2. Remove the rule that incorrectly turns anything with a dot before an …

    …= into a class. this grammar still needs some serious work imho.
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/JavaScript.tmbundle@6257 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    subtleGradient committed Nov 28, 2006
Commits on Nov 7, 2006
  1. Include the delimiters in the string.quoted.single scope rather than …

    …just the content.
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/JavaScript.tmbundle@5998 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    infininight committed Nov 7, 2006
Commits on Oct 29, 2006
  1. • Change entity.name.object.js.firebug to entity.name.type.object.js.…

    …firebug
    
    • Change entity.name.instance to entity.name.type.instance
    
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/JavaScript.tmbundle@5728 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    infininight committed Oct 29, 2006
  2. First attempt at rearranging.

    Added getElement snippet.
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/JavaScript.tmbundle@5720 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    Charilaos Skiadas committed Oct 29, 2006
Commits on Oct 26, 2006
  1. Add more specific scopes for true|false|null:

    constant.language.boolean.true.js, constant.language.boolean.false.js, constant.language.null.js
    
    From james on the mailing list.
    
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/JavaScript.tmbundle@5650 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    infininight committed Oct 26, 2006
Commits on Oct 5, 2006
  1. • Added puctuation scopes.

    • Change meta.delimiter.statement to punctuation.terminator.statement
    • Better scope strings in meta.function.json
    • Optimize a few of the larger regex matches.
    
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/JavaScript.tmbundle@5373 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    infininight committed Oct 5, 2006
Commits on Sep 26, 2006
  1. • Added a really handy snippet for all iteration methods. Instead of …

    …typing 'each' and then ⇥ (tab) to get the each snippet, you now press ⇧⌃⌘( and you'll get the iterator function. Therefore this works for all iterator functions (inject, reject, each, map etc)
    
    • Moved more of the genreric JavaScript snippets (subtleGradient's?) from Prototype → JS bundle
    
    • Added whitespace around '=' and ':' in the Create Class alt snippet (we aren't afraid of whitespace, are we?)
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/JavaScript.tmbundle@5310 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    haraldmartin committed Sep 26, 2006
  2. • ⇧↩ (shift + enter) will turn the current word as a function (like t…

    …he ruby one does). ⇧⌃↩ (shift + control + enter) will make it into a method instead (blah: function() { ... })
    
    • Cleaned up some snippets like setTimeout and the if/if else/function and others
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/JavaScript.tmbundle@5308 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    haraldmartin committed Sep 26, 2006
  3. • Moved a lot of the generic JS stuff from the Prototype bundle to th…

    …e JS bundle and removed duplicated rules.
    
    • Improved some rules to catch more functions (like Object.myfunc = ...)
    
    Some of the rules can be simplified but I'm not a regexp guru so if somebody want to make them shorter/easier/faster, go ahead :)
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/JavaScript.tmbundle@5307 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    haraldmartin committed Sep 26, 2006