Blame view

bower_components/prism/tests/languages/c/macro_feature.test 1.06 KB
eb240478   Luigi Serra   public room cards...
1
2
  # include <stdio.h>

    #define PG_locked 0

f748e9cf   Luigi Serra   new controllet an...
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  

  #elif

  #else

  #endif

  #error

  #ifdef

  #ifndef

  #if

  #import

  #include

  #line

  #pragma

  #undef

  #using

eb240478   Luigi Serra   public room cards...
17
18
19
20
21
  

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

  

  [

  	["macro", [

f748e9cf   Luigi Serra   new controllet an...
22
  		"# ", ["directive", "include"],

eb240478   Luigi Serra   public room cards...
23
24
  		["string", "<stdio.h>"]

  	]],

f748e9cf   Luigi Serra   new controllet an...
25
26
27
28
29
30
31
32
33
34
35
36
37
38
  	["macro", ["#", ["directive", "define"], " PG_locked 0"]],

  	["macro", ["#", ["directive", "elif"]]],

  	["macro", ["#", ["directive", "else"]]],

      ["macro", ["#", ["directive", "endif"]]],

      ["macro", ["#", ["directive", "error"]]],

      ["macro", ["#", ["directive", "ifdef"]]],

      ["macro", ["#", ["directive", "ifndef"]]],

      ["macro", ["#", ["directive", "if"]]],

      ["macro", ["#", ["directive", "import"]]],

      ["macro", ["#", ["directive", "include"]]],

      ["macro", ["#", ["directive", "line"]]],

      ["macro", ["#", ["directive", "pragma"]]],

      ["macro", ["#", ["directive", "undef"]]],

      ["macro", ["#", ["directive", "using"]]]

eb240478   Luigi Serra   public room cards...
39
40
41
42
43
  ]

  

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

  

  Checks for macros, multi-line macros and paths inside include statements.