Fixes #2645 : [php] Double-click "$a" in "$a->b()" highlights "$a-"
This commit is contained in:
parent
09c07b7830
commit
2affc685ad
|
@ -23,6 +23,6 @@ export function activate(context: ExtensionContext): any {
|
|||
|
||||
// need to set in the plugin host as well as the completion provider uses it.
|
||||
languages.setLanguageConfiguration('php', {
|
||||
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g
|
||||
wordPattern: /(-?\d*\.\d\w*)|([^\-\`\~\!\@\#\%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g
|
||||
});
|
||||
}
|
|
@ -557,7 +557,7 @@ export class PHPMode extends AbstractMode<AbstractModeWorker> implements support
|
|||
return { lineCommentTokens: ['//','#'], blockCommentStartToken: '/*', blockCommentEndToken: '*/' };
|
||||
}
|
||||
|
||||
private static WORD_DEFINITION = createWordRegExp('$-');
|
||||
private static WORD_DEFINITION = createWordRegExp('$_');
|
||||
public getWordDefinition():RegExp {
|
||||
return PHPMode.WORD_DEFINITION;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue