mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-14 01:50:22 -08:00
16e5e8eFix last change to isearch-update (bug#23406)b755d98Autoload cursor-sensor-inhibit (bug#23406)b52ebd4org-map-entries: Fix org-agenda-prepare-buffers call86aa409Followup for last commit in the user manual7004459Improve doc string of 'set-goal-column'ccdaf04Fix the MSDOS buildffe701cRemove \= from format string (bug#18190)1c58fa1Fix variable-pitch font on MS-Windowsc6077bfRestore follow-scroll-up/down to scrolling by the combined si...b671e21Revert unneeded change which harms syntactic parsing. This f...48b24c9Correct indentation of ids in a C++ enum after a protection k...5c3534f* lisp/window.el (window--process-window-list): No-op if no p...734fb3aPort dumping to NetBSD with PaX0255a70Don't mistake `for' inside a function for a part of array com... # Conflicts: # src/Makefile.in
115 lines
1.1 KiB
JavaScript
115 lines
1.1 KiB
JavaScript
var a = 1;
|
|
b = 2;
|
|
|
|
let c = 1,
|
|
d = 2;
|
|
|
|
var e = 100500,
|
|
+ 1;
|
|
|
|
function test ()
|
|
{
|
|
return /[/]/.test ('/') // (bug#19397)
|
|
}
|
|
|
|
var f = bar('/protocols/')
|
|
baz();
|
|
|
|
var h = 100500
|
|
1;
|
|
|
|
const i = 1,
|
|
j = 2;
|
|
|
|
var k = 1,
|
|
l = [
|
|
1, 2,
|
|
3, 4
|
|
],
|
|
m = 5;
|
|
|
|
var n = function() {
|
|
return 7;
|
|
},
|
|
o = 8;
|
|
|
|
foo(bar, function() {
|
|
return 2;
|
|
});
|
|
|
|
switch (b) {
|
|
case "a":
|
|
2;
|
|
default:
|
|
3;
|
|
}
|
|
|
|
var p = {
|
|
case: 'zzzz',
|
|
default: 'donkey',
|
|
tee: 'ornery'
|
|
};
|
|
|
|
var evens = [e for each (e in range(0, 21))
|
|
if (ed % 2 == 0)];
|
|
|
|
var funs = [
|
|
function() {
|
|
for (;;) {
|
|
}
|
|
},
|
|
function(){},
|
|
];
|
|
|
|
!b
|
|
!=b
|
|
!==b
|
|
|
|
a++
|
|
b +=
|
|
c
|
|
|
|
baz(`http://foo.bar/${tee}`)
|
|
.qux();
|
|
|
|
`multiline string
|
|
contents
|
|
are kept
|
|
unchanged!`
|
|
|
|
class A {
|
|
* x() {
|
|
return 1
|
|
* a(2);
|
|
}
|
|
|
|
*[Symbol.iterator]() {
|
|
yield "Foo";
|
|
yield "Bar";
|
|
}
|
|
}
|
|
|
|
if (true)
|
|
1
|
|
else
|
|
2
|
|
|
|
Foobar
|
|
.find()
|
|
.catch((err) => {
|
|
return 2;
|
|
})
|
|
.then((num) => {
|
|
console.log(num);
|
|
});
|
|
|
|
var arr = [
|
|
-1, 2,
|
|
-3, 4 +
|
|
-5
|
|
];
|
|
|
|
// Local Variables:
|
|
// indent-tabs-mode: nil
|
|
// js-indent-level: 2
|
|
// End:
|