@@ -1275,7 +1275,7 @@ for \\[find-tag] (which see)."
12751275 (message " Unknown function: %s " tagname))))
12761276
12771277; ; Font Lock
1278- (defconst php-phpdoc-type-keywords
1278+ (defconst php-phpdoc-type-names
12791279 (list " string" " integer" " int" " boolean" " bool" " float"
12801280 " double" " object" " mixed" " array" " resource"
12811281 " void" " null" " false" " true" " self" " static"
@@ -1287,7 +1287,10 @@ for \\[find-tag] (which see)."
12871287 " never" " never-return" " never-returns" " no-return" " non-empty-array"
12881288 " non-empty-list" " non-empty-string" " non-falsy-string"
12891289 " numeric" " numeric-string" " positive-int" " scalar"
1290- " trait-string" " truthy-string" " key-of" " value-of" ))
1290+ " trait-string" " truthy-string" " key-of" " value-of" )
1291+ " A list of type and pseudotype names that can be used in PHPDoc." )
1292+
1293+ (make-obsolete-variable 'php-phpdoc-type-keywords 'php-phpdoc-type-names " 1.24.2" )
12911294
12921295(defconst php-phpdoc-type-tags
12931296 (list " package" " param" " property" " property-read" " property-write"
@@ -1305,7 +1308,7 @@ for \\[find-tag] (which see)."
13051308 " \\ (" (rx (+ (? " ?" ) (? " \\ " ) (+ (in " 0-9A-Z_a-z" )) (? " []" ) (? " |" ))) " \\ )+" )
13061309 1 'php-string prepend nil )
13071310 (,(concat " \\ (?:|\\ |\\ ?\\ |\\ s-\\ )\\ ("
1308- (regexp-opt php-phpdoc-type-keywords 'words )
1311+ (regexp-opt php-phpdoc-type-names 'words )
13091312 " \\ )" )
13101313 1 font-lock-type-face prepend nil )
13111314 (" https?://[^\n\t ]+"
0 commit comments