c-type-list-kwds instances inside strings are fontified
@zonuexe ci sta già lavorando.
Dal 9/1/2019.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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.
- Lingua principale
- Emacs Lisp
- Stelle
- 604
- Fork
- 117
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di emacs-php/php-mode
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100