diff --git a/js/language/php.js b/js/language/php.js index 943f37d3..533173e2 100644 --- a/js/language/php.js +++ b/js/language/php.js @@ -119,5 +119,28 @@ Rainbow.extend('php', [ } }, 'pattern': /(\(|,\s?)([\w\\]*?)(?=\s\$)/g + }, + +/** + * New PHP patterns for: + * PHPDoc comment + * PHPDoc variable + * Shell command + * + * @author Alexandre Paradis + */ + { + 'name': 'comment.phpdoc', + 'matches': { + 1: { + 'name': 'keyword.phpdoc', + 'pattern': /@\w+/g + } + }, + 'pattern': /\/\*\*([\s\S]*?)\*\//gm + }, + { + 'name': 'shell.command', + 'pattern': /`([\s\S]*)?`/gm } ]);