trait Tlf\Lexer\PhpNew\CoreDirectives

Constants

Properties

  • `protected $_core_directives = [ 'php_open'=>[ I could support short open, but I'm not going to right now 'start'=>[ 'match''[ 'match' => '?>', 'buffer.clear', ] ], 'php_code'=>[ 'start'=>[ 'rewind 1', 'then :word', 'then :operation', 'then :whitespace', 'then :comment', 'then docblock:/*', 'then :string', 'then :+php_stop'=>[ 'start'=>[ 'match''?>', 'directive.pop 2', 'rewind 2', 'buffer.clear', ] ], ], 'stop'=>[ 'debug.die''php_code.stop should never execute, because the stopping is handled by the 'start' of another ', // ''=>'? ', // 'directive.pop ', // 'rewind ', // '', ] ],

      ''=>[
          ''=>[
              '',
              ''=>'', // easiest way to do the propert starting & everything
              '',
              '',
              '',
          ]
      ],
      ''=>[
          ''=>[
              // ''=>'',
              ''=>'',
          ],
          ''=>[
              ''=>'',
              'rewind ',
              '',
              '',
          ],
      ],
    
      ''=>[
          //is '' dotall? & does that make it catch newlines?
          ''=>[
              '' =>'',
              'lexer:unsetPrevious ',
          ],
          ''=>[
              ''=> '',
              'rewind ',
              '',
              '',
          ],
      ],
    
      ''=>[
          ''=>[
              ''=> ')/',                'buffer.clear'=>true,
          ],
    
          'stop'=>[
              'match''/(\r\n|\n)$/',
              'this:handleComment',
              'buffer.clear',
          ]
      ],
    

    ];`

Methods