Skip to content

Commit 21e7cec

Browse files
committed
Fixed support of this and globals highlighting
1 parent 5e4ccfd commit 21e7cec

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
## [1.3.1] - 2017-12-24
11+
### Fixed
12+
- Fixed support of `this` and globals highlighting
13+
1014
## [1.3.0] - 2017-12-24
1115
### Added
1216
- Added support of type hint highlighting for function parameters
@@ -28,7 +32,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2832
### Added
2933
- Initial stable release
3034

31-
[Unreleased]: https://github.com/zephir-lang/zephir-vscode/compare/v1.3.0...HEAD
35+
[Unreleased]: https://github.com/zephir-lang/zephir-vscode/compare/v1.3.1...HEAD
36+
[1.3.1]: https://github.com/zephir-lang/zephir-vscode/compare/v1.3.0...v1.3.1
3237
[1.3.0]: https://github.com/zephir-lang/zephir-vscode/compare/v1.2.0...v1.3.0
3338
[1.2.0]: https://github.com/zephir-lang/zephir-vscode/compare/v1.1.0...v1.2.0
3439
[1.1.0]: https://github.com/zephir-lang/zephir-vscode/compare/v1.0.0...v1.1.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zephir",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"displayName": "Zephir for VSCode",
55
"title": "Zephir for VSCode",
66
"description": "Zephir Language support for VSCode",

syntaxes/zephir.tmLanguage.json

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
],
88
"name": "Zephir",
99
"comment": "Zephir Language support for VSCode",
10-
"version": "1.3.0",
10+
"version": "1.3.1",
1111
"fileTypes": [
1212
"zep"
1313
],
@@ -468,6 +468,9 @@
468468
{
469469
"include": "#scope-resolution"
470470
},
471+
{
472+
"include": "#variables"
473+
},
471474
{
472475
"include": "#strings"
473476
},
@@ -1908,12 +1911,25 @@
19081911
}
19091912
]
19101913
},
1914+
"variables": {
1915+
"patterns": [
1916+
{
1917+
"include": "#var_language"
1918+
},
1919+
{
1920+
"include": "#var_global"
1921+
},
1922+
{
1923+
"include": "#var_global_safer"
1924+
}
1925+
]
1926+
},
19111927
"var_language": {
1912-
"match": "this\\b",
1913-
"name": "variable.language.this.zephir",
1928+
"match": "\\b(this)\\b",
1929+
"name": "variable.language.this.php",
19141930
"captures": {
19151931
"1": {
1916-
"name": "punctuation.definition.variable.zephir"
1932+
"name": "storage.type.zephir"
19171933
}
19181934
}
19191935
},

0 commit comments

Comments
 (0)