Unexpected syntax highlights after "new" in string
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the highlighting difference in PHP Mode 1.24.1 on Emacs 29.0.50 with strings containing “ne” and “new”. Compare the highlighted text against the screenshots; done means text after “new” in a string keeps the string color rather than being treated as an object.
Written by the indexing model from the issue text.
Description
About
- I found unexpected syntax highlights in the string after "new"
- I think it is affected by "new" for object creation
Screenshot
| "ne foo" | "new foo" |
|---|---|
![]() |
![]() |
| "foo" is sting color | "foo" is object color, maybe |
Environments
(emacs-version)
"GNU Emacs 29.0.50 (build 1, x86_64-apple-darwin21.4.0, NS appkit-2113.40 Version 12.3.1 (Build 21E258))
of 2022-05-13"
(php-mode-version)
"PHP Mode 1.24.1"
- Dominant language
- Emacs Lisp
- Stars
- 602
- Forks
- 117
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from emacs-php/php-mode
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
All issues in emacs-php/php-mode
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Rust: `const _` gets its file's node ID, so the file node is relabelled `_` and gains a self-loopOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Graphify-Labs/graphify#4064 · 1 comment ·
Maintainers usually reply within 2 days
-
strip_markdown: backslash-escaped `\*x\*` / `\_x\_` is treated as italic, leaving stray backslashesOpen
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
IfCondition evaluates the expressions of the branch not taken (case-sensitive "activities" check)Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
namespace operations
Difficulty 1/5 Under an hour Newbie friendliness 72/100
EclipseFdn/open-vsx.org#13737 ·
Maintainers usually reply within 1 day

