Skip to content

Commit

Permalink
feat(completion): add pseudo-keywords like int, bool, strict_types to…
Browse files Browse the repository at this point in the history
… completion
  • Loading branch information
Declspeck authored and felixfbecker committed Mar 11, 2018
1 parent de1af6a commit 02b7d2f
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/CompletionProvider.php
Expand Up @@ -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')
];

/**
Expand Down

0 comments on commit 02b7d2f

Please sign in to comment.