Граф коммитов

10 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada 06e30df408 [ruby/syntax_suggest] Hide internal document and detail of `Kernel` monkey patching
https://bugs.ruby-lang.org/issues/19285

https://github.com/ruby/syntax_suggest/commit/25ca82f8f9
2023-01-27 11:31:10 +09:00
Hiroshi SHIBATA 20f9316f9d [ruby/syntax_suggest] Bump version to 1.0.2
https://github.com/ruby/syntax_suggest/commit/92ea00650a
2022-12-20 14:50:08 +09:00
Hiroshi SHIBATA 0677bbe3ff Merge syntax_suggest master
Pick from daee74dcb0
2022-12-09 16:36:22 +09:00
schneems 85a1c67a65 [ruby/syntax_suggest] Add temp support for 3.2.0-preview{3,2,1}
This SyntaxError#path feature only exists in Ruby HEAD. Until it is released in a preview I want to continue to support existing releases of 3.2.0 (and also so CI will continue to work, as it still uses a preview version to execute tests).

https://github.com/ruby/syntax_suggest/commit/9862032465
2022-12-02 09:36:40 +09:00
Hiroshi SHIBATA 652e2d8f5d [ruby/syntax_suggest] No longer need PathnameFromMessage with SyntaxError#path.
https://bugs.ruby-lang.org/issues/19138

  Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>

https://github.com/ruby/syntax_suggest/commit/8e1e7b3298
2022-12-02 09:36:39 +09:00
schneems d6e91784ab Update SyntaxSuggest to use angle brackets `>`
```
$ ruby tool/sync_default_gems.rb syntax_suggest
Sync ruby/syntax_suggest
```

https://github.com/ruby/syntax_suggest/pull/161
2022-11-30 12:58:47 +09:00
schneems 476700c06f
[ruby/syntax_suggest] v1.0.0
https://github.com/ruby/syntax_suggest/commit/f142fcbf96
2022-11-28 20:55:42 +09:00
schneems f64ba0fadd
[ruby/syntax_suggest] Do not output "Syntax OK" when there's an error
Due to a problem with ripper we do not recognize `break` as invalid code. It's confusing that "Syntax OK" is output in that case.

When there's no syntax error, the algorithm should not say anything. The exception is in the CLI and that's for compatibility with `ruby -wc`

```
$ cat /tmp/break.rb
break
️ 3.1.2 🚀 /Users/rschneeman/Documents/projects/syntax_suggest (schneems/no-syntax-not-okay-break)
$ ruby -wc /tmp/break.rb
Syntax OK
```

> Note that this is invalid, running this code will raise a Syntax error.

```
$ exe/syntax_suggest /tmp/break.rb
Syntax OK
```

Close https://github.com/ruby/syntax_suggest/pull/157

https://github.com/ruby/syntax_suggest/commit/d7bd8f03a2
2022-11-28 20:55:41 +09:00
Hiroshi SHIBATA 95d5b33ea0
syntax_suggest moved under the ruby organization from zombocom 2022-09-27 12:44:30 +09:00
schneems 490af8dbdb Sync SyntaxSuggest
```
$ tool/sync_default_gems.rb syntax_suggest
```
2022-08-19 10:02:24 +09:00