-
Notifications
You must be signed in to change notification settings - Fork 1
/
colors.txt
48 lines (48 loc) · 1.91 KB
/
colors.txt
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
39
40
41
42
43
44
45
46
47
48
[
{
'name': 'keywords',
'color': '0x0087ff',
'words': ['all', 'analyse', 'analyze', 'array', 'as', 'asc', 'authorization', 'both', 'case', 'cast',
'check', 'collate', 'column', 'concurrently', 'constraint', 'create', 'current_catalog',
'current_date', 'current_role', 'current_schema', 'current_time', 'current_timestamp',
'current_user', 'defaults', 'deferrable', 'desc', 'distinct', 'do', 'else', 'end', 'except',
'false', 'fetch', 'for', 'foreign', 'from', 'full', 'grant', 'group by', 'having', 'like',
'initially', 'intersect', 'into', 'lateral', 'limit', 'localtime', 'localtimestamp', 'null',
'offset', 'on', 'only', 'order by', 'placing', 'primary', 'references', 'returning', 'select',
'session_user', 'similar', 'some', 'symmetric', 'table', 'then', 'trailing', 'true', 'union',
'unique', 'user', 'variadic', 'version', 'when', 'where', 'window', 'with'],
'regex': '',
},
{
'name': 'operators',
'color': '0xdc322f',
'words': ['\+', '-', '\*', '/', '\%', '\&', '\|', '\^', '=', '>', '<', '>=', '<=', '<>', '\+=', '-=', '\*=',
'/=', '\%=', '\%=', '\^-=', '\|*=', ' all ', ' and ', ' any ', ' between ', ' exists ', ' in ',
' like ', ' not ', ' or ', ' some ', ],
'regex': ''
},
{
'name': 'numbers',
'color': '0x268bd',
'words': [],
'regex': r'[+-]?\b\d+\b'
},
{
'name': 'strings',
'color': '0xd33682',
'words': [],
'regex': r'"[^"\\]*(\\.[^"\\]*)*"'
},
{
'name': 'strings',
'color': '0xd33682',
'words': [],
'regex': r"'[^'\\]*(\\.[^'\\]*)*'"
},
{
'name': 'comments',
'color': '0x839496',
'words': [],
'regex': r'--.*$'
},
]