Changeset View
Changeset View
Standalone View
Standalone View
autotests/input/highlight.rb
Show First 20 Lines • Show All 543 Lines • ▼ Show 20 Line(s) | |||||
544 | :abc! | 544 | :abc! | ||
545 | :abc? | 545 | :abc? | ||
546 | :abc= | 546 | :abc= | ||
547 | :[] | 547 | :[] | ||
548 | :[]= | 548 | :[]= | ||
549 | :@abc | 549 | :@abc | ||
550 | :@@abc | 550 | :@@abc | ||
551 | :$abc | 551 | :$abc | ||
552 | | ||||
553 | # squiggly HEREDOC | ||||
554 | <<~HEREDOC | ||||
555 | Hello!! | ||||
556 | HEREDOC | ||||
557 | | ||||
558 | # HEREDOC with backticks | ||||
559 | <<`HEREDOC` | ||||
560 | echo "hello" | ||||
561 | HEREDOC | ||||
562 | | ||||
563 | # do not highlight HEREDOC markers after the "class" keyword | ||||
564 | # (singleton class definition) (bug: #358273) | ||||
565 | class <<Foo = Object.new | ||||
566 | attr_accessor :foo | ||||
567 | end | ||||
568 | singleton_class = ( class <<foo; self; end ) | ||||
569 | | ||||
570 | # highlight regular expressions after ": " (bug: #361875) | ||||
571 | get 'files/:slug/:filename', to: 'files#download', slug: /^[a-z]+$/, filename: %r|^[/\s]+$| | ||||
572 | @@hello!: /regexp/ | ||||
573 | []=: %r!regexp! |