[go: up one dir, main page]

Menu

#99 shell script mode parse errors

colorer-take5
closed-fixed
None
5
2006-05-19
2006-01-22
Anonymous
No

1) Shell paths containing hyphens are parsed wrongly; the pre-hyphen
portion is included in the def_URI, the post-hyphen portion (including
the hyphen) is unstyled.

2) Shell paths containing periods are parsed wrongly; the period is
parsed as a keyword.

With beta4:

colorer -ht ./test.sh

where test.sh contains:

#!/bin/sh
(cd x; y/a-b.sh)

produces:

Colorer-take5 Library beta4 01.12.2004
Copyright (c) 1999-2005 Igor Russkih <cail@nm.ru>

<html>
<head>
<style></style>
</head>
<body><pre>
Created with colorer-take5 library. Type 'shell'

<span class='def_Comment def_Syntax'>#!/bin/sh</span>
<span class='shell_symb.struct def_SymbolStrong def_Symbol'>(</
span><span class='shell_command.sys def_KeywordStrong
def_Keyword'>cd</span> x<span class='shell_symb.struct
def_SymbolStrong def_Symbol'>;</span> <span class='shell_path
def_Path def_URI'>y/a</span>-b<span class='shell_command
def_Keyword'>.</span>sh<span class='shell_symb.struct
def_SymbolStrong def_Symbol'>)</span>

</pre></body></html>

Steve

stinney@sas.upenn.edu

Discussion

  • Igor Russkih

    Igor Russkih - 2006-05-19
    • milestone: --> colorer-take5
    • assigned_to: nobody --> lomecb
    • status: open --> closed-fixed
     
  • Igor Russkih

    Igor Russkih - 2006-05-19

    Logged In: YES
    user_id=313042

    fixed in revision 736

     

Log in to post a comment.