1
0
Fork 0

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

pull/621/head v5.4.0
Declspeck 2018-02-24 15:11:07 +02:00 committed by Felix Becker
parent de1af6a165
commit 02b7d2fdb6
1 changed files with 17 additions and 1 deletions

View File

@ -91,7 +91,23 @@ class CompletionProvider
'var',
'while',
'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')
];
/**