You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
notepad-plus-plus/lexilla/test/examples/ruby/Issue67.rb.folded

33 lines
910 B

0 400 0 # heredoc method call, other argument
2 400 0 + puts <<~EOT.chomp
0 401 0 | squiggly heredoc
0 401 0 | EOT
1 400 0
2 400 0 + puts <<ONE, __FILE__, __LINE__
0 401 0 | content for heredoc one
0 401 0 | ONE
1 400 0
0 400 0 # heredoc prevStyle == SCE_RB_GLOBAL
2 400 0 + $stdout.puts <<~EOT.chomp
0 401 0 | squiggly heredoc
0 401 0 | EOT
1 400 0
0 400 0 # Issue #236: modifier if, unless, while and until
0 400 0 alias error puts
1 400 0
2 400 0 + error <<EOF if true
0 401 0 | heredoc if true
0 401 0 | EOF
1 400 0
2 400 0 + error <<EOF unless false
0 401 0 | heredoc unless false
0 401 0 | EOF
1 400 0
2 400 0 + error <<EOF while false
0 401 0 | heredoc while false
0 401 0 | EOF
1 400 0
2 400 0 + error <<EOF until true
0 401 0 | heredoc until true
0 401 0 | EOF
0 400 0