Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5486
    shaohao
    Member

    @data = (1,2);
    for ( my $i = 0; $i < $#data; ++$i) {
    ....

    As we know, the “$#” mean the last element of a list in Perl.
    But EE’s Syntax highlight will be error to display the “$#data” — “#data” will be treated as a comment.

    #5488
    Yutaka Emura
    Keymaster

    shaohao wrote:


    @data = (1,2);
    for ( my $i = 0; $i < $#data; ++$i) {
    ....

    As we know, the “$#” mean the last element of a list in Perl.
    But EE’s Syntax highlight will be error to display the “$#data” — “#data” will be treated as a comment.

    EmEditor’s syntax highlighting is designed to be generic, so this inconvenience can happen. You might want to remove # from the comment string in the Highlight (2) tab of configuration properties.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.