From 3cf25c36fce6ea55759c781a517ce95a89a267bb Mon Sep 17 00:00:00 2001 From: Richard van Velzen Date: Wed, 1 Mar 2023 00:09:29 +0100 Subject: Improve lexing PHP attributes (#2360) --- tests/examplefiles/php/test.php | 5 ----- tests/examplefiles/php/test.php.output | 18 ---------------- tests/snippets/php/attributes.txt | 38 ++++++++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 23 deletions(-) create mode 100644 tests/snippets/php/attributes.txt (limited to 'tests') diff --git a/tests/examplefiles/php/test.php b/tests/examplefiles/php/test.php index 0076e04b..05a6b573 100644 --- a/tests/examplefiles/php/test.php +++ b/tests/examplefiles/php/test.php @@ -540,9 +540,4 @@ more heredoc testing continues on this line some_delimiter; -?> - - \ No newline at end of file diff --git a/tests/examplefiles/php/test.php.output b/tests/examplefiles/php/test.php.output index 8337da7b..7d63ddb3 100644 --- a/tests/examplefiles/php/test.php.output +++ b/tests/examplefiles/php/test.php.output @@ -3100,23 +3100,5 @@ '\n' Text -'?>' Comment.Preproc -'\n\n' Other - -'' Comment.Preproc '\n' Other diff --git a/tests/snippets/php/attributes.txt b/tests/snippets/php/attributes.txt new file mode 100644 index 00000000..cd70176d --- /dev/null +++ b/tests/snippets/php/attributes.txt @@ -0,0 +1,38 @@ +---input--- +