We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8742634 + 0943b0b commit c5e1c47Copy full SHA for c5e1c47
src/parser/lexer.js
@@ -535,7 +535,7 @@ PHP.Lexer = function( src, ini ) {
535
536
result = result.substring( match[ 0 ].length );
537
538
- match = result.match(/^(\-\>)([a-zA-Z0-9_\x7f-\xff]*)/);
+ match = result.match(/^(\-\>)\s*([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)\s*(\()/);
539
540
if ( match !== null ) {
541
@@ -549,6 +549,8 @@ PHP.Lexer = function( src, ini ) {
549
match[ 2 ],
550
line
551
]);
552
+ if (match[3])
553
+ results.push(match[3]);
554
555
}
556
@@ -560,9 +562,9 @@ PHP.Lexer = function( src, ini ) {
560
562
561
563
var re;
564
if ( curlyOpen > 0) {
- re = /^([^\\\$"{}\]]|\\.)+/g;
565
+ re = /^([^\\\$"{}\])]|\\.)+/g;
566
} else {
- re = /^([^\\\$"{]|\\.|{[^\$])+/g;
567
+ re = /^([^\\\$"{]|\\.|{[^\$]|\$(?=[^a-zA-Z_\x7f-\xff]))+/g;;
568
569
570
while(( match = result.match( re )) !== null ) {
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments