ThirdParty/Pygments/pygments/lexers/_cocoa_builtins.py

changeset 6651
e8f3b5568b21
parent 5713
6762afd9f963
equal deleted inserted replaced
6650:1dd52aa8897c 6651:e8f3b5568b21
39 if not f.endswith('.h'): 39 if not f.endswith('.h'):
40 continue 40 continue
41 41
42 headerFilePath = frameworkHeadersDir + f 42 headerFilePath = frameworkHeadersDir + f
43 content = open(headerFilePath).read() 43 content = open(headerFilePath).read()
44 res = re.findall('(?<=@interface )\w+', content) 44 res = re.findall(r'(?<=@interface )\w+', content)
45 for r in res: 45 for r in res:
46 all_interfaces.add(r) 46 all_interfaces.add(r)
47 47
48 res = re.findall('(?<=@protocol )\w+', content) 48 res = re.findall(r'(?<=@protocol )\w+', content)
49 for r in res: 49 for r in res:
50 all_protocols.add(r) 50 all_protocols.add(r)
51 51
52 res = re.findall('(?<=typedef enum )\w+', content) 52 res = re.findall(r'(?<=typedef enum )\w+', content)
53 for r in res: 53 for r in res:
54 all_primitives.add(r) 54 all_primitives.add(r)
55 55
56 res = re.findall('(?<=typedef struct )\w+', content) 56 res = re.findall(r'(?<=typedef struct )\w+', content)
57 for r in res: 57 for r in res:
58 all_primitives.add(r) 58 all_primitives.add(r)
59 59
60 res = re.findall('(?<=typedef const struct )\w+', content) 60 res = re.findall(r'(?<=typedef const struct )\w+', content)
61 for r in res: 61 for r in res:
62 all_primitives.add(r) 62 all_primitives.add(r)
63 63
64 64
65 print("ALL interfaces: \n") 65 print("ALL interfaces: \n")

eric ide

mercurial