1
0
Fork 0

feat(completion): add pseudo-keywords like int, bool, strict_types to completion

pull/604/head
Declspeck 2018-02-24 15:11:07 +02:00
parent a8f60c9cf6
commit d9bf587649
No known key found for this signature in database
GPG Key ID: F0417663122A2189
1 changed files with 17 additions and 1 deletions

View File

@ -91,7 +91,23 @@ class CompletionProvider
'var', 'var',
'while', 'while',
'xor', 'xor',
'yield' 'yield',
// List of other reserved words (http://php.net/manual/en/reserved.other-reserved-words.php)
// (the ones which do not occur as actual keywords above.)
'int',
'float',
'bool',
'string',
'void',
'iterable',
'object',
// Pseudo keywords
'from', // As in yield from
'strict_types',
'ticks', // As in declare(ticks=1)
'encoding', // As in declare(encoding='EBCDIC')
]; ];
/** /**