Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Add scope for PHP primitive types #389

Closed
wants to merge 16 commits into from
Closed
Show file tree
Hide file tree
Changes from 15 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions grammars/php.cson
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,11 @@
'name': 'keyword.operator.nullable-type.php'
'3':
'name': 'storage.type.php'
'patterns': [
{
'include': '#primitives'
}
]
}
]
}
Expand Down Expand Up @@ -503,6 +508,11 @@
'name': 'keyword.operator.nullable-type.php'
'3':
'name': 'storage.type.php'
'patterns': [
{
'include': '#primitives'
}
]
}
]
}
Expand Down Expand Up @@ -546,6 +556,11 @@
'name': 'keyword.operator.nullable-type.php'
'4':
'name': 'storage.type.php'
'patterns': [
{
'include': '#primitives'
}
]
'name': 'meta.function.php'
'patterns': [
{
Expand Down Expand Up @@ -585,6 +600,11 @@
]
'4':
'name': 'storage.type.php'
'patterns': [
{
'include': '#primitives'
}
]
'5':
'name': 'variable.other.php'
'6':
Expand Down Expand Up @@ -638,6 +658,11 @@
'name': 'punctuation.definition.storage-type.begin.bracket.round.php'
'2':
'name': 'storage.type.php'
'patterns': [
{
'include': '#primitives'
}
]
'3':
'name': 'punctuation.definition.storage-type.end.bracket.round.php'
}
Expand Down Expand Up @@ -825,6 +850,13 @@
}
]
'repository':
'primitives':
'patterns': [
{
'match': '^array|bool|callable|float|int|iterable|object|string$'
'name': 'storage.type.primitive.php'
}
]
'class-builtin':
'patterns': [
{
Expand Down Expand Up @@ -1267,6 +1299,11 @@
'name': 'keyword.operator.nullable-type.php'
'2':
'name': 'storage.type.php'
'patterns': [
{
'include': '#primitives'
}
]
'3':
'name': 'variable.other.php'
'4':
Expand Down Expand Up @@ -1314,6 +1351,11 @@
]
'3':
'name': 'storage.type.php'
'patterns': [
{
'include': '#primitives'
}
]
'4':
'name': 'variable.other.php'
'5':
Expand Down
Loading