Commit graph

7 commits

Author SHA1 Message Date
Hiroshi SHIBATA
50b783ccac [ruby/syntax_suggest] Typofix by misspell
66e1cf0b3e
2023-12-26 02:10:25 +00:00
Schneems
5a2d70ef73 [ruby/syntax_suggest] Bump minimum Ruby version & update standardrb
73753518e9
2023-12-04 22:29:44 +00:00
Schneems
13482ab1e6 [ruby/syntax_suggest] Update standardrb to Ruby 3.0 standards
2771dcabe0
2023-12-04 22:18:40 +00:00
schneems
63ea6b0cf2 [ruby/syntax_suggest] Rollback comment indentation behavior
Originally I fixed https://github.com/ruby/syntax_suggest/pull/177 by making the process of comment removal indentation aware. The next commit is the more general fix and means we don't need to carry that additional logic/overhead.

Also: Update syntax via linter
2023-04-06 15:45:29 +09:00
schneems
e5236471c3 [ruby/syntax_suggest] Preserve whitespace in front of comments
When removing comments I previously replaced them with a newline. This loses some context and may affect the order of the indent search which in turn affects the final result. By preserving whitespace in front of the comment, we preserve the "natural" indentation order of the line while also allowing the parser/lexer to see and join naturally consecutive (method chain) lines.

close https://github.com/ruby/syntax_suggest/pull/177
2023-04-06 15:45:28 +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
Hiroshi SHIBATA
0d9f4ea0d4 Import spec examples from ruby/syntax_suggest 2022-08-26 12:15:47 +09:00