Thomas Aylott
d2bc10e4b3
new command: run javascript.
...
runs your current selection or document in an html output window. You can do console messages and check the html output window's console.
includes support for window.alert and window.confirm from Hans-Jörg Bibiko
properly corrects for line numbers in error messages
2009-02-15 08:14:36 +00:00
Thomas Aylott
1ede89fb65
new documentation commands
2009-02-15 08:14:36 +00:00
Thomas Aylott
2fedbea18a
new closure snippet
2009-02-15 08:14:36 +00:00
Thomas Aylott
f2501c8d2f
added wrapping support to a few snippets
2009-02-15 08:14:36 +00:00
Thomas Aylott
590fd26aae
Updated Javascript Basic syntax.
...
literal-function-call
literal-variable
keyword.operators
literal-regex
2009-02-15 08:14:36 +00:00
Thomas Aylott
ba5fa1d4d8
Updated folding to that of Embedded
2009-02-15 08:14:36 +00:00
Thomas Aylott
a8b1d18261
MUCH simpler and more bulletproof regex for indent and folding with tests
2009-02-15 08:14:35 +00:00
Thomas Aylott
4d6df87768
Fixed a strange issue with the folding & indent. It wasn't properly matching escaped strings inside strings
2009-02-15 08:14:35 +00:00
Thomas Aylott
e3c2594e12
Code Completion with tooltips from Quirksmode.org (with permission)
2009-02-15 08:14:35 +00:00
Thomas Aylott
67ed84b3e0
Beginning README
...
addEventListener snippet default to bubbling
Updated info.plist
2009-02-15 08:14:35 +00:00
Thomas Aylott
fd574d60c2
Renamed the "normal" for loop to "for (…) {…} (Classic)"
...
diff --git "a/Snippets/for (\342\200\246) {\342\200\246}.tmSnippet" "b/Snippets/for (\342\200\246) {\342\200\246}.tmSnippet"
index 9001c98..c6ddbf7 100644
--- "a/Snippets/for (\342\200\246) {\342\200\246}.tmSnippet"
+++ "b/Snippets/for (\342\200\246) {\342\200\246}.tmSnippet"
@@ -7,7 +7,7 @@
${0:$1[$20]}
}</string>
<key>name</key>
- <string>for (…) {…}</string>
+ <string>for (…) {…} (Classic)</string>
<key>scope</key>
<string>source.js</string>
<key>tabTrigger</key>
2009-02-15 08:14:35 +00:00
Thomas Aylott
ca274896fa
Updated Javascript syntax test
2009-02-15 08:14:35 +00:00
Thomas Aylott
588708f2f9
don't show function-calls in the symbol list
2009-02-15 08:14:35 +00:00
Thomas Aylott
869e993216
Removed the // smart string
2009-02-15 08:14:35 +00:00
Thomas Aylott
3f8ff5c7c4
New snippets for switch / case
2009-02-15 08:14:35 +00:00
Thomas Aylott
3dd8342167
Fix an issue where a @ in a block comment would cause IE conditional comment matching for the rest of the document
2009-02-15 08:14:34 +00:00
Thomas Aylott
7b887b2053
Updated info.plist
2009-02-15 08:14:34 +00:00
Thomas Aylott
02d5543550
smartTypingPairs, highlightPairs; Regular and in Strings
2009-02-15 08:14:34 +00:00
Thomas Aylott
8faa40bacf
Fixed indent rules for single-line case statements
2009-02-15 08:14:34 +00:00
Thomas Aylott
148d7ee9f3
NEW Advanced Folding and Indent patterns!
...
Added switch…case tests
2009-02-15 08:14:34 +00:00
Thomas Aylott
53cf154cf1
More advanced indent & folding tests
2009-02-15 08:14:34 +00:00
Thomas Aylott
ef4f576d6f
Special indent/folding tests
2009-02-15 08:14:34 +00:00
Thomas Aylott
5416ef92b3
updated info.plist for new stuff
2009-02-15 08:14:34 +00:00
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