Skip to content

Notepad++ 7.5.8: Function list is broken with PHP file (string is confused with comment) #4712

@AleWin32

Description

@AleWin32
<?php

class MyClass
{
	public function myFunc1()
	{
		myFunc2 ('/*.js'); // The slash followed by an asterisk in the string makes Notepad++ not showing function list
	}

	public function myFunc2 ($name)
	{
		return $name;
	}

	/* This block comment with the string in myFunc1 makes Notepad++ not showing Function list */
}
?>

Function list is not shown with this piece of PHP code in the last version of Notepad++.

The problem is with the string in myFunc1, it makes Notepad++ believe we are starting a block comment (because it starts by /*) but actually it is a simple string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions