We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4766603 commit eefdb07Copy full SHA for eefdb07
lib/pgFormatter/Beautify.pm
@@ -551,6 +551,7 @@ sub highlight_code {
551
&& !$self->_is_comment($token) )
552
)
553
{
554
+ exit 3;
555
if ( $self->{'uc_functions'} == 1 ) {
556
$token = '<span class="kw2_l">' . $token . '</span>';
557
}
@@ -2468,7 +2469,7 @@ sub beautify {
2468
2469
and $self->_is_comment( $self->_next_token ) );
2470
$add_newline = 0
2471
if ( defined $self->_next_token
- and $self->_next_token =~ /KEYWCONST/
2472
+ and $self->_next_token =~ /KEYWCONST/ and $#{$self->{'_tokens'}} >= 1
2473
and $self->{'_tokens'}[1] =~ /^(LANGUAGE|STRICT)$/i );
2474
$add_newline = 1 if ( $self->{'_is_in_truncate'} );
2475
if (
0 commit comments