Commit graph

12 commits

Author SHA1 Message Date
Masataka Pocke Kuwabara
242f024bcb [ruby/error_highlight] Keep it work if paren exists after receiver
b79d679bbd
2021-07-31 22:15:16 +09:00
Yusuke Endoh
5fd5d71a4b [ruby/error_highlight] Support a file that has no final newline
9d671284cb
2021-07-13 16:54:17 +09:00
Yusuke Endoh
23c8bc367c [ruby/error_highlight] Support hard tabs
Now, the highlight line is created by replacing non-tab characters with
spaces, and keeping all hard tabs as-is. This means the highlight line
has the completely same indentation as the code snippet line.

Fixes #7

38f20fa542
2021-07-13 16:51:02 +09:00
Yusuke Endoh
8b01d16ad6 [ruby/error_highlight] Stop showing a code snippet if it has non-ascii characters
See https://github.com/ruby/error_highlight/issues/4

c20efd3961
2021-07-12 16:48:15 +09:00
Yusuke Endoh
3a95834739 [ruby/error_highlight] Suppress SyntaxError during RubyVM::AST.of
When the original source code is erb, RubyVM::AST.of does not work well.
https://github.com/rails/rails/issues/42678.

b1572761a6
2021-07-02 16:48:20 +09:00
Yusuke Endoh
b6c910e1f4 [ruby/error_highlight] Allow the development version (= master branch) of Ruby 3.1
2dca1446c9
2021-06-30 17:33:57 +09:00
Yusuke Endoh
8ccc257434 Add the gemspec for error_highlight 2021-06-30 14:02:28 +09:00
Yusuke Endoh
6c6b128c67 [ruby/error_highlight] Bump version
8d483c251e
2021-06-30 13:36:31 +09:00
Yusuke Endoh
ca4e5b1eb3 [ruby/error_highlight] Reconsider the API of ErrorHighlight.spot
acb2046a82
2021-06-30 12:49:27 +09:00
Yusuke Endoh
f428ced69c [ruby/error_highlight] Experimentally support a custom formatter
f40a1de20e
2021-06-30 12:49:18 +09:00
Yusuke Endoh
db7e9b1aac [ruby/error_highlight] Add some comments
e0c90c72c3
2021-06-30 11:46:47 +09:00
Yusuke Endoh
9438c99590 Rename error_squiggle to error_highlight 2021-06-29 23:45:49 +09:00