Skip to content

Commit 02b7d2f

Browse files
Declspeckfelixfbecker
authored andcommitted
feat(completion): add pseudo-keywords like int, bool, strict_types to completion
1 parent de1af6a commit 02b7d2f

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/CompletionProvider.php

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,23 @@ class CompletionProvider
9191
'var',
9292
'while',
9393
'xor',
94-
'yield'
94+
'yield',
95+
96+
// List of other reserved words (http://php.net/manual/en/reserved.other-reserved-words.php)
97+
// (the ones which do not occur as actual keywords above.)
98+
'int',
99+
'float',
100+
'bool',
101+
'string',
102+
'void',
103+
'iterable',
104+
'object',
105+
106+
// Pseudo keywords
107+
'from', // As in yield from
108+
'strict_types',
109+
'ticks', // As in declare(ticks=1)
110+
'encoding', // As in declare(encoding='EBCDIC')
95111
];
96112

97113
/**

0 commit comments

Comments
 (0)