File tree Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,14 @@ module.exports = {
22
22
if ( ch === '0' ) {
23
23
ch = this . input ( ) ;
24
24
// check if hexa
25
- if ( ch === 'x' ) {
25
+ if ( ch === 'x' || ch === 'X' ) {
26
26
this . input ( ) ;
27
27
if ( this . is_HEX ( ) ) {
28
28
return this . consume_HNUM ( ) ;
29
29
} else {
30
30
this . unput ( 2 ) ;
31
31
}
32
- } else if ( ch === 'b' ) {
32
+ } else if ( ch === 'b' || ch === 'B' ) {
33
33
ch = this . input ( ) ;
34
34
if ( ch === '0' || ch === '1' ) {
35
35
return this . consume_BNUM ( ) ;
Original file line number Diff line number Diff line change 1
1
<?php
2
- /*
3
- @todo - should pass
4
- */
2
+
3
+ $ colors = array ("red " , "white " , "blue " );
4
+ echo "\colors contains > $ colors< \n" ;
5
+ echo "\colors[1] contains > $ colors [1 ]< \n" ;
6
+ echo "\colors[1] contains > $ colors [1]< \n" ; // whitespace permitted, but semantics change
7
+ //echo "\colors[1] contains >$colors[ 1]<\n"; // whitespace not permitted
8
+ //echo "\colors[1] contains >$colors[1 ]<\n"; // whitespace not permitted
9
+ var_dump ("$ colors [1 ]" );
10
+ var_dump ("$ colors [01 ]" ); // invalid index
11
+ var_dump ("$ colors [0x1 ]" ); // invalid index
12
+ var_dump ("$ colors [0X1 ]" ); // invalid index
13
+
5
14
echo "~'.{ {$ expectedLength }}' \$~s " ;
6
15
$ obj = new stdClass ();
7
16
$ obj ->name = 'john ' ;
19
28
$ v = strtolower ("$ i. $ j. $ k- $ rel " );
20
29
$ text = "$ text at line $ line " ;
21
30
return "Class.create(' $ package$ className',{ " ;
22
-
31
+
23
32
$ this ->lastTTYMode = trim (`stty -g `);
24
-
33
+
25
34
/**, $methodName = null **/
26
35
$ source = preg_replace ('/(^|\s)namespace(.*?)\s*;/ ' , "$1namespace$2 \n{ " , $ source )."} \n" ;
27
36
/*/
28
37
$foo;
29
38
/**/
30
- $ foo ;
39
+ $ foo ;
You can’t perform that action at this time.
0 commit comments