From 02b7d2fdb6ec81badef53668d3693412bd00b748 Mon Sep 17 00:00:00 2001 From: Declspeck Date: Sat, 24 Feb 2018 15:11:07 +0200 Subject: [PATCH] feat(completion): add pseudo-keywords like int, bool, strict_types to completion --- src/CompletionProvider.php | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/CompletionProvider.php b/src/CompletionProvider.php index 8b5b5c00..d8fefa8a 100644 --- a/src/CompletionProvider.php +++ b/src/CompletionProvider.php @@ -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') ]; /**