Skip to content

Commit

Permalink
Fixed support of this and globals highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay committed Dec 24, 2017
1 parent 5e4ccfd commit 21e7cec
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [1.3.1] - 2017-12-24
### Fixed
- Fixed support of `this` and globals highlighting

## [1.3.0] - 2017-12-24
### Added
- Added support of type hint highlighting for function parameters
Expand All @@ -28,7 +32,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Added
- Initial stable release

[Unreleased]: https://github.com/zephir-lang/zephir-vscode/compare/v1.3.0...HEAD
[Unreleased]: https://github.com/zephir-lang/zephir-vscode/compare/v1.3.1...HEAD
[1.3.1]: https://github.com/zephir-lang/zephir-vscode/compare/v1.3.0...v1.3.1
[1.3.0]: https://github.com/zephir-lang/zephir-vscode/compare/v1.2.0...v1.3.0
[1.2.0]: https://github.com/zephir-lang/zephir-vscode/compare/v1.1.0...v1.2.0
[1.1.0]: https://github.com/zephir-lang/zephir-vscode/compare/v1.0.0...v1.1.0
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zephir",
"version": "1.3.0",
"version": "1.3.1",
"displayName": "Zephir for VSCode",
"title": "Zephir for VSCode",
"description": "Zephir Language support for VSCode",
Expand Down
24 changes: 20 additions & 4 deletions syntaxes/zephir.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
],
"name": "Zephir",
"comment": "Zephir Language support for VSCode",
"version": "1.3.0",
"version": "1.3.1",
"fileTypes": [
"zep"
],
Expand Down Expand Up @@ -468,6 +468,9 @@
{
"include": "#scope-resolution"
},
{
"include": "#variables"
},
{
"include": "#strings"
},
Expand Down Expand Up @@ -1908,12 +1911,25 @@
}
]
},
"variables": {
"patterns": [
{
"include": "#var_language"
},
{
"include": "#var_global"
},
{
"include": "#var_global_safer"
}
]
},
"var_language": {
"match": "this\\b",
"name": "variable.language.this.zephir",
"match": "\\b(this)\\b",
"name": "variable.language.this.php",
"captures": {
"1": {
"name": "punctuation.definition.variable.zephir"
"name": "storage.type.zephir"
}
}
},
Expand Down

0 comments on commit 21e7cec

Please sign in to comment.