Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

c-type-list-kwds instances inside strings are fontified

オープン
#493 コメント 1 件 リアクション 1 件 担当者 1 名 GitHub で見る

@zonuexe がすでに取り組んでいます。

2019年1月9日 から。

評価

この issue はまだ評価されていません。

説明

Bug

e.g. my PHP file contains $foo = 'Title to use when rendering.'; and the word when is highlighted, because it is being treated as the <thing> in a use <thing> declaration.

I expect the relevant code is:

(c-lang-defconst c-type-list-kwds
  php '("new" "use" "implements" "extends" "namespace" "instanceof" "insteadof"))

A bit of experimenting suggests that such things only occur for c-type-list-kwds and potentially c-postfix-decl-spec-kwds (which is a subset of the former), but do not happen for the other uses of c-lang-defconst.

Is this just Expected Behaviour from the parent mode, or can php-mode do something to prevent such keywords being fontified inside strings?

I notice that this does not happen inside comments.

主要言語
Emacs Lisp
スター
604
フォーク
117
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

emacs-php/php-mode のほかの issue

emacs-php/php-mode の issue をすべて見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。