aiscript icon indicating copy to clipboard operation
aiscript copied to clipboard

enhance: 数値リテラルの整数部分または小数部分の0を省略できるように

Open takejohn opened this issue 4 months ago • 5 comments

What

  • 数値リテラルの整数部分または小数部分の0を省略できるようになります。
    • 整数でない数値リテラルは、整数部分が0の場合、0を省略して記述できるようになります。 例: .5
    • 整数の数値リテラルは、小数部分の0を省略して記述できるようになります。 例: 5.

Why

#950

Additional info (optional)

takejohn avatar Aug 07 '25 04:08 takejohn

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Files with missing lines Coverage Δ
src/parser/scanner.ts 95.15% <100.00%> (+6.39%) :arrow_up:

... and 29 files with indirect coverage changes

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov-commenter avatar Aug 07 '25 04:08 codecov-commenter

#954 をマージしたのでテストを追加しました。

takejohn avatar Sep 10 '25 04:09 takejohn

マージしてよろしい?

takejohn avatar Sep 24 '25 05:09 takejohn

まだ検討したいです🙏

syuilo avatar Sep 24 '25 05:09 syuilo

#981 のような今後の言語拡張において混乱を生じうる

1..to_str

のような書き方はエラーになるようにしました。

takejohn avatar Sep 26 '25 06:09 takejohn