Changeset 11029


Ignore:
Timestamp:
2006-01-12T12:05:21+13:00 (18 years ago)
Author:
mdewsnip
Message:

Fix for '#' characters as anchor references being mistaken for comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/gti.pl

    r11026 r11029  
    853853    elsif ($line =~ m/^(_\w+_)/) {
    854854        my $macro_key = $1;
    855         $line =~ s/\s*([^\\]\#.+)?$//;  # Remove any comments and nasty whitespace
     855        $line =~ s/\s*([^\\]\#[^\}]+)?$//;  # Remove any comments and nasty whitespace
    856856
    857857        # While there is still text of the macro to go...
     
    863863        }
    864864        $line = $file_lines[$i];
    865         $line =~ s/\s*([^\\]\#.+)?$//;  # Remove any comments and nasty whitespace
     865        $line =~ s/\s*([^\\]\#[^\}]+)?$//;  # Remove any comments and nasty whitespace
    866866        }
    867867
Note: See TracChangeset for help on using the changeset viewer.