summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2019-05-27Move to next of last line by ^Daycabta
2019-05-27Check blank historyaycabta
2019-05-27Move to next of last line by ^Caycabta
2019-05-27Reline should move to next line after finished in Readline modeaycabta
2019-05-27Add support for history with Reline backendSutou Kouhei
2019-05-27Move to the other line when press <- at head or -> at tailaycabta
2019-05-27Implement J to join lines in vi command modeaycabta
2019-05-27Remove \1 and \2 that escape CSI before renderaycabta
2019-05-26Highlight global variable on IRBTakashi Kokubun
2019-05-26Simplify lexer state matching in #dispatch_seqTakashi Kokubun
for improving readability of the condition. It may be slightly faster, or may not.
2019-05-26Refactor IRB color dispatchTakashi Kokubun
The reason why we were checking lexer state in addition to token was that we do not want to colorize local variable, method call, etc., while they share the :on_ident token with a name of method definition which should be colored as blue. It means that we're concerned about the lexer state only for :on_ident. Thus we can skip checking lexer state for non-:on_ident tokens. This refactoring is based on that idea. Also, now we manage Ripper's lexer state as Integer (use `|` if you need to check multiple states). It should be faster than using Array of Integer because #any? block call is not needed.
2019-05-27Support op, cvar, iver, gvar and kw that follow on symbeg in IRBaycabta
2019-05-27Support :@@cvar and : on colorizeaycabta
2019-05-26Make the imaginary color on IRB close to pryTakashi Kokubun
and sorted the token names alphabetically.
2019-05-27Fix indexes in comments of vi_insert.rbaycabta
Previous fix was 2993b361333147f6dfb86a153971c22329ffbaf4.
2019-05-27Fix number literal regexp of IRB completionaycabta
2019-05-27Use correctly RI output in IRB completionaycabta
2019-05-26Colorize imaginary and rational literalsNobuyoshi Nakada
2019-05-25Handle keyword symbol in IRB::Color::SymbolStateTakashi Kokubun
2019-05-25Deal with more syntax highlight edge casesTakashi Kokubun
Please refer to the tests again.
2019-05-25Fix more unintended syntax highlightsTakashi Kokubun
See tests for what kind of things are fixed.
2019-05-25Always color Symbol as Yellow on IRB::ColorTakashi Kokubun
Symbol color was made blue as a workaround because it was hard to distinguish `foo`s in `:foo` and `def foo; end` (both are :on_ident). But I wanted to make it yellow like pry. `:Struct` had the same problem in :on_const. Because the :on_const was also blue (but underlined and bold), it was not a big issue. While they're not so problematic since we got a workaround, we also had a more serious issue for highlighting a symbol like `:"a#{b}c"`. The first half was considered as Symbol and the last half was considered as String, because the colorizer did not have a state like a parser. To approach the last issue, I introduced `IRB::Color::SymbolState` which is a thin state manager knowing only "the token is Symbol or not". Having this module magically solves the first two problems as well. So now we can highlight Symbol as yellow in the perfect manner.
2019-05-25Colorize empty embexpr more on IRB::ColorTakashi Kokubun
2019-05-26Fix completion menu state calculationaycabta
2019-05-26Fix indexes in commentsNobuyoshi Nakada
2019-05-25Support some unhandled syntax highlightTakashi Kokubun
Heredoc, %i, :Foo, { 'a': ... }, ... :'a' is still half-broken.
2019-05-26Use Reline.completer_word_break_characters to completeaycabta
2019-05-25Clear IRB::Color escape sequence before newlineTakashi Kokubun
because otherwise prompt and other things could be polluted.
2019-05-25Add and use Reline::Unicode.escape_for_printTakashi Kokubun
2019-05-25Respect --nocolorize on REPL source highlightTakashi Kokubun
2019-05-25Drop method obsoleted by b83119be9e9a8611063142541993e4823a025622Takashi Kokubun
We might need to do the same thing in IRB::Color now, but I'm not doing that as I assume ANSI escape sequence does not come from a user input though Reline.
2019-05-24Incremental syntax highlight for IRB source linesTakashi Kokubun
Closes: https://github.com/ruby/ruby/pull/2202
2019-05-25JSON like label ends by differs from the startaycabta
pp Ripper.lex('{ "a": 3 }') => [[[1, 0], :on_lbrace, "{", EXPR_BEG|EXPR_LABEL], [[1, 1], :on_sp, " ", EXPR_BEG|EXPR_LABEL], [[1, 2], :on_tstring_beg, "\"", EXPR_BEG|EXPR_LABEL], [[1, 3], :on_tstring_content, "a", EXPR_BEG|EXPR_LABEL], [[1, 4], :on_label_end, "\":", EXPR_BEG|EXPR_LABEL], [[1, 6], :on_sp, " ", EXPR_BEG|EXPR_LABEL], [[1, 7], :on_int, "3", EXPR_END], [[1, 8], :on_sp, " ", EXPR_END], [[1, 9], :on_rbrace, "}", EXPR_END]]
2019-05-25Fix wrong variable nameaycabta
2019-05-25Add round-robin variableaycabta
2019-05-25Show documents when completionaycabta
2019-05-25Use Reline as Reidline multiline editor in IRBaycabta
2019-05-25Enter key always means evaluate in Reline#readmultilineaycabta
2019-05-25Fix C-v C-jaycabta
2019-05-25Revert "Change Reline's version with "Reline 0.0.0""aycabta
This reverts commit 481ccf73d88797914f700e6e27711bf1ce997eb0.
2019-05-25Change Reline's version with "Reline 0.0.0"aycabta
2019-05-25Check block in #readmultilineaycabta
2019-05-24Support Meta key in Relineaycabta
2019-05-24Removed symlinks by in-place build [Bug #15870]Nobuyoshi Nakada
2019-05-24switch UNICODE_BETA to NOMartin Dürst
Unicode version 12.1.0 was officially released on May 7th, 2019. There were no changes at all from the "real" beta published shortly after the new era name "Reiwa" was announced. So we can switch UNICODE_BETA back to NO. common.mk: switch UNICODE_BETA back to NO tool/downloader.rb: add additional conditions to avoid an error when moving from beta to final
2019-05-23Suppress paranoid warnings for external/3rd-party librariesNobuyoshi Nakada
[Feature #15665]
2019-05-23Use colorized IRB on Windows without checking `TERM`NAKAMURA Usaku
2019-05-23C-v C-j means an newline insertionaycabta
2019-05-23Change behavior to confirm multiline terminationaycabta
Always checks termination if you press Enter at last line.
2019-05-22Remove unnecessary variable in LineEditoraycabta