8+ results for 'lang:ruby /<<' (0 ms)

Not the results you expected?

yaml.rb (https://github.com/lpeabody/coderay.git) Ruby · 140 lines

104 encoder.text_token match, :global_variable

105 next

106 when match = scan(/<</)

107 encoder.text_token match, :class_variable

108 next

tokenizer.rb (https://gitlab.com/Aaeinstein54/linguist) Ruby · 205 lines

112

113 # Common operators

114 elsif token = s.scan(/<<?|\+|\-|\*|\/|%|&&?|\|\|?/)

115 tokens << token

116

shell.rb (https://gitlab.com/lukas.mesicek/gitlab-rouge) Ruby · 152 lines

50 # rule /\|\|/, Operator

51

52 rule /<<</, Operator # here-string

53 rule /<<-?\s*(\'?)\\?(\w+)\1/ do |m|

yaml.rb (https://github.com/knowhow/redmine.git) Ruby · 140 lines

100 when scan(/\*\w+/)

101 kind = :global_variable

102 when scan(/<</)

103 kind = :class_variable

104 when scan(/\d\d:\d\d:\d\d/)

whitewash_spec.rb (https://github.com/bejbus/whitewash.git) Ruby · 99 lines

79 it "handles extra open brackets" do

80 w = Whitewash.new

81 input = %q{<<SCRIPT>alert("XSS");//<</SCRIPT>}

82 output = w.sanitize(input)

83 output.should == '<p>alert("XSS");//</p>'

filters.rb (https://github.com/williamhall/dradisframework.git) Ruby · 68 lines

47

48 # Remove table markup

49 content.gsub!(/<<table-columns 10,90>>/, '')

50 content.gsub!(/\|=\s(\w+?)\s\|\s##([\w\s\\]+?)##/) { "#{$1}: #{$2}" }

51

tokens.rb (https://github.com/filp/twostroke.git) Ruby · 89 lines

75 [ :CARET, /\^/ ],

76

77 [ :LEFT_SHIFT, /<</ ],

78 [ :RIGHT_TRIPLE_SHIFT, />>>/ ],

79 [ :RIGHT_SHIFT, />>/ ],

lockfile_parser.rb (https://gitlab.com/orvi2014/rcs-db-ext) Ruby · 157 lines

32 @rubygems_aggregate = Source::Rubygems.new

33

34 if lockfile.match(/<<<<<<<|=======|>>>>>>>|\|\|\|\|\|\|\|/)

35 raise LockfileError, "Your Gemfile.lock contains merge conflicts.\n" \

36 "Run `git checkout HEAD -- Gemfile.lock` first to get a clean lock."