Thomas Aylott
|
04e15e1473
|
onload listener snippet
|
2009-02-15 08:14:34 +00:00 |
|
Thomas Aylott
|
f77ae2743e
|
new window. snippet like the current document. snippet
|
2009-02-15 08:14:33 +00:00 |
|
Thomas Aylott
|
39d3a191cc
|
Updated proto snippet to match the new style of snippets for this bundle
|
2009-02-15 08:14:33 +00:00 |
|
Thomas Aylott
|
0d2472ba88
|
New Help command
Beginning Help document / GitHub readme
|
2009-02-15 08:14:33 +00:00 |
|
Thomas Aylott
|
5c0aa849b3
|
NEW: Advanced folding rules
Added more Tests for folding and indent
|
2009-02-15 08:14:33 +00:00 |
|
Thomas Aylott
|
90c28a16a1
|
Folding & Indent Test
|
2009-02-15 08:14:33 +00:00 |
|
Thomas Aylott
|
e129d1dc19
|
Tests for labels and new new
|
2009-02-15 08:14:32 +00:00 |
|
Thomas Aylott
|
c89827b256
|
Removed some poorly thought out snippets.
Unified the for snippets some more
New for snippet for fast DOM iteration
|
2009-02-15 08:14:32 +00:00 |
|
Thomas Aylott
|
d650e3bab9
|
Added operators to the syntax tests and more examples
|
2009-02-15 08:14:32 +00:00 |
|
Thomas Aylott
|
0dd03607c2
|
Unifying snippet formats
|
2009-02-15 08:14:32 +00:00 |
|
Thomas Aylott
|
4f1de2226d
|
Trying to come up with an exhaustive list of all literal syntax
|
2009-02-15 08:14:32 +00:00 |
|
Thomas Aylott
|
6ccd572492
|
Syntax Tests for Function Calls and Variables / Properties
|
2009-02-15 08:14:32 +00:00 |
|
Thomas Aylott
|
b239febbfd
|
Removed the conditional-compilation since I moved it into the other syntax
|
2009-02-15 08:14:32 +00:00 |
|
Thomas Aylott
|
34ca3c1df7
|
Changed the forin snippet to match what it actually does
|
2009-02-15 08:14:32 +00:00 |
|
Thomas Aylott
|
a2937c6427
|
Added special-comments-conditional-compilation for IE; Added leading-space scopes
|
2009-02-15 08:14:32 +00:00 |
|
Thomas Aylott
|
5125bf5db1
|
Snippet: try … catch
|
2009-02-15 08:14:31 +00:00 |
|
subtlegradient
|
8b7b886f82
|
Fixed the illegal number scopes
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@10185 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-07-07 17:17:39 +00:00 |
|
subtlegradient
|
d99f721b82
|
.999 numbers.invalid scopes for octal and hex. -999 and +999 numbers
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@10184 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-07-07 17:17:32 +00:00 |
|
subtlegradient
|
1a60d48c2a
|
Reorganize the JavaScript Basic syntax. Moved everything into the repository.
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@10183 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-07-07 17:17:26 +00:00 |
|
subtlegradient
|
52fedbc920
|
New document. snippet, because you end up typing that a billion times
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@10174 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-07-05 23:42:42 +00:00 |
|
subtlegradient
|
de7b84b470
|
Attempting to unify the style of the various snippets. The idea is that if it's fewer characters to add something than to remove it, then it gets removed from the snippet.
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@10173 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-07-05 23:42:37 +00:00 |
|
subtlegradient
|
78f785b43d
|
Removed the anonymous function from the timeout snippet. You can easily add your own with the f snippet
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@10172 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-07-05 23:42:29 +00:00 |
|
subtlegradient
|
bba6f216d7
|
Degault the Get Elements snippet to getElementById instead of getElementsByTagName
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@10171 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-07-05 23:42:24 +00:00 |
|
subtlegradient
|
ac0c3b2f56
|
Improved String Literal syntax. Fixed the "bug" where an unclosed string extends past the closign script tag in html.
String should end on \n with a syntax error
String should end on </script>\n with a syntax error
String should mark </script> as invalid
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@10170 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-07-05 23:42:19 +00:00 |
|
subtlegradient
|
37132a7244
|
More and more syntax tests
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@10169 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-07-05 23:42:13 +00:00 |
|
subtlegradient
|
be9de4befd
|
Internet Explorer Conditional Comment snippets
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@10114 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-07-02 17:01:58 +00:00 |
|
subtlegradient
|
5692efe8c1
|
Removed redundant group scope
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@10113 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-07-02 17:01:52 +00:00 |
|
subtlegradient
|
535a98f1f7
|
More syntax tests
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@10112 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-07-02 17:01:46 +00:00 |
|
subtlegradient
|
743c785083
|
Scientific notation => Ex, 1e5 and 2.5E5
from Joseph Pecoraro
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@10111 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-07-02 17:01:42 +00:00 |
|
subtlegradient
|
87f90e9d19
|
Don't require a space after the function keyword
Merging in a modified version of Joseph Pecoraro's fix here: http://pastie.textmate.org/private/hxkpy8qkahofrxwyvp4coq
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@10110 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-07-02 17:01:36 +00:00 |
|
subtlegradient
|
60c8151e9b
|
Merging in the regex fixes from Joseph Pecoraro as seen here: http://lists.macromates.com/textmate/2008-June/025973.html
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@10109 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-07-02 17:01:31 +00:00 |
|
subtlegradient
|
65981d95f2
|
Some syntax tests
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@10108 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-07-02 17:01:25 +00:00 |
|
subtlegradient
|
a09b74f571
|
Impriving regexp literals
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@10107 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-07-02 17:01:20 +00:00 |
|
subtlegradient
|
b5363c34e5
|
Undefined -> undefined
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@10106 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-07-02 17:01:15 +00:00 |
|
subtlegradient
|
efa328fc93
|
Improved meta.function.json.js with punctuation and proper storage.type
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@10105 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-07-02 17:01:10 +00:00 |
|
subtlegradient
|
a8f3f40b77
|
Added a tests folder with some starter files
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@10104 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-07-02 17:01:05 +00:00 |
|
subtlegradient
|
7ca0d476cf
|
Unifying the "for" snippets
diff --git "a/Snippets/for (in) {\342\200\246}.tmSnippet" "b/Snippets/for (in) {\342\200\246}.tmSnippet"
index d7e0848..b64dede 100644
--- "a/Snippets/for (in) {\342\200\246}.tmSnippet"
+++ "b/Snippets/for (in) {\342\200\246}.tmSnippet"
@@ -3,8 +3,8 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>for (var ${1:x} in ${2:Things}) {
- ${0:${1:x}}
+ <string>for (var ${1:thing} in ${2:Things}) {
+ $0${1:thing}
};</string>
<key>name</key>
<string>for (in) {…}</string>
diff --git "a/Snippets/for (\342\200\246) {\342\200\246} (PPK).tmSnippet" "b/Snippets/for (\342\200\246) {\342\200\246} (PPK).tmSnippet"
index b34c0f5..9408455 100644
--- "a/Snippets/for (\342\200\246) {\342\200\246} (PPK).tmSnippet"
+++ "b/Snippets/for (\342\200\246) {\342\200\246} (PPK).tmSnippet"
@@ -4,7 +4,7 @@
<dict>
<key>content</key>
<string>for (var ${20:i}=0,${2:thing}; ${2:thing}=${1:Things}[${20:i}]; ${20:i}++){
- ${2:thing}$0
+ $0${2:thing}
};
</string>
<key>name</key>
diff --git "a/Snippets/for (\342\200\246) {\342\200\246} (faster).tmSnippet" "b/Snippets/for (\342\200\246) {\342\200\246} (faster).tmSnippet"
index 34e6b71..2853eb2 100644
--- "a/Snippets/for (\342\200\246) {\342\200\246} (faster).tmSnippet"
+++ "b/Snippets/for (\342\200\246) {\342\200\246} (faster).tmSnippet"
@@ -1,10 +1,10 @@
<?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>for (var ${20:i} = ${1:Things}.length - 1; ${20:i} >= 0; ${20:i}--){
- ${100:${1:Things}[${20:i}]}$0
+ $0${100:${1:Things}[${20:i}]}
};</string>
<key>name</key>
<string>for (…) {…} (Improved Native For-Loop)</string>
diff --git "a/Snippets/for (\342\200\246) {\342\200\246}.tmSnippet" "b/Snippets/for (\342\200\246) {\342\200\246}.tmSnippet"
index 6208a16..852d3f5 100644
--- "a/Snippets/for (\342\200\246) {\342\200\246}.tmSnippet"
+++ "b/Snippets/for (\342\200\246) {\342\200\246}.tmSnippet"
@@ -4,7 +4,7 @@
<dict>
<key>content</key>
<string>for (var ${20:i}=0; ${20:i} < ${1:Things}.length; ${20:i}++) {
- ${100:${1:Things}[${20:i}]}$0
+ $0${100:${1:Things}[${20:i}]}
};</string>
<key>name</key>
<string>for (…) {…}</string>
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@10103 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-07-02 17:00:59 +00:00 |
|
subtlegradient
|
b84367b126
|
Fixed regression with nested groups and functions
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@9131 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-03-16 06:35:43 +00:00 |
|
subtlegradient
|
bb8deef61d
|
Tweaking regex for optimization and performance. disabling "punctuation.section.scope.round" seems to have helped.
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@9130 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-03-16 06:16:45 +00:00 |
|
subtlegradient
|
7a80c6d2ab
|
Fixed snippet. I'd accidentally sent a half-finished version :'(
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@9129 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-03-16 06:14:13 +00:00 |
|
subtlegradient
|
151f7a83eb
|
Don't match a single slash (/) as a regex literal unless there's another one on the same line. Force Regex literals to end at the end of the line. This helps solve some performance issues while coding. Thanks Daniel Stockman
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@9128 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-03-16 03:24:13 +00:00 |
|
subtlegradient
|
d72e54c64d
|
Fixed the parsing of object values that are regular expression literal. Thanks Daniel Stockman
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@9126 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-03-16 02:38:15 +00:00 |
|
subtlegradient
|
bc39c3bdca
|
Cleaned up "for in" snippets and added a new ultra-fast one from quirksmode.
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@9114 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2008-03-14 18:31:48 +00:00 |
|
subtlegradient
|
b6f84d2641
|
New "for (in){…}" snippet
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@8634 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2007-12-09 08:20:27 +00:00 |
|
subtlegradient
|
1f347c3df7
|
Cleaned up snippets
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@8633 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2007-12-09 08:19:31 +00:00 |
|
subtlegradient
|
f6ff90bedc
|
Split out object-properties into the repository to keep things clean
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@8632 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2007-12-09 08:19:12 +00:00 |
|
subtlegradient
|
f577ae87e4
|
Renamed "Javascript Basic" to "Javascript Embedded" Thanks Infin.
New scope: meta.complete.method for the first character of white space after a dot.
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@8631 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2007-12-09 08:18:54 +00:00 |
|
subtlegradient
|
581d5ad997
|
Changes scopes. source.js => source.js.base, source.js.basic => source.js
Include source.js.basic if you want embedded javascript in your language.
Include source.js.base if you want to extend javascript, EG: MooTools
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@8614 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2007-12-05 21:22:56 +00:00 |
|
subtlegradient
|
97c40c67f1
|
Merged changes from stable
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@8601 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2007-12-05 19:41:09 +00:00 |
|
subtlegradient
|
5335a0d676
|
Copying JavaScript to review
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@8600 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
|
2007-12-05 18:44:38 +00:00 |
|