annotate vendor/nikic/php-parser/test/code/parser/blockComments.test @ 13:5fb285c0d0e3

Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've been lucky to get away with this so far, as we don't support self-registration which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5 was vulnerable to.
author Chris Cannam
date Mon, 23 Apr 2018 09:33:26 +0100
parents 4c8ae668cc8c
children
rev   line source
Chris@0 1 Comments on blocks
Chris@0 2 -----
Chris@0 3 <?php
Chris@0 4
Chris@0 5 // foo
Chris@0 6 {
Chris@0 7 // bar
Chris@0 8 {
Chris@0 9 // baz
Chris@0 10 $a;
Chris@0 11 }
Chris@0 12 }
Chris@0 13
Chris@0 14 // empty
Chris@0 15 {}
Chris@0 16 -----
Chris@0 17 array(
Chris@13 18 0: Stmt_Expression(
Chris@13 19 expr: Expr_Variable(
Chris@13 20 name: a
Chris@13 21 comments: array(
Chris@13 22 0: // baz
Chris@13 23 )
Chris@13 24 )
Chris@0 25 comments: array(
Chris@0 26 0: // foo
Chris@0 27 1: // bar
Chris@0 28 2: // baz
Chris@0 29 )
Chris@0 30 )
Chris@0 31 1: Stmt_Nop(
Chris@0 32 comments: array(
Chris@0 33 0: // empty
Chris@0 34 )
Chris@0 35 )
Chris@0 36 )