emacs-php / php-mode

A powerful and flexible Emacs major mode for editing PHP scripts
GNU General Public License v3.0
580 stars 118 forks source link

Error in ternary operator indentation #702

Closed zonuexe closed 1 year ago

zonuexe commented 1 year ago
<?php

PHP_VERSION_ID > 70000
    ? 'foo'
    : 'bar';

$a = [
    'key' => PHP_VERSION_ID > 70000
        ? 'foo'
        : 'bar',
];
zonuexe commented 1 year ago
(setq x (list :c-block-stmt-2-key c-block-stmt-2-key
 :c-class-id-suffix-ws-ids-key c-class-id-suffix-ws-ids-key
 :c-class-key c-class-key
 :c-comment-start-regexp c-comment-start-regexp
 :c-equals-type-clause-key c-equals-type-clause-key
 :c-keywords-regexp c-keywords-regexp
 :c-label-kwds-regexp c-label-kwds-regexp
 :c-noise-macro-with-parens-name-re c-noise-macro-with-parens-name-re
 :c-opt-<>-sexp-key c-opt-<>-sexp-key
 :c-opt-block-stmt-key c-opt-block-stmt-key
 :c-opt-friend-key c-opt-friend-key
 :c-opt-inexpr-brace-list-key c-opt-inexpr-brace-list-key
 :c-opt-method-key c-opt-method-key
 :c-opt-postfix-decl-spec-key c-opt-postfix-decl-spec-key
 :c-other-decl-block-key c-other-decl-block-key
 :c-specifier-key c-specifier-key
 :c-symbol-key c-symbol-key
 :c-syntactic-ws-start c-syntactic-ws-start))
スクリーンショット 2022-09-10 1 23 08