function foo() {
  
}

// misc
var foo = "asdf";
var bar = 1E2

// objects
var foo = bar.asdf;
var foo = bar.asdf.bla;
bar.func(adsf.bar);
var foo = asdf. asdf . asdf ;
var a = foo.bar
var b = z // var here not an object

// no regular expression
var foo = foo.i / 0;
var bar = bar / 1;
var foo = bar / 1; bar / 1;

// regular expressions
foo = /asdf/i;
foo = /asdf/ig;
foo = /asdf/gi;
foo = /asdf\/asdf/;

@@ -132,16 +132,40 @@
 f.bar);%0A
+var foo = bar%0A  . asdf;%0A
 var foo 
@@ -176,16 +176,18 @@
 df. asdf
+%0A 
  . asdf 
@@ -216,16 +216,26 @@
 b = z //
+ following
  var her
@@ -249,16 +249,58 @@
 n object
+%0Avar asdf = someObject().bar()%0A  .meh.bar;
 %0A%0A// no 

Extend highlight.js example