Post by Olivier Sessink2) can somebody on latest SVN edit bftextview2_private.h and set
#define DBG_SCANNING g_print
recompile, and post the full terminal output after loading the simple
example
<?php
// Print something
if ($test == false) {
echo "something";
}
echo "done";
?>
OK-- I downloaded the latest Bluefish from svn (bluefish 2.2.4 rev8134M)
and edited bftextview2_private.h as Olivier asked, then started Bluefish
from the command line with "bluefish &"
I then loaded a small text file composed of the PHP snippet above.
Attached is a screenshot of that snipped after being loaded, and the
output in the terminal window--
My environment-- Linux Mint 15, language English (utf-8). Could the bug
in question have to do with changing the colors or highlighting theme
within bluefish? If I remember correctly, the original post about this
issue had a screenshot in which this PHP snippet was colored
differently. I have no idea though--
Steve
--- --- --- terminal output of Bluefish --- --- ---
bfwin_main_ui_init, call lang_mode_menu_create(bfwin=0x2338510)
fb2_init, started for bfwin=0x2338510, fb2=0x2806570,
fb2->filebrowser_viewmode=0
cleanup_scanner, memory scancache 0(0Kb+0Kb) found 0(0Kb) fcontext
0(0Kb) = 0Kb
bflang2scan_finished, call lang_mode_menu_create() for bfwin 0x2338510
fb2_file_is_opened, called for
/home/xscd/Desktop/bluefish-comment-bug-test.php with mimetype (null)
cleanup_scanner, memory scancache 0(0Kb+0Kb) found 0(0Kb) fcontext
0(0Kb) = 0Kb
fb2_focus_document,doc /home/xscd/Desktop/bluefish-comment-bug-test.php
change_focus_to_uri, called for
/home/xscd/Desktop/bluefish-comment-bug-test.php
Possible error in language file, id - / pattern } has ends_context=2,
but has only 2 parent contexts
Possible error in language file, id end-style-tag / pattern </style> has
ends_context=3, but has only 3 parent contexts
Language statistics for PHP from
/usr/local/share/bluefish/bflang//php.bflang2
reference size 861.46 Kbytes
largest table 32354 ( 8088.50 Kbytes)
total tables 62109 ( 15527.25 Kbytes)
contexts 333 ( 15.61 Kbytes)
matches 9699 ( 454.64 Kbytes)
blocks 14 ( 0.44 Kbytes)
cleanup_scanner, memory scancache 0(0Kb+0Kb) found 0(0Kb) fcontext
0(0Kb) = 0Kb
bftextview2_find_region2scan returned region 0:85
start scanning at start iter
scanning from 0 to 85
scanning offset 0 pos 0 < (context=1).. got newpos 2
scanning offset 1 pos 2 ? (context=1).. got newpos 3
scanning offset 2 pos 3 p (context=1).. got newpos 4
scanning offset 3 pos 4 h (context=1).. got newpos 5
scanning offset 4 pos 5 p (context=1).. got newpos 6
scanning offset 5 pos 6
(context=1).. got newpos 0
we have a match from pos 0 to 5
found_match for pattern 1 <(\?|\?php) at charoffset 0,
starts_block=1,ends_block=0, nextcontext=2 (current=1)
found_match, apply tag 0x231b190 from 0 to 5
no nextfound, so enlarge scanning region to end iter
found_context_change, new fcontext 0x3325b60 with context 2 onto the
stack, parent=(nil)
after match context=2
scanning offset 5 pos 0
(context=2).. got newpos 0
scanning offset 6 pos 0 / (context=2).. got newpos 32333
scanning offset 7 pos 32333 / (context=2).. got newpos 32350
scanning offset 8 pos 32350 (context=2).. got newpos 0
we have a match from pos 6 to 8
found_match for pattern 4631 // at charoffset 6,
starts_block=0,ends_block=0, nextcontext=8 (current=2)
found_match, apply tag 0x230ed40 from 6 to 8
no nextfound, so enlarge scanning region to end iter
found_context_change, new fcontext 0x320b6a0 with context 8 onto the
stack, parent=0x3325b60
after match context=8
scanning offset 8 pos 0 (context=8).. got newpos 1
scanning offset 9 pos 1 P (context=8).. got newpos 1
scanning offset 10 pos 1 r (context=8).. got newpos 1
scanning offset 11 pos 1 i (context=8).. got newpos 1
scanning offset 12 pos 1 n (context=8).. got newpos 1
scanning offset 13 pos 1 t (context=8).. got newpos 1
scanning offset 14 pos 1 (context=8).. got newpos 1
scanning offset 15 pos 1 s (context=8).. got newpos 1
scanning offset 16 pos 1 o (context=8).. got newpos 1
scanning offset 17 pos 1 m (context=8).. got newpos 1
scanning offset 18 pos 1 e (context=8).. got newpos 1
scanning offset 19 pos 1 t (context=8).. got newpos 1
scanning offset 20 pos 1 h (context=8).. got newpos 1
scanning offset 21 pos 1 i (context=8).. got newpos 1
scanning offset 22 pos 1 n (context=8).. got newpos 1
scanning offset 23 pos 1 g (context=8).. got newpos 1
scanning offset 24 pos 1
(context=8).. got newpos 0
scanning offset 24 pos 0
(context=8).. got newpos 2
scanning offset 25 pos 2 i (context=8).. got newpos 0
we have a match from pos 24 to 25
found_match for pattern 4632 (
|
) at charoffset 24, starts_block=0,ends_block=0, nextcontext=-1 (current=8)
no nextfound, so enlarge scanning region to end iter
found_context_change, should pop 1 contexts, curfcontext=0x320b6a0
pop_and_apply_contexts, end context 8 at 8:24, has tag 0x230ed40 and
parent 0x3325b60
after match context=2
scanning offset 25 pos 0 i (context=2).. got newpos 728
scanning offset 26 pos 728 f (context=2).. got newpos 10180
scanning offset 27 pos 10180 (context=2).. got newpos 0
we have a match from pos 25 to 27
found_match for pattern 4529 if at charoffset 25,
starts_block=0,ends_block=0, nextcontext=0 (current=2)
found_match, apply tag 0x231b0a0 from 25 to 27
found_match, pattern does not start block or context, return
after match context=2
scanning offset 27 pos 0 (context=2).. got newpos 0
scanning offset 28 pos 0 ( (context=2).. got newpos 32331
scanning offset 29 pos 32331 $ (context=2).. got newpos 0
we have a match from pos 28 to 29
found_match for pattern 4589 ( at charoffset 28,
starts_block=1,ends_block=0, nextcontext=0 (current=2)
found_match, apply tag 0x231b4a0 from 28 to 29
no nextfound, so enlarge scanning region to end iter
after match context=2
scanning offset 29 pos 0 $ (context=2).. got newpos 32346
scanning offset 30 pos 32346 t (context=2).. got newpos 32347
scanning offset 31 pos 32347 e (context=2).. got newpos 32348
scanning offset 32 pos 32348 s (context=2).. got newpos 32348
scanning offset 33 pos 32348 t (context=2).. got newpos 32348
scanning offset 34 pos 32348 (context=2).. got newpos 0
we have a match from pos 29 to 34
found_match for pattern 4598 $[a-zA-Z_][a-zA-Z0-9_]* at charoffset 29,
starts_block=0,ends_block=0, nextcontext=0 (current=2)
found_match, apply tag 0x231b1e0 from 29 to 34
found_match, pattern does not start block or context, return
after match context=2
scanning offset 34 pos 0 (context=2).. got newpos 0
scanning offset 35 pos 0 = (context=2).. got newpos 0
scanning offset 36 pos 0 = (context=2).. got newpos 0
scanning offset 37 pos 0 (context=2).. got newpos 0
scanning offset 38 pos 0 f (context=2).. got newpos 1070
scanning offset 39 pos 1070 a (context=2).. got newpos 4714
scanning offset 40 pos 4714 l (context=2).. got newpos 32316
scanning offset 41 pos 32316 s (context=2).. got newpos 32317
scanning offset 42 pos 32317 e (context=2).. got newpos 32318
scanning offset 43 pos 32318 ) (context=2).. got newpos 0
we have a match from pos 38 to 43
found_match for pattern 4549 false at charoffset 38,
starts_block=0,ends_block=0, nextcontext=0 (current=2)
found_match, apply tag 0x231b140 from 38 to 43
found_match, pattern does not start block or context, return
after match context=2
scanning offset 43 pos 0 ) (context=2).. got newpos 32332
scanning offset 44 pos 32332 (context=2).. got newpos 0
we have a match from pos 43 to 44
found_match for pattern 4590 ) at charoffset 43,
starts_block=0,ends_block=1, nextcontext=0 (current=2)
found_match, apply tag 0x231b4a0 from 43 to 44
no nextfound, so enlarge scanning region to end iter
after match context=2
scanning offset 44 pos 0 (context=2).. got newpos 0
scanning offset 45 pos 0 { (context=2).. got newpos 32327
scanning offset 46 pos 32327
(context=2).. got newpos 0
we have a match from pos 45 to 46
found_match for pattern 4585 { at charoffset 45,
starts_block=1,ends_block=0, nextcontext=0 (current=2)
found_match, apply tag 0x231b4a0 from 45 to 46
no nextfound, so enlarge scanning region to end iter
after match context=2
scanning offset 46 pos 0
(context=2).. got newpos 0
scanning offset 47 pos 0 (context=2).. got newpos 0
scanning offset 48 pos 0 (context=2).. got newpos 0
scanning offset 49 pos 0 e (context=2).. got newpos 126
scanning offset 50 pos 126 c (context=2).. got newpos 32235
scanning offset 51 pos 32235 h (context=2).. got newpos 32236
scanning offset 52 pos 32236 o (context=2).. got newpos 32237
scanning offset 53 pos 32237 (context=2).. got newpos 0
we have a match from pos 49 to 53
found_match for pattern 4519 echo at charoffset 49,
starts_block=0,ends_block=0, nextcontext=0 (current=2)
found_match, apply tag 0x231b0a0 from 49 to 53
found_match, pattern does not start block or context, return
after match context=2
scanning offset 53 pos 0 (context=2).. got newpos 0
scanning offset 54 pos 0 " (context=2).. got newpos 32349
scanning offset 55 pos 32349 s (context=2).. got newpos 0
we have a match from pos 54 to 55
found_match for pattern 4599 " at charoffset 54,
starts_block=1,ends_block=0, nextcontext=7 (current=2)
found_match, apply tag 0x230ed90 from 54 to 55
no nextfound, so enlarge scanning region to end iter
found_context_change, new fcontext 0x31e7e40 with context 7 onto the
stack, parent=0x3325b60
after match context=7
scanning offset 55 pos 0 s (context=7).. got newpos 91
scanning offset 56 pos 91 o (context=7).. got newpos 1
scanning offset 57 pos 1 m (context=7).. got newpos 1
scanning offset 58 pos 1 e (context=7).. got newpos 1
scanning offset 59 pos 1 t (context=7).. got newpos 1
scanning offset 60 pos 1 h (context=7).. got newpos 1
scanning offset 61 pos 1 i (context=7).. got newpos 1
scanning offset 62 pos 1 n (context=7).. got newpos 1
scanning offset 63 pos 1 g (context=7).. got newpos 1
scanning offset 64 pos 1 " (context=7).. got newpos 0
scanning offset 64 pos 0 " (context=7).. got newpos 115
scanning offset 65 pos 115 ; (context=7).. got newpos 0
we have a match from pos 64 to 65
found_match for pattern 4630 " at charoffset 64,
starts_block=0,ends_block=1, nextcontext=-1 (current=7)
found_match, apply tag 0x230ed90 from 64 to 65
no nextfound, so enlarge scanning region to end iter
found_context_change, should pop 1 contexts, curfcontext=0x31e7e40
pop_and_apply_contexts, end context 7 at 55:64, has tag 0x230ed90 and
parent 0x3325b60
after match context=2
scanning offset 65 pos 0 ; (context=2).. got newpos 0
scanning offset 66 pos 0
(context=2).. got newpos 0
scanning offset 67 pos 0 } (context=2).. got newpos 32328
scanning offset 68 pos 32328
(context=2).. got newpos 0
we have a match from pos 67 to 68
found_match for pattern 4586 } at charoffset 67,
starts_block=0,ends_block=1, nextcontext=0 (current=2)
found_match, apply tag 0x231b4a0 from 67 to 68
no nextfound, so enlarge scanning region to end iter
after match context=2
scanning offset 68 pos 0
(context=2).. got newpos 0
scanning offset 69 pos 0
(context=2).. got newpos 0
scanning offset 70 pos 0 e (context=2).. got newpos 126
scanning offset 71 pos 126 c (context=2).. got newpos 32235
scanning offset 72 pos 32235 h (context=2).. got newpos 32236
scanning offset 73 pos 32236 o (context=2).. got newpos 32237
scanning offset 74 pos 32237 (context=2).. got newpos 0
we have a match from pos 70 to 74
found_match for pattern 4519 echo at charoffset 70,
starts_block=0,ends_block=0, nextcontext=0 (current=2)
found_match, apply tag 0x231b0a0 from 70 to 74
found_match, pattern does not start block or context, return
after match context=2
scanning offset 74 pos 0 (context=2).. got newpos 0
scanning offset 75 pos 0 " (context=2).. got newpos 32349
scanning offset 76 pos 32349 d (context=2).. got newpos 0
we have a match from pos 75 to 76
found_match for pattern 4599 " at charoffset 75,
starts_block=1,ends_block=0, nextcontext=7 (current=2)
found_match, apply tag 0x230ed90 from 75 to 76
no nextfound, so enlarge scanning region to end iter
found_context_change, new fcontext 0x3245a60 with context 7 onto the
stack, parent=0x3325b60
after match context=7
scanning offset 76 pos 0 d (context=7).. got newpos 19
scanning offset 77 pos 19 o (context=7).. got newpos 1
scanning offset 78 pos 1 n (context=7).. got newpos 1
scanning offset 79 pos 1 e (context=7).. got newpos 1
scanning offset 80 pos 1 " (context=7).. got newpos 0
scanning offset 80 pos 0 " (context=7).. got newpos 115
scanning offset 81 pos 115 ; (context=7).. got newpos 0
we have a match from pos 80 to 81
found_match for pattern 4630 " at charoffset 80,
starts_block=0,ends_block=1, nextcontext=-1 (current=7)
found_match, apply tag 0x230ed90 from 80 to 81
no nextfound, so enlarge scanning region to end iter
found_context_change, should pop 1 contexts, curfcontext=0x3245a60
pop_and_apply_contexts, end context 7 at 76:80, has tag 0x230ed90 and
parent 0x3325b60
after match context=2
scanning offset 81 pos 0 ; (context=2).. got newpos 0
scanning offset 82 pos 0
(context=2).. got newpos 0
scanning offset 83 pos 0 ? (context=2).. got newpos 32352
scanning offset 84 pos 32352 > (context=2).. got newpos 32353
scanning offset 85 pos 32353 (context=2).. got newpos 0
we have a match from pos 83 to 85
found_match for pattern 4635 ?> at charoffset 83,
starts_block=0,ends_block=1, nextcontext=-1 (current=2)
found_match, apply tag 0x231b190 from 83 to 85
no nextfound, so enlarge scanning region to end iter
found_context_change, should pop 1 contexts, curfcontext=0x3325b60
pop_and_apply_contexts, end context 2 at 5:83, has tag (nil) and parent
(nil)
after match context=1
scanned from 0 to position 85, (end=85) which took 0.003475
microseconds, loops_per_timer=1000
scanning run 1 (3 ms): 0, 0, 0, 3; from 0-85, loops=105,chars=85,blocks
5/5 (0) contexts 4/4 (0) scancache 12
memory scancache 12(0Kb+0Kb) found 5(0Kb) fcontext 4(0Kb) = 1Kb
average 28333 chars/s 85 chars/run
scancache integrity check done in 0.010000 ms.
change_focus_to_uri, called for
/home/xscd/Desktop/bluefish-comment-bug-test.php