Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Unexpected syntax highlights after "new" in string

Open
#712 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
emacs, emacs-lisp, php
Domain
tooling

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

Bug

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"
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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from emacs-php/php-mode

All issues in emacs-php/php-mode

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.