Package: joe
Version: 3.7-1
Severity: normal
Tags: upstream

To reproduce:
1. edit a php file in joe
2. enter code like the following:
        <?
        $a=true?'true':'false';
        $this = 'not a string';
        ?>
3. gasp at the syntax highlighting being incorrect

Expected results:
The single-quoted strings ('true', 'false', 'not a string') should be 
highlighted
as strings, and the remainder of the text be highlighted as variables /
punctuation.

Actual results:
The single quote immediately after the ? is not picked up as the beginning
of a string, so the rest of the syntax highlighting is out of step (strings
are treated as non-strings and non-strings are treated as strings.

Workaround:
put a space after the ? (e.g. $a = true ? 'true' : 'false';) which is often
more readable, but often not used in other people's code!

I had an unsuccessful go at fixing this, but there are undoubtably others
better qualified to attack the problem!

Cheers & God bless
    Sam "SammyTheSnake" Penny


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages joe depends on:
ii  libc6                     2.11.2-2       Embedded GNU C Library: Shared lib
ii  libncurses5               5.7+20100313-2 shared libraries for terminal hand

joe recommends no packages.

joe suggests no packages.

-- Configuration Files:
/etc/joe/ftyperc changed [not included]
/etc/joe/joerc changed [not included]
/etc/joe/syntax/php.jsf changed [not included]

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to