File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 9797 end
9898
9999 it 'with escapes' do
100- expect ( '~s(foo \n bar)' ) . to include_elixir_syntax ( 'elixirRegexEscape ' , '\\' )
100+ expect ( '~s(foo \n bar)' ) . to include_elixir_syntax ( 'elixirRegexEscapePunctuation ' , '\\' )
101101 end
102102
103103 it 'with interpolation' do
113113 end
114114
115115 it 'escapes with slashes' do
116- expect ( '~s/foo \n bar/' ) . to include_elixir_syntax ( 'elixirRegexEscape ' , '\\' )
116+ expect ( '~s/foo \n bar/' ) . to include_elixir_syntax ( 'elixirRegexEscapePunctuation ' , '\\' )
117117 end
118118 end
119119end
Original file line number Diff line number Diff line change 3131 expect ( str ) . to include_elixir_syntax ( 'elixirStruct' , 'name:' )
3232
3333 expect ( str ) . to include_elixir_syntax ( 'elixirStructDelimiter' , '}' )
34- expect ( str ) . to include_elixir_syntax ( 'elixirStruct' , '}' )
3534 end
3635
3736 it 'properly closes strings in structs' do
5958 expect ( str ) . to include_elixir_syntax ( 'elixirStruct' , '"}' )
6059
6160 expect ( str ) . to include_elixir_syntax ( 'elixirStructDelimiter' , '} #' )
62- expect ( str ) . to include_elixir_syntax ( 'elixirStruct' , '} #' )
6361
6462 expect ( str ) . to include_elixir_syntax ( 'elixirComment' , '# this should not be a string still' )
6563 end
Original file line number Diff line number Diff line change 1313 expect ( str ) . to include_elixir_syntax ( 'elixirTuple' , ':name' )
1414
1515 expect ( str ) . to include_elixir_syntax ( 'elixirTupleDelimiter' , '}' )
16- expect ( str ) . to include_elixir_syntax ( 'elixirTuple' , '}' )
1716 end
1817end
You can’t perform that action at this time.
0 commit comments