[go: up one dir, main page]

Menu

#91 TCL comment coloring issue

colorer-take5
closed-fixed
HRC codes (39)
5
2005-08-30
2005-08-29
Owen
No

In TCL, a '#' character is treated as the start of a
comment only if it is located at the beginning of a
command. If it occurs elsewhere, it is not treated
specially unless it is preceded by a semicolon. For
example, the line:

set lChars [ list # - . 0 ]

has no comments in it. However, Colorer treats
everything after the '#' as a comment. This causes all
sorts of errors when trying to highlight bracket and
brace pairs. For the '#' character to start a comment, it
should only look like this:

# Valid Comment

or this:

set iVal 1 ;# valid comment

Discussion

  • Igor Russkih

    Igor Russkih - 2005-08-30
    • labels: --> HRC codes
    • milestone: --> colorer-take5
    • assigned_to: nobody --> lomecb
    • status: open --> closed-fixed
     
  • Igor Russkih

    Igor Russkih - 2005-08-30

    Logged In: YES
    user_id=313042

    fixed.
    Diff:

    < <block start="/\#/" end="/([^\\]?#1$)|([\\]\s+$)/"
    scheme="Comment"
    ---
    > <block start="/(^|;)\s{,4}\#/"
    end="/([^\\]?#1$)|([\\]\s+$)/" scheme="Comment"

     

Log in to post a comment.