'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.
1
2
3
4
5
| <html> <head> <title><?php echo $title; /*titel afdrukken */?></title> </head> </html> |
Niet dat ik echt uitgebreide kennis van PHP heb ofzo, maar het lijkt me een enorm ranzige manier van commenten...
Textpad pakt jouw manier ook niet
[ Voor 125% gewijzigd door OnTracK op 18-04-2006 19:38 ]
Not everybody wins, and certainly not everybody wins all the time.
But once you get into your boat, push off and tie into your shoes.
Then you have indeed won far more than those who have never tried.
- We Are Borg
- Registratie: April 2000
- Laatst online: 16:58
Sole survivor of the Chicxulub asteroid impact.
Ik heb nooit gezegd dat het een goeie manier van commenten was, maar het moet wel mogelijk zijn.OnTracK schreef op dinsdag 18 april 2006 @ 19:35:
Niet dat ik echt uitgebreide kennis van PHP heb ofzo, maar het lijkt me een enorm ranzige manier van commenten...
'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.
Nou, eigenlijk wel, waarom kom je nu pas achter die bug?-NMe- schreef op dinsdag 18 april 2006 @ 17:15:
Ik neem aan dat ik niet hoef uit te leggen wat hier misgaat en waarom?
Anyways, lokaal fix0rds, zie beta
God, root, what is difference? | Talga Vassternich | IBM zuigt
1
| (#|\/\/)[^">?]* |
dus er zijn helemaal geen ?, > of " meer toegestaan in single-line comments?
overigens heb ik het zelf ook nog niet weten te fixen; look-ahead assertions kent Flex niet, en iets triviaals als \?(?!>) is niet te herschreven naar iets zonder look-ahead.
Ik dacht dus meer in deze richting:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| (#|\/\/) {
yymore();
yy_push_state(COMMENTLINE);
}
<COMMENTLINE>
{
<<EOF>> {
token (TOKEN_COMMENT, YYText (), 0, 1);
yyterminate();
}
{phpclose} {
yyless(YYLeng() - 2);
token (TOKEN_COMMENT, YYText (), 0, 1);
yy_pop_state();
}
\n {
yyless(YYLeng() - 1);
token (TOKEN_COMMENT, YYText (), 0, 1);
yy_pop_state();
}
. yymore();
} |
enkel lijkt op de <<EOF>> match YYText () ineens leeg te zijn
[ Voor 80% gewijzigd door crisp op 18-04-2006 23:50 ]
Intentionally left blank
1
2
3
| (#|\/\/)[^"?>"]* {
token (TOKEN_COMMENT, YYText (), 0, 1);
} |
Moet wel werken lijkt me ?
Hmmm, blijkbaar niet... Dan zal het i.d.d. met die states moeten
[edit]
Zo te zien doet jouw probeersel het prima als ik dat hele rare EOF gedeelte weglaat ?
[ Voor 37% gewijzigd door moto-moi op 19-04-2006 01:38 ]
God, root, what is difference? | Talga Vassternich | IBM zuigt
Niet dat ik verder wat zinnigs te melden heb, maar een licht educatieve post mag ook in BUG wel, toch?
'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.
God, root, what is difference? | Talga Vassternich | IBM zuigt
[ Voor 7% gewijzigd door crisp op 19-04-2006 11:02 ]
Intentionally left blank
Ik zie niks bijzonders-NMe- schreef op dinsdag 18 april 2006 @ 17:15:
Daar ben ik weer.
Zie [rml][ PHP]dropdown php script laten activeren[/rml]. Om het even te reproduceren:
PHP:
1 2 3 4 5 <html> <head> <title><?php echo $title; //titel afdrukken ?></title> </head> </html>
Ik neem aan dat ik niet hoef uit te leggen wat hier misgaat en waarom?
God, root, what is difference? | Talga Vassternich | IBM zuigt
Dit topic is gesloten.
![]()