Is this indentation of multi-line argument lists expected?
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Riproduci l'esempio in php-mode usando c-set-style con pear, symfony2, wordpress e drupal, quindi confronta l'indentazione tramite TAB o C-M-. Leggi i punti di ingresso dell'indentazione e dello stile di codifica della modalità; il lavoro è concluso quando si determina se il comportamento elencato è intenzionale oppure lo si corregge con un controllo di regressione per gli elenchi di argomenti su più righe.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hi,
I install php-mode from MELPA and usually have the most recent master version (GNU Emacs 24.3.1, php mode-version 1.12, package version 20130902.1944).
Sometime in the last week it seems like indentation of function argument lists that span lines has changed. However, since I haven't explicitly set php-mode's coding style in the past, I am not sure whether this is a bug or user error on my part.
If I open a new file and type
some_function($foo,
$bar,
$baz);
then indent with TAB or C-M-, the second and third arguments remain at the left margin, when I had expected them to be lined up with $foo. This happens when c-set-style is pear, symfony2, wordpress. In drupal style the 2nd & 3rd arguments are indented by two spaces.
After looking briefly at the PEAR standards, it seems like they encourage either all arguments on one line, or putting a newline after the open paren, so now I am wondering if I have been doing argument lists wrong all this time ;-) Is the above the expected behavior?
- Lingua principale
- Emacs Lisp
- Stelle
- 602
- Fork
- 117
- Merge medio
- 12h 54m
- PR unite (30g)
- 3
Guida per i contributori
Apri 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
Tutte le issue di emacs-php/php-mode
Issue simili
-
kaliscan.com ApertaN: AdGuard for iOS P3: Medium T: Ads
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
AdguardTeam/AdguardFilters#242501 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
[BUG] createTool tools cannot be registered with Mastra when exactOptionalPropertyTypes is enabled Apertacustomer-eng status: needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
add-toolnames MCP Toolnames Toolnames checkup
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
rajbos/ai-engineering-fluency#2190 · 3 commenti ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
gajus/eslint-plugin-jsdoc#1776 · 1 reazione ·