Skip to content

Commit

Permalink
Added support of type hint highlighting for function parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay committed Dec 24, 2017
1 parent cfcd6df commit 5e4ccfd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [1.3.0] - 2017-12-24
### Added
- Added support of type hint highlighting for function parameters

## [1.2.0] - 2017-12-24
### Added
- Added support of typehinting highlighting
- Added support of type hint highlighting

### Fixed
- Fixed highlighting of arrays
Expand All @@ -24,6 +28,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Added
- Initial stable release

[Unreleased]: https://github.com/zephir-lang/zephir-vscode/compare/v1.2.0...HEAD
[Unreleased]: https://github.com/zephir-lang/zephir-vscode/compare/v1.3.0...HEAD
[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
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zephir",
"version": "1.2.0",
"version": "1.3.0",
"displayName": "Zephir for VSCode",
"title": "Zephir for VSCode",
"description": "Zephir Language support for VSCode",
Expand All @@ -23,8 +23,6 @@
"keywords": [
"language",
"zephir",
"zep",
"extension",
"highlight",
"syntax",
"snippets"
Expand Down
5 changes: 4 additions & 1 deletion 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.2.0",
"version": "1.3.0",
"fileTypes": [
"zep"
],
Expand Down Expand Up @@ -1029,6 +1029,9 @@
}
}
},
{
"include": "#typehinting"
},
{
"begin": "(?xi)\n(\\\\?(?:[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*\\\\)*) # Optional namespace\n([a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*) # Typehinted class name\n\\s+((&)?\\s*(\\.\\.\\.)?(\\$+)?[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*) # Variable name with possible reference",
"beginCaptures": {
Expand Down

0 comments on commit 5e4ccfd

Please sign in to comment.