Fixes #2645 : [php] Double-click "$a" in "$a->b()" highlights "$a-"

This commit is contained in:
Martin Aeschlimann 2016-02-03 17:29:28 +01:00
parent 09c07b7830
commit 2affc685ad
2 changed files with 2 additions and 2 deletions

View file

@ -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
});
}

View file

@ -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;
}