Skip to content

Commit 95441f7

Browse files
authored
Merge pull request #4785 from KuzinAndrey/php-syntax
php.syntax: add missed magic constants
2 parents 32b7a14 + 9371646 commit 95441f7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

misc/syntax/php.syntax

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3070,12 +3070,16 @@ context default
30703070
keyword whole and white
30713071
keyword whole or white
30723072

3073-
# Magic constants
3074-
keyword whole __FILE__ brightred
3073+
# Magic constants (https://www.php.net/manual/en/language.constants.magic.php)
30753074
keyword whole __LINE__ brightred
3075+
keyword whole __FILE__ brightred
3076+
keyword whole __DIR__ brightred
30763077
keyword whole __FUNCTION__ brightred
30773078
keyword whole __CLASS__ brightred
3079+
keyword whole __TRAIT__ brightred
30783080
keyword whole __METHOD__ brightred
3081+
keyword whole __PROPERTY__ brightred
3082+
keyword whole __NAMESPACE__ brightred
30793083

30803084
keyword whole parent brightmagenta
30813085
keyword whole $this brightmagenta

0 commit comments

Comments
 (0)