# [PATCH] Syntax highlighting with 'b' string prefix

- Thread: https://externals.io/message/27340
- Original archive: https://news-web.php.net/php.internals/27340
- Started by Matt Wilmas on 2007-01-09T03:18:38+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #27340 — Matt Wilmas — 2007-01-09T03:18:38+00:00

URL: https://externals.io/message/27340#27340

Hi all,

Just noticed that the 'b' prefix doesn't appear in syntax highlighting, nor
Tokenizer extension, with `T_CONSTANT_ENCAPSED_STRING` (and with heredocs in
5.2).  That's because yytext is incremented.  I've attached patches (didn't
test HEAD's) with a quick fix if it's acceptable. :-)


Matt

---

## #27341 — Andrei Zmievski — 2007-01-09T17:40:46+00:00

URL: https://externals.io/message/27340#27341 · In reply to: #27340

Applied, thanks.



> Hi all,
>
> Just noticed that the 'b' prefix doesn't appear in syntax 
> highlighting, nor
> Tokenizer extension, with `T_CONSTANT_ENCAPSED_STRING` (and with 
> heredocs in
> 5.2).  That's because yytext is incremented.  I've attached patches 
> (didn't
> test HEAD's) with a quick fix if it's acceptable. :-)
>
>
> Matt
> <b_prefix.diff.txt><b_prefix_5_2.diff.txt
