c-type-list-kwds instances inside strings are fontified
@zonuexe がすでに取り組んでいます。
2019年1月9日 から。
評価
この issue はまだ評価されていません。
説明
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 はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
emacs-php/php-mode のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100