Mixed spaces and tabs in indentions

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

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
28/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript
領域
frontend, web-dev

調査の方向性

ファイル、テスト、エントリポイントのいずれも指定されていません。まず、インデント内にタブに続いてスペースが含まれるコードを貼り付けてオンラインエディターで問題を再現し、その結果のインデントを micro:bit で実行したコードのインデントと比較してください。この入力で無効なインデントが発生しなくなれば完了としますが、意図する正規化の動作は指定されていません。

索引モデルが issue の本文から書いたものです。

説明

enhancement

Here's a situation the results in a mix of tabs and spaces in an indent - disastrous.

There's source code somewhere outside the editor (maybe web page, maybe a text editor) that includes a tab followed by spaces within an indent of a line. Copying and pasting that code into the online editor doesn't result in the space being converted; in fact, it seems an even stranger mix of spaces and tabs results in that line's indent. Although the code still appears fine on screen (in online editor), it won't work properly on the micro:bit.

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

bbcmicrobit/PythonEditor のほかの issue

bbcmicrobit/PythonEditor の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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