Blame view

bower_components/prism/tests/languages/nim/string_feature.test 631 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
30
31
32
33
34
35
36
37
38
  ""

  "Fo\"obar"

  

  """"""

  """Fo"o

  bar"""

  

  R"Raw ""string"

  

  r"Raw

  ""string"

  

  fo\x8Fo"Foobar"

  

  bar"""Foo

  bar"""

  

  '\''

  '\xFC'

  

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

  

  [

  	["string", "\"\""],

  	["string", "\"Fo\\\"obar\""],

  	["string", "\"\"\"\"\"\""],

  	["string", "\"\"\"Fo\"o\r\nbar\"\"\""],

  	["string", "R\"Raw \"\"string\""],

  	["string", "r\"Raw\r\n\"\"string\""],

  	["string", "fo\\x8Fo\"Foobar\""],

  	["string", "bar\"\"\"Foo\r\nbar\"\"\""],

  	["string", "'\\''"],

  	["string", "'\\xFC'"]

  ]

  

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

  

  Checks for strings and character literals.