Skip to content

Commit

Permalink
v0.4.5 - Fix for PHP default values (fixes #21)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hirse committed Jan 21, 2015
1 parent 0f8a631 commit 5474621
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Change Log
All notable changes to this project will be documented in this file.

## 0.4.5 - 2015-01-21
### Fixed
- Recognize PHP functions with default values for parameter that involve parens. (see [#21](https://github.com/Hirse/brackets-outline-list/issues/21)).


## 0.4.4 - 2015-01-09
### Changed
- Updated Ionicons to version 2.0.0
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hirse.outline-list",
"version": "0.4.4",
"version": "0.4.5",
"title": "Brackets Outline List",
"description": "Displays a list of the functions or definitions in the currently opened document. Works with JavaScript, CoffeeScript, CSS, SCSS, LESS, XML, HTML, SVG, Markdown and PHP. Now with Icons!",
"engines": {
Expand All @@ -9,7 +9,7 @@
"homepage": "https://github.com/Hirse/brackets-outline-list",
"author": "Jan Pilzer (https://github.com/Hirse)",
"license": "MIT",
"keywords": ["outline, JavaScript, CoffeeScript, CSS, SCSS, XML, HTML, SVG, Markdown, PHP"],
"keywords": ["outline", "JavaScript", "CoffeeScript", "CSS", "SCSS", "XML", "HTML", "SVG", "Markdown", "PHP"],
"i18n": ["en", "de", "fr"],
"package-i18n": {
"de": {
Expand Down
2 changes: 1 addition & 1 deletion src/languages/PHP.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ define(function (require, exports, module) {
* @returns {Array} List of outline entries.
*/
function getOutlineList(lines, showArguments, showUnnamed) {
var regex = /((\w*)\s*[=:]\s*)?((public|protected|private)\s*)?function(\s*|\s+\w*\s*)(\([\w,\s&$='"\\]*\))/g;
var regex = /((\w*)\s*[=:]\s*)?((public|protected|private)\s*)?function(\s*|\s+\w*\s*)(\([\w,\s&$='"\\()]*\))/g;
var result = [];
lines.forEach(function (line, index) {
var match = regex.exec(line);
Expand Down

0 comments on commit 5474621

Please sign in to comment.