Blame view

bower_components/prism/tests/languages/elixir/regex_feature.test 629 Bytes
eb240478   Luigi Serra   public room cards...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  ~r"""foobar"""im

  ~R'''foobar'''ux

  ~r/fo\/obar/smfr

  ~R|fo\|obar|uismxfr

  ~r"fo\"obar"x

  ~R'fo\'obar's

  ~r(fo\)obar)

  ~R[fo\]obar]

  ~r{fo\}obar}

  ~R<fo\>obar>

  

  ----------------------------------------------------

  

  [

  	["regex", "~r\"\"\"foobar\"\"\"im"],

  	["regex", "~R'''foobar'''ux"],

  	["regex", "~r/fo\\/obar/smfr"],

  	["regex", "~R|fo\\|obar|uismxfr"],

  	["regex", "~r\"fo\\\"obar\"x"],

  	["regex", "~R'fo\\'obar's"],

  	["regex", "~r(fo\\)obar)"],

  	["regex", "~R[fo\\]obar]"],

  	["regex", "~r{fo\\}obar}"],

  	["regex", "~R<fo\\>obar>"]

  ]

  

  ----------------------------------------------------

  

  Checks for regexes.