@journeyapps-labs/reactor-mod-editor 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/dist/@types/EditorModule.d.ts +7 -0
- package/dist/@types/MonacoCommandPalletSearchEngine.d.ts +21 -0
- package/dist/@types/actions/ChangeEditorThemeAction.d.ts +9 -0
- package/dist/@types/index.d.ts +16 -0
- package/dist/@types/languages/languages.d.ts +39 -0
- package/dist/@types/languages/logs.d.ts +3 -0
- package/dist/@types/providers/EditorThemeProvider.d.ts +14 -0
- package/dist/@types/settings/StoredThemesSettings.d.ts +13 -0
- package/dist/@types/settings/VimSupportSetting.d.ts +7 -0
- package/dist/@types/shortcuts/MonacoShortcut.d.ts +9 -0
- package/dist/@types/shortcuts/MonacoShortcutHandler.d.ts +17 -0
- package/dist/@types/shortcuts/MonacoShortcutMap.d.ts +83 -0
- package/dist/@types/stores/MonacoStore.d.ts +38 -0
- package/dist/@types/stores/MonacoThemeStore.d.ts +34 -0
- package/dist/@types/stores/keybindings/KeybindingsRegistry.d.ts +46 -0
- package/dist/@types/stores/keybindings/MonacoKeybindingStore.d.ts +27 -0
- package/dist/@types/stores/keybindings/definitions.d.ts +21 -0
- package/dist/@types/stores/keybindings/utils.d.ts +2 -0
- package/dist/@types/theme/EditorThemePreferencesWidget.d.ts +26 -0
- package/dist/@types/theme/SmartEditorThemePreferencesWidget.d.ts +8 -0
- package/dist/@types/theme/UploadVSIXThemeBtnWidget.d.ts +12 -0
- package/dist/@types/theme/patchThemeService.d.ts +9 -0
- package/dist/@types/theme/theme-utils.d.ts +61 -0
- package/dist/@types/theme-reactor/editor-theme-fragment.d.ts +41 -0
- package/dist/@types/utils/paths.d.ts +23 -0
- package/dist/@types/utils/useEditorStickyHeader.d.ts +8 -0
- package/dist/@types/widgets/DualEditorWidget.d.ts +7 -0
- package/dist/@types/widgets/EditorWidget.d.ts +15 -0
- package/dist/@types/widgets/MonacoEditorWidget.d.ts +10 -0
- package/dist/@types/widgets/SimpleEditorWidget.d.ts +8 -0
- package/dist/EditorModule.js +73 -0
- package/dist/EditorModule.js.map +1 -0
- package/dist/MonacoCommandPalletSearchEngine.js +52 -0
- package/dist/MonacoCommandPalletSearchEngine.js.map +1 -0
- package/dist/actions/ChangeEditorThemeAction.js +43 -0
- package/dist/actions/ChangeEditorThemeAction.js.map +1 -0
- package/dist/index.js +33 -0
- package/dist/index.js.map +1 -0
- package/dist/languages/languages.js +155 -0
- package/dist/languages/languages.js.map +1 -0
- package/dist/languages/logs.js +110 -0
- package/dist/languages/logs.js.map +1 -0
- package/dist/providers/EditorThemeProvider.js +26 -0
- package/dist/providers/EditorThemeProvider.js.map +1 -0
- package/dist/settings/StoredThemesSettings.js +45 -0
- package/dist/settings/StoredThemesSettings.js.map +1 -0
- package/dist/settings/VimSupportSetting.js +19 -0
- package/dist/settings/VimSupportSetting.js.map +1 -0
- package/dist/shortcuts/MonacoShortcut.js +27 -0
- package/dist/shortcuts/MonacoShortcut.js.map +1 -0
- package/dist/shortcuts/MonacoShortcutHandler.js +119 -0
- package/dist/shortcuts/MonacoShortcutHandler.js.map +1 -0
- package/dist/shortcuts/MonacoShortcutMap.js +84 -0
- package/dist/shortcuts/MonacoShortcutMap.js.map +1 -0
- package/dist/stores/MonacoStore.js +119 -0
- package/dist/stores/MonacoStore.js.map +1 -0
- package/dist/stores/MonacoThemeStore.js +143 -0
- package/dist/stores/MonacoThemeStore.js.map +1 -0
- package/dist/stores/keybindings/KeybindingsRegistry.js +131 -0
- package/dist/stores/keybindings/KeybindingsRegistry.js.map +1 -0
- package/dist/stores/keybindings/MonacoKeybindingStore.js +105 -0
- package/dist/stores/keybindings/MonacoKeybindingStore.js.map +1 -0
- package/dist/stores/keybindings/definitions.js +5 -0
- package/dist/stores/keybindings/definitions.js.map +1 -0
- package/dist/stores/keybindings/utils.js +12 -0
- package/dist/stores/keybindings/utils.js.map +1 -0
- package/dist/theme/EditorThemePreferencesWidget.js +160 -0
- package/dist/theme/EditorThemePreferencesWidget.js.map +1 -0
- package/dist/theme/SmartEditorThemePreferencesWidget.js +62 -0
- package/dist/theme/SmartEditorThemePreferencesWidget.js.map +1 -0
- package/dist/theme/UploadVSIXThemeBtnWidget.js +93 -0
- package/dist/theme/UploadVSIXThemeBtnWidget.js.map +1 -0
- package/dist/theme/patchThemeService.js +146 -0
- package/dist/theme/patchThemeService.js.map +1 -0
- package/dist/theme/theme-utils.js +65 -0
- package/dist/theme/theme-utils.js.map +1 -0
- package/dist/theme-reactor/editor-theme-fragment.js +70 -0
- package/dist/theme-reactor/editor-theme-fragment.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/utils/paths.js +110 -0
- package/dist/utils/paths.js.map +1 -0
- package/dist/utils/useEditorStickyHeader.js +45 -0
- package/dist/utils/useEditorStickyHeader.js.map +1 -0
- package/dist/widgets/DualEditorWidget.js +79 -0
- package/dist/widgets/DualEditorWidget.js.map +1 -0
- package/dist/widgets/EditorWidget.js +85 -0
- package/dist/widgets/EditorWidget.js.map +1 -0
- package/dist/widgets/MonacoEditorWidget.js +29 -0
- package/dist/widgets/MonacoEditorWidget.js.map +1 -0
- package/dist/widgets/SimpleEditorWidget.js +71 -0
- package/dist/widgets/SimpleEditorWidget.js.map +1 -0
- package/dist-module/00a5102416a37050fa62.tmLanguage +1282 -0
- package/dist-module/092ac75109eb363dd826.tmLanguage +424 -0
- package/dist-module/100.bundle.js +1 -0
- package/dist-module/116.bundle.js +1 -0
- package/dist-module/173.bundle.js +1 -0
- package/dist-module/179.bundle.js +1 -0
- package/dist-module/18358219dee0ad14cc0c.tmLanguage +765 -0
- package/dist-module/195.bundle.js +1 -0
- package/dist-module/277.bundle.js +1 -0
- package/dist-module/299.bundle.js +1 -0
- package/dist-module/306.bundle.js +1 -0
- package/dist-module/344.bundle.js +1 -0
- package/dist-module/399345f371a7cb9eb1ba.tmLanguage +629 -0
- package/dist-module/404.bundle.js +4 -0
- package/dist-module/404.bundle.js.LICENSE.txt +6 -0
- package/dist-module/404.bundle.js.map +1 -0
- package/dist-module/43.bundle.js +1 -0
- package/dist-module/438.bundle.js +3 -0
- package/dist-module/438.bundle.js.map +1 -0
- package/dist-module/479.bundle.js +1 -0
- package/dist-module/491.bundle.js +1 -0
- package/dist-module/513.bundle.js +1 -0
- package/dist-module/549.bundle.js +1 -0
- package/dist-module/5e221c90a0dcbd4af855.tmLanguage +237 -0
- package/dist-module/6486a2df9ca5896c2cb6.tmLanguage +5739 -0
- package/dist-module/65.bundle.js +1 -0
- package/dist-module/66.bundle.js +1 -0
- package/dist-module/685.bundle.js +1 -0
- package/dist-module/6e3d5ec6699a8d147d29.wasm +0 -0
- package/dist-module/7.bundle.js +1 -0
- package/dist-module/703774d50b4d4526a465.tmLanguage +386 -0
- package/dist-module/717.bundle.js +2 -0
- package/dist-module/728.bundle.js +1 -0
- package/dist-module/77a7afbe329083ed0f59.tmLanguage +1183 -0
- package/dist-module/78.bundle.js +1 -0
- package/dist-module/829.bundle.js +1 -0
- package/dist-module/831968f77a9412d07cc2.tmLanguage +506 -0
- package/dist-module/862.bundle.js +1 -0
- package/dist-module/87.bundle.js +1 -0
- package/dist-module/923.bundle.js +1 -0
- package/dist-module/931.bundle.js +1 -0
- package/dist-module/933.bundle.js +3 -0
- package/dist-module/933.bundle.js.map +1 -0
- package/dist-module/970.bundle.js +1 -0
- package/dist-module/984.bundle.js +1 -0
- package/dist-module/992.bundle.js +1 -0
- package/dist-module/996.bundle.js +1 -0
- package/dist-module/9c8494157d226e95da5e.tmLanguage +1377 -0
- package/dist-module/a3e215de85a86294de8a.tmLanguage +385 -0
- package/dist-module/ba5650c2a0269a236153.tmLanguage +9349 -0
- package/dist-module/bundle.js +97 -0
- package/dist-module/bundle.js.LICENSE.txt +27 -0
- package/dist-module/bundle.js.map +1 -0
- package/dist-module/editor.worker.bundle.js +1 -0
- package/dist-module/f6283f7ccaed1249d9eb.ttf +0 -0
- package/dist-module/json.worker.bundle.js +2 -0
- package/dist-module/json.worker.bundle.js.LICENSE.txt +6 -0
- package/dist-module/yaml.worker.bundle.js +1 -0
- package/media/css.tmLanguage +1183 -0
- package/media/handlebars.tmLanguage +1282 -0
- package/media/html.tmLanguage +506 -0
- package/media/javascript.tmLanguage +5739 -0
- package/media/json.tmLanguage +386 -0
- package/media/jxml.tmLanguage +424 -0
- package/media/markdown.tmLanguage +1377 -0
- package/media/regularExpressions.tmLanguage +237 -0
- package/media/sql.tmLanguage +765 -0
- package/media/themes/ayu-light.json5 +847 -0
- package/media/themes/ayu-mirage.json5 +846 -0
- package/media/themes/journey.json5 +1061 -0
- package/media/themes/oxide.json5 +579 -0
- package/media/themes/reactor.json5 +775 -0
- package/media/themes/scarlet.json5 +836 -0
- package/media/typescript.tmLanguage +9349 -0
- package/media/xml.tmLanguage +385 -0
- package/media/yaml.tmLanguage +629 -0
- package/package.json +45 -0
- package/reactor.config.json +4 -0
|
@@ -0,0 +1,765 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>fileTypes</key>
|
|
6
|
+
<array>
|
|
7
|
+
<string>sql</string>
|
|
8
|
+
<string>ddl</string>
|
|
9
|
+
<string>dml</string>
|
|
10
|
+
</array>
|
|
11
|
+
<key>keyEquivalent</key>
|
|
12
|
+
<string>^~S</string>
|
|
13
|
+
<key>name</key>
|
|
14
|
+
<string>SQL</string>
|
|
15
|
+
<key>patterns</key>
|
|
16
|
+
<array>
|
|
17
|
+
<dict>
|
|
18
|
+
<key>include</key>
|
|
19
|
+
<string>#comments</string>
|
|
20
|
+
</dict>
|
|
21
|
+
<dict>
|
|
22
|
+
<key>captures</key>
|
|
23
|
+
<dict>
|
|
24
|
+
<key>1</key>
|
|
25
|
+
<dict>
|
|
26
|
+
<key>name</key>
|
|
27
|
+
<string>keyword.other.create.sql</string>
|
|
28
|
+
</dict>
|
|
29
|
+
<key>2</key>
|
|
30
|
+
<dict>
|
|
31
|
+
<key>name</key>
|
|
32
|
+
<string>keyword.other.sql</string>
|
|
33
|
+
</dict>
|
|
34
|
+
<key>5</key>
|
|
35
|
+
<dict>
|
|
36
|
+
<key>name</key>
|
|
37
|
+
<string>entity.name.function.sql</string>
|
|
38
|
+
</dict>
|
|
39
|
+
</dict>
|
|
40
|
+
<key>match</key>
|
|
41
|
+
<string>(?i:^\s*(create(?:\s+or\s+replace)?)\s+(aggregate|conversion|database|domain|function|group|(unique\s+)?index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view)\s+)(['"`]?)(\w+)\4</string>
|
|
42
|
+
<key>name</key>
|
|
43
|
+
<string>meta.create.sql</string>
|
|
44
|
+
</dict>
|
|
45
|
+
<dict>
|
|
46
|
+
<key>captures</key>
|
|
47
|
+
<dict>
|
|
48
|
+
<key>1</key>
|
|
49
|
+
<dict>
|
|
50
|
+
<key>name</key>
|
|
51
|
+
<string>keyword.other.create.sql</string>
|
|
52
|
+
</dict>
|
|
53
|
+
<key>2</key>
|
|
54
|
+
<dict>
|
|
55
|
+
<key>name</key>
|
|
56
|
+
<string>keyword.other.sql</string>
|
|
57
|
+
</dict>
|
|
58
|
+
</dict>
|
|
59
|
+
<key>match</key>
|
|
60
|
+
<string>(?i:^\s*(drop)\s+(aggregate|conversion|database|domain|function|group|index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view))</string>
|
|
61
|
+
<key>name</key>
|
|
62
|
+
<string>meta.drop.sql</string>
|
|
63
|
+
</dict>
|
|
64
|
+
<dict>
|
|
65
|
+
<key>captures</key>
|
|
66
|
+
<dict>
|
|
67
|
+
<key>1</key>
|
|
68
|
+
<dict>
|
|
69
|
+
<key>name</key>
|
|
70
|
+
<string>keyword.other.create.sql</string>
|
|
71
|
+
</dict>
|
|
72
|
+
<key>2</key>
|
|
73
|
+
<dict>
|
|
74
|
+
<key>name</key>
|
|
75
|
+
<string>keyword.other.table.sql</string>
|
|
76
|
+
</dict>
|
|
77
|
+
<key>3</key>
|
|
78
|
+
<dict>
|
|
79
|
+
<key>name</key>
|
|
80
|
+
<string>entity.name.function.sql</string>
|
|
81
|
+
</dict>
|
|
82
|
+
<key>4</key>
|
|
83
|
+
<dict>
|
|
84
|
+
<key>name</key>
|
|
85
|
+
<string>keyword.other.cascade.sql</string>
|
|
86
|
+
</dict>
|
|
87
|
+
</dict>
|
|
88
|
+
<key>match</key>
|
|
89
|
+
<string>(?i:\s*(drop)\s+(table)\s+(\w+)(\s+cascade)?\b)</string>
|
|
90
|
+
<key>name</key>
|
|
91
|
+
<string>meta.drop.sql</string>
|
|
92
|
+
</dict>
|
|
93
|
+
<dict>
|
|
94
|
+
<key>captures</key>
|
|
95
|
+
<dict>
|
|
96
|
+
<key>1</key>
|
|
97
|
+
<dict>
|
|
98
|
+
<key>name</key>
|
|
99
|
+
<string>keyword.other.create.sql</string>
|
|
100
|
+
</dict>
|
|
101
|
+
<key>2</key>
|
|
102
|
+
<dict>
|
|
103
|
+
<key>name</key>
|
|
104
|
+
<string>keyword.other.table.sql</string>
|
|
105
|
+
</dict>
|
|
106
|
+
</dict>
|
|
107
|
+
<key>match</key>
|
|
108
|
+
<string>(?i:^\s*(alter)\s+(aggregate|conversion|database|domain|function|group|index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view)\s+)</string>
|
|
109
|
+
<key>name</key>
|
|
110
|
+
<string>meta.alter.sql</string>
|
|
111
|
+
</dict>
|
|
112
|
+
<dict>
|
|
113
|
+
<key>captures</key>
|
|
114
|
+
<dict>
|
|
115
|
+
<key>1</key>
|
|
116
|
+
<dict>
|
|
117
|
+
<key>name</key>
|
|
118
|
+
<string>storage.type.sql</string>
|
|
119
|
+
</dict>
|
|
120
|
+
<key>10</key>
|
|
121
|
+
<dict>
|
|
122
|
+
<key>name</key>
|
|
123
|
+
<string>constant.numeric.sql</string>
|
|
124
|
+
</dict>
|
|
125
|
+
<key>11</key>
|
|
126
|
+
<dict>
|
|
127
|
+
<key>name</key>
|
|
128
|
+
<string>storage.type.sql</string>
|
|
129
|
+
</dict>
|
|
130
|
+
<key>12</key>
|
|
131
|
+
<dict>
|
|
132
|
+
<key>name</key>
|
|
133
|
+
<string>storage.type.sql</string>
|
|
134
|
+
</dict>
|
|
135
|
+
<key>13</key>
|
|
136
|
+
<dict>
|
|
137
|
+
<key>name</key>
|
|
138
|
+
<string>storage.type.sql</string>
|
|
139
|
+
</dict>
|
|
140
|
+
<key>14</key>
|
|
141
|
+
<dict>
|
|
142
|
+
<key>name</key>
|
|
143
|
+
<string>constant.numeric.sql</string>
|
|
144
|
+
</dict>
|
|
145
|
+
<key>15</key>
|
|
146
|
+
<dict>
|
|
147
|
+
<key>name</key>
|
|
148
|
+
<string>storage.type.sql</string>
|
|
149
|
+
</dict>
|
|
150
|
+
<key>2</key>
|
|
151
|
+
<dict>
|
|
152
|
+
<key>name</key>
|
|
153
|
+
<string>storage.type.sql</string>
|
|
154
|
+
</dict>
|
|
155
|
+
<key>3</key>
|
|
156
|
+
<dict>
|
|
157
|
+
<key>name</key>
|
|
158
|
+
<string>constant.numeric.sql</string>
|
|
159
|
+
</dict>
|
|
160
|
+
<key>4</key>
|
|
161
|
+
<dict>
|
|
162
|
+
<key>name</key>
|
|
163
|
+
<string>storage.type.sql</string>
|
|
164
|
+
</dict>
|
|
165
|
+
<key>5</key>
|
|
166
|
+
<dict>
|
|
167
|
+
<key>name</key>
|
|
168
|
+
<string>constant.numeric.sql</string>
|
|
169
|
+
</dict>
|
|
170
|
+
<key>6</key>
|
|
171
|
+
<dict>
|
|
172
|
+
<key>name</key>
|
|
173
|
+
<string>storage.type.sql</string>
|
|
174
|
+
</dict>
|
|
175
|
+
<key>7</key>
|
|
176
|
+
<dict>
|
|
177
|
+
<key>name</key>
|
|
178
|
+
<string>constant.numeric.sql</string>
|
|
179
|
+
</dict>
|
|
180
|
+
<key>8</key>
|
|
181
|
+
<dict>
|
|
182
|
+
<key>name</key>
|
|
183
|
+
<string>constant.numeric.sql</string>
|
|
184
|
+
</dict>
|
|
185
|
+
<key>9</key>
|
|
186
|
+
<dict>
|
|
187
|
+
<key>name</key>
|
|
188
|
+
<string>storage.type.sql</string>
|
|
189
|
+
</dict>
|
|
190
|
+
</dict>
|
|
191
|
+
<key>match</key>
|
|
192
|
+
<string>(?xi)
|
|
193
|
+
|
|
194
|
+
# normal stuff, capture 1
|
|
195
|
+
\b(bigint|bigserial|bit|boolean|box|bytea|cidr|circle|date|double\sprecision|inet|int|integer|line|lseg|macaddr|money|oid|path|point|polygon|real|serial|smallint|sysdate|text)\b
|
|
196
|
+
|
|
197
|
+
# numeric suffix, capture 2 + 3i
|
|
198
|
+
|\b(bit\svarying|character\s(?:varying)?|tinyint|var\schar|float|interval)\((\d+)\)
|
|
199
|
+
|
|
200
|
+
# optional numeric suffix, capture 4 + 5i
|
|
201
|
+
|\b(char|number|varchar\d?)\b(?:\((\d+)\))?
|
|
202
|
+
|
|
203
|
+
# special case, capture 6 + 7i + 8i
|
|
204
|
+
|\b(numeric|decimal)\b(?:\((\d+),(\d+)\))?
|
|
205
|
+
|
|
206
|
+
# special case, captures 9, 10i, 11
|
|
207
|
+
|\b(times?)\b(?:\((\d+)\))?(\swith(?:out)?\stime\szone\b)?
|
|
208
|
+
|
|
209
|
+
# special case, captures 12, 13, 14i, 15
|
|
210
|
+
|\b(timestamp)(?:(s|tz))?\b(?:\((\d+)\))?(\s(with|without)\stime\szone\b)?
|
|
211
|
+
|
|
212
|
+
</string>
|
|
213
|
+
</dict>
|
|
214
|
+
<dict>
|
|
215
|
+
<key>match</key>
|
|
216
|
+
<string>(?i:\b((?:primary|foreign)\s+key|references|on\sdelete(\s+cascade)?|check|constraint)\b)</string>
|
|
217
|
+
<key>name</key>
|
|
218
|
+
<string>storage.modifier.sql</string>
|
|
219
|
+
</dict>
|
|
220
|
+
<dict>
|
|
221
|
+
<key>match</key>
|
|
222
|
+
<string>\b\d+\b</string>
|
|
223
|
+
<key>name</key>
|
|
224
|
+
<string>constant.numeric.sql</string>
|
|
225
|
+
</dict>
|
|
226
|
+
<dict>
|
|
227
|
+
<key>match</key>
|
|
228
|
+
<string>(?i:\b(select(\s+distinct)?|insert\s+(ignore\s+)?into|update|delete|from|set|where|group\sby|or|like|and|union(\s+all)?|having|order\sby|limit|(inner|cross)\s+join|join|straight_join|(left|right)(\s+outer)?\s+join|natural(\s+(left|right)(\s+outer)?)?\s+join)\b)</string>
|
|
229
|
+
<key>name</key>
|
|
230
|
+
<string>keyword.other.DML.sql</string>
|
|
231
|
+
</dict>
|
|
232
|
+
<dict>
|
|
233
|
+
<key>match</key>
|
|
234
|
+
<string>(?i:\b(on|((is\s+)?not\s+)?null)\b)</string>
|
|
235
|
+
<key>name</key>
|
|
236
|
+
<string>keyword.other.DDL.create.II.sql</string>
|
|
237
|
+
</dict>
|
|
238
|
+
<dict>
|
|
239
|
+
<key>match</key>
|
|
240
|
+
<string>(?i:\bvalues\b)</string>
|
|
241
|
+
<key>name</key>
|
|
242
|
+
<string>keyword.other.DML.II.sql</string>
|
|
243
|
+
</dict>
|
|
244
|
+
<dict>
|
|
245
|
+
<key>match</key>
|
|
246
|
+
<string>(?i:\b(begin(\s+work)?|start\s+transaction|commit(\s+work)?|rollback(\s+work)?)\b)</string>
|
|
247
|
+
<key>name</key>
|
|
248
|
+
<string>keyword.other.LUW.sql</string>
|
|
249
|
+
</dict>
|
|
250
|
+
<dict>
|
|
251
|
+
<key>match</key>
|
|
252
|
+
<string>(?i:\b(grant(\swith\sgrant\soption)?|revoke)\b)</string>
|
|
253
|
+
<key>name</key>
|
|
254
|
+
<string>keyword.other.authorization.sql</string>
|
|
255
|
+
</dict>
|
|
256
|
+
<dict>
|
|
257
|
+
<key>match</key>
|
|
258
|
+
<string>(?i:\bin\b)</string>
|
|
259
|
+
<key>name</key>
|
|
260
|
+
<string>keyword.other.data-integrity.sql</string>
|
|
261
|
+
</dict>
|
|
262
|
+
<dict>
|
|
263
|
+
<key>match</key>
|
|
264
|
+
<string>(?i:^\s*(comment\s+on\s+(table|column|aggregate|constraint|database|domain|function|index|operator|rule|schema|sequence|trigger|type|view))\s+.*?\s+(is)\s+)</string>
|
|
265
|
+
<key>name</key>
|
|
266
|
+
<string>keyword.other.object-comments.sql</string>
|
|
267
|
+
</dict>
|
|
268
|
+
<dict>
|
|
269
|
+
<key>match</key>
|
|
270
|
+
<string>(?i)\bAS\b</string>
|
|
271
|
+
<key>name</key>
|
|
272
|
+
<string>keyword.other.alias.sql</string>
|
|
273
|
+
</dict>
|
|
274
|
+
<dict>
|
|
275
|
+
<key>match</key>
|
|
276
|
+
<string>(?i)\b(DESC|ASC)\b</string>
|
|
277
|
+
<key>name</key>
|
|
278
|
+
<string>keyword.other.order.sql</string>
|
|
279
|
+
</dict>
|
|
280
|
+
<dict>
|
|
281
|
+
<key>match</key>
|
|
282
|
+
<string>\*</string>
|
|
283
|
+
<key>name</key>
|
|
284
|
+
<string>keyword.operator.star.sql</string>
|
|
285
|
+
</dict>
|
|
286
|
+
<dict>
|
|
287
|
+
<key>match</key>
|
|
288
|
+
<string>[!<>]?=|<>|<|></string>
|
|
289
|
+
<key>name</key>
|
|
290
|
+
<string>keyword.operator.comparison.sql</string>
|
|
291
|
+
</dict>
|
|
292
|
+
<dict>
|
|
293
|
+
<key>match</key>
|
|
294
|
+
<string>-|\+|/</string>
|
|
295
|
+
<key>name</key>
|
|
296
|
+
<string>keyword.operator.math.sql</string>
|
|
297
|
+
</dict>
|
|
298
|
+
<dict>
|
|
299
|
+
<key>match</key>
|
|
300
|
+
<string>\|\|</string>
|
|
301
|
+
<key>name</key>
|
|
302
|
+
<string>keyword.operator.concatenator.sql</string>
|
|
303
|
+
</dict>
|
|
304
|
+
<dict>
|
|
305
|
+
<key>comment</key>
|
|
306
|
+
<string>List of SQL99 built-in functions from http://www.oreilly.com/catalog/sqlnut/chapter/ch04.html</string>
|
|
307
|
+
<key>match</key>
|
|
308
|
+
<string>(?i)\b(CURRENT_(DATE|TIME(STAMP)?|USER)|(SESSION|SYSTEM)_USER)\b</string>
|
|
309
|
+
<key>name</key>
|
|
310
|
+
<string>support.function.scalar.sql</string>
|
|
311
|
+
</dict>
|
|
312
|
+
<dict>
|
|
313
|
+
<key>comment</key>
|
|
314
|
+
<string>List of SQL99 built-in functions from http://www.oreilly.com/catalog/sqlnut/chapter/ch04.html</string>
|
|
315
|
+
<key>match</key>
|
|
316
|
+
<string>(?i)\b(AVG|COUNT|MIN|MAX|SUM)(?=\s*\()</string>
|
|
317
|
+
<key>name</key>
|
|
318
|
+
<string>support.function.aggregate.sql</string>
|
|
319
|
+
</dict>
|
|
320
|
+
<dict>
|
|
321
|
+
<key>match</key>
|
|
322
|
+
<string>(?i)\b(CONCATENATE|CONVERT|LOWER|SUBSTRING|TRANSLATE|TRIM|UPPER)\b</string>
|
|
323
|
+
<key>name</key>
|
|
324
|
+
<string>support.function.string.sql</string>
|
|
325
|
+
</dict>
|
|
326
|
+
<dict>
|
|
327
|
+
<key>captures</key>
|
|
328
|
+
<dict>
|
|
329
|
+
<key>1</key>
|
|
330
|
+
<dict>
|
|
331
|
+
<key>name</key>
|
|
332
|
+
<string>constant.other.database-name.sql</string>
|
|
333
|
+
</dict>
|
|
334
|
+
<key>2</key>
|
|
335
|
+
<dict>
|
|
336
|
+
<key>name</key>
|
|
337
|
+
<string>constant.other.table-name.sql</string>
|
|
338
|
+
</dict>
|
|
339
|
+
</dict>
|
|
340
|
+
<key>match</key>
|
|
341
|
+
<string>(\w+?)\.(\w+)</string>
|
|
342
|
+
</dict>
|
|
343
|
+
<dict>
|
|
344
|
+
<key>include</key>
|
|
345
|
+
<string>#strings</string>
|
|
346
|
+
</dict>
|
|
347
|
+
<dict>
|
|
348
|
+
<key>include</key>
|
|
349
|
+
<string>#regexps</string>
|
|
350
|
+
</dict>
|
|
351
|
+
<dict>
|
|
352
|
+
<key>captures</key>
|
|
353
|
+
<dict>
|
|
354
|
+
<key>1</key>
|
|
355
|
+
<dict>
|
|
356
|
+
<key>name</key>
|
|
357
|
+
<string>punctuation.section.scope.begin.sql</string>
|
|
358
|
+
</dict>
|
|
359
|
+
<key>2</key>
|
|
360
|
+
<dict>
|
|
361
|
+
<key>name</key>
|
|
362
|
+
<string>punctuation.section.scope.end.sql</string>
|
|
363
|
+
</dict>
|
|
364
|
+
</dict>
|
|
365
|
+
<key>comment</key>
|
|
366
|
+
<string>Allow for special ↩ behavior</string>
|
|
367
|
+
<key>match</key>
|
|
368
|
+
<string>(\()(\))</string>
|
|
369
|
+
<key>name</key>
|
|
370
|
+
<string>meta.block.sql</string>
|
|
371
|
+
</dict>
|
|
372
|
+
</array>
|
|
373
|
+
<key>repository</key>
|
|
374
|
+
<dict>
|
|
375
|
+
<key>comments</key>
|
|
376
|
+
<dict>
|
|
377
|
+
<key>patterns</key>
|
|
378
|
+
<array>
|
|
379
|
+
<dict>
|
|
380
|
+
<key>begin</key>
|
|
381
|
+
<string>(^[ \t]+)?(?=--)</string>
|
|
382
|
+
<key>beginCaptures</key>
|
|
383
|
+
<dict>
|
|
384
|
+
<key>1</key>
|
|
385
|
+
<dict>
|
|
386
|
+
<key>name</key>
|
|
387
|
+
<string>punctuation.whitespace.comment.leading.sql</string>
|
|
388
|
+
</dict>
|
|
389
|
+
</dict>
|
|
390
|
+
<key>end</key>
|
|
391
|
+
<string>(?!\G)</string>
|
|
392
|
+
<key>patterns</key>
|
|
393
|
+
<array>
|
|
394
|
+
<dict>
|
|
395
|
+
<key>begin</key>
|
|
396
|
+
<string>--</string>
|
|
397
|
+
<key>beginCaptures</key>
|
|
398
|
+
<dict>
|
|
399
|
+
<key>0</key>
|
|
400
|
+
<dict>
|
|
401
|
+
<key>name</key>
|
|
402
|
+
<string>punctuation.definition.comment.sql</string>
|
|
403
|
+
</dict>
|
|
404
|
+
</dict>
|
|
405
|
+
<key>end</key>
|
|
406
|
+
<string>\n</string>
|
|
407
|
+
<key>name</key>
|
|
408
|
+
<string>comment.line.double-dash.sql</string>
|
|
409
|
+
</dict>
|
|
410
|
+
</array>
|
|
411
|
+
</dict>
|
|
412
|
+
<dict>
|
|
413
|
+
<key>begin</key>
|
|
414
|
+
<string>(^[ \t]+)?(?=#)</string>
|
|
415
|
+
<key>beginCaptures</key>
|
|
416
|
+
<dict>
|
|
417
|
+
<key>1</key>
|
|
418
|
+
<dict>
|
|
419
|
+
<key>name</key>
|
|
420
|
+
<string>punctuation.whitespace.comment.leading.sql</string>
|
|
421
|
+
</dict>
|
|
422
|
+
</dict>
|
|
423
|
+
<key>end</key>
|
|
424
|
+
<string>(?!\G)</string>
|
|
425
|
+
<key>patterns</key>
|
|
426
|
+
<array>
|
|
427
|
+
<dict>
|
|
428
|
+
<key>begin</key>
|
|
429
|
+
<string>#</string>
|
|
430
|
+
<key>beginCaptures</key>
|
|
431
|
+
<dict>
|
|
432
|
+
<key>0</key>
|
|
433
|
+
<dict>
|
|
434
|
+
<key>name</key>
|
|
435
|
+
<string>punctuation.definition.comment.sql</string>
|
|
436
|
+
</dict>
|
|
437
|
+
</dict>
|
|
438
|
+
<key>end</key>
|
|
439
|
+
<string>\n</string>
|
|
440
|
+
<key>name</key>
|
|
441
|
+
<string>comment.line.number-sign.sql</string>
|
|
442
|
+
</dict>
|
|
443
|
+
</array>
|
|
444
|
+
</dict>
|
|
445
|
+
<dict>
|
|
446
|
+
<key>begin</key>
|
|
447
|
+
<string>/\*</string>
|
|
448
|
+
<key>captures</key>
|
|
449
|
+
<dict>
|
|
450
|
+
<key>0</key>
|
|
451
|
+
<dict>
|
|
452
|
+
<key>name</key>
|
|
453
|
+
<string>punctuation.definition.comment.sql</string>
|
|
454
|
+
</dict>
|
|
455
|
+
</dict>
|
|
456
|
+
<key>end</key>
|
|
457
|
+
<string>\*/</string>
|
|
458
|
+
<key>name</key>
|
|
459
|
+
<string>comment.block.c</string>
|
|
460
|
+
</dict>
|
|
461
|
+
</array>
|
|
462
|
+
</dict>
|
|
463
|
+
<key>regexps</key>
|
|
464
|
+
<dict>
|
|
465
|
+
<key>patterns</key>
|
|
466
|
+
<array>
|
|
467
|
+
<dict>
|
|
468
|
+
<key>begin</key>
|
|
469
|
+
<string>/(?=\S.*/)</string>
|
|
470
|
+
<key>beginCaptures</key>
|
|
471
|
+
<dict>
|
|
472
|
+
<key>0</key>
|
|
473
|
+
<dict>
|
|
474
|
+
<key>name</key>
|
|
475
|
+
<string>punctuation.definition.string.begin.sql</string>
|
|
476
|
+
</dict>
|
|
477
|
+
</dict>
|
|
478
|
+
<key>end</key>
|
|
479
|
+
<string>/</string>
|
|
480
|
+
<key>endCaptures</key>
|
|
481
|
+
<dict>
|
|
482
|
+
<key>0</key>
|
|
483
|
+
<dict>
|
|
484
|
+
<key>name</key>
|
|
485
|
+
<string>punctuation.definition.string.end.sql</string>
|
|
486
|
+
</dict>
|
|
487
|
+
</dict>
|
|
488
|
+
<key>name</key>
|
|
489
|
+
<string>string.regexp.sql</string>
|
|
490
|
+
<key>patterns</key>
|
|
491
|
+
<array>
|
|
492
|
+
<dict>
|
|
493
|
+
<key>include</key>
|
|
494
|
+
<string>#string_interpolation</string>
|
|
495
|
+
</dict>
|
|
496
|
+
<dict>
|
|
497
|
+
<key>match</key>
|
|
498
|
+
<string>\\/</string>
|
|
499
|
+
<key>name</key>
|
|
500
|
+
<string>constant.character.escape.slash.sql</string>
|
|
501
|
+
</dict>
|
|
502
|
+
</array>
|
|
503
|
+
</dict>
|
|
504
|
+
<dict>
|
|
505
|
+
<key>begin</key>
|
|
506
|
+
<string>%r\{</string>
|
|
507
|
+
<key>beginCaptures</key>
|
|
508
|
+
<dict>
|
|
509
|
+
<key>0</key>
|
|
510
|
+
<dict>
|
|
511
|
+
<key>name</key>
|
|
512
|
+
<string>punctuation.definition.string.begin.sql</string>
|
|
513
|
+
</dict>
|
|
514
|
+
</dict>
|
|
515
|
+
<key>comment</key>
|
|
516
|
+
<string>We should probably handle nested bracket pairs!?! -- Allan</string>
|
|
517
|
+
<key>end</key>
|
|
518
|
+
<string>\}</string>
|
|
519
|
+
<key>endCaptures</key>
|
|
520
|
+
<dict>
|
|
521
|
+
<key>0</key>
|
|
522
|
+
<dict>
|
|
523
|
+
<key>name</key>
|
|
524
|
+
<string>punctuation.definition.string.end.sql</string>
|
|
525
|
+
</dict>
|
|
526
|
+
</dict>
|
|
527
|
+
<key>name</key>
|
|
528
|
+
<string>string.regexp.modr.sql</string>
|
|
529
|
+
<key>patterns</key>
|
|
530
|
+
<array>
|
|
531
|
+
<dict>
|
|
532
|
+
<key>include</key>
|
|
533
|
+
<string>#string_interpolation</string>
|
|
534
|
+
</dict>
|
|
535
|
+
</array>
|
|
536
|
+
</dict>
|
|
537
|
+
</array>
|
|
538
|
+
</dict>
|
|
539
|
+
<key>string_escape</key>
|
|
540
|
+
<dict>
|
|
541
|
+
<key>match</key>
|
|
542
|
+
<string>\\.</string>
|
|
543
|
+
<key>name</key>
|
|
544
|
+
<string>constant.character.escape.sql</string>
|
|
545
|
+
</dict>
|
|
546
|
+
<key>string_interpolation</key>
|
|
547
|
+
<dict>
|
|
548
|
+
<key>captures</key>
|
|
549
|
+
<dict>
|
|
550
|
+
<key>1</key>
|
|
551
|
+
<dict>
|
|
552
|
+
<key>name</key>
|
|
553
|
+
<string>punctuation.definition.string.begin.sql</string>
|
|
554
|
+
</dict>
|
|
555
|
+
<key>3</key>
|
|
556
|
+
<dict>
|
|
557
|
+
<key>name</key>
|
|
558
|
+
<string>punctuation.definition.string.end.sql</string>
|
|
559
|
+
</dict>
|
|
560
|
+
</dict>
|
|
561
|
+
<key>match</key>
|
|
562
|
+
<string>(#\{)([^\}]*)(\})</string>
|
|
563
|
+
<key>name</key>
|
|
564
|
+
<string>string.interpolated.sql</string>
|
|
565
|
+
</dict>
|
|
566
|
+
<key>strings</key>
|
|
567
|
+
<dict>
|
|
568
|
+
<key>patterns</key>
|
|
569
|
+
<array>
|
|
570
|
+
<dict>
|
|
571
|
+
<key>captures</key>
|
|
572
|
+
<dict>
|
|
573
|
+
<key>1</key>
|
|
574
|
+
<dict>
|
|
575
|
+
<key>name</key>
|
|
576
|
+
<string>punctuation.definition.string.begin.sql</string>
|
|
577
|
+
</dict>
|
|
578
|
+
<key>2</key>
|
|
579
|
+
<dict>
|
|
580
|
+
<key>name</key>
|
|
581
|
+
<string>punctuation.definition.string.end.sql</string>
|
|
582
|
+
</dict>
|
|
583
|
+
</dict>
|
|
584
|
+
<key>comment</key>
|
|
585
|
+
<string>this is faster than the next begin/end rule since sub-pattern will match till end-of-line and SQL files tend to have very long lines.</string>
|
|
586
|
+
<key>match</key>
|
|
587
|
+
<string>(')[^'\\]*(')</string>
|
|
588
|
+
<key>name</key>
|
|
589
|
+
<string>string.quoted.single.sql</string>
|
|
590
|
+
</dict>
|
|
591
|
+
<dict>
|
|
592
|
+
<key>begin</key>
|
|
593
|
+
<string>'</string>
|
|
594
|
+
<key>beginCaptures</key>
|
|
595
|
+
<dict>
|
|
596
|
+
<key>0</key>
|
|
597
|
+
<dict>
|
|
598
|
+
<key>name</key>
|
|
599
|
+
<string>punctuation.definition.string.begin.sql</string>
|
|
600
|
+
</dict>
|
|
601
|
+
</dict>
|
|
602
|
+
<key>end</key>
|
|
603
|
+
<string>'</string>
|
|
604
|
+
<key>endCaptures</key>
|
|
605
|
+
<dict>
|
|
606
|
+
<key>0</key>
|
|
607
|
+
<dict>
|
|
608
|
+
<key>name</key>
|
|
609
|
+
<string>punctuation.definition.string.end.sql</string>
|
|
610
|
+
</dict>
|
|
611
|
+
</dict>
|
|
612
|
+
<key>name</key>
|
|
613
|
+
<string>string.quoted.single.sql</string>
|
|
614
|
+
<key>patterns</key>
|
|
615
|
+
<array>
|
|
616
|
+
<dict>
|
|
617
|
+
<key>include</key>
|
|
618
|
+
<string>#string_escape</string>
|
|
619
|
+
</dict>
|
|
620
|
+
</array>
|
|
621
|
+
</dict>
|
|
622
|
+
<dict>
|
|
623
|
+
<key>captures</key>
|
|
624
|
+
<dict>
|
|
625
|
+
<key>1</key>
|
|
626
|
+
<dict>
|
|
627
|
+
<key>name</key>
|
|
628
|
+
<string>punctuation.definition.string.begin.sql</string>
|
|
629
|
+
</dict>
|
|
630
|
+
<key>2</key>
|
|
631
|
+
<dict>
|
|
632
|
+
<key>name</key>
|
|
633
|
+
<string>punctuation.definition.string.end.sql</string>
|
|
634
|
+
</dict>
|
|
635
|
+
</dict>
|
|
636
|
+
<key>comment</key>
|
|
637
|
+
<string>this is faster than the next begin/end rule since sub-pattern will match till end-of-line and SQL files tend to have very long lines.</string>
|
|
638
|
+
<key>match</key>
|
|
639
|
+
<string>(`)[^`\\]*(`)</string>
|
|
640
|
+
<key>name</key>
|
|
641
|
+
<string>string.quoted.other.backtick.sql</string>
|
|
642
|
+
</dict>
|
|
643
|
+
<dict>
|
|
644
|
+
<key>begin</key>
|
|
645
|
+
<string>`</string>
|
|
646
|
+
<key>beginCaptures</key>
|
|
647
|
+
<dict>
|
|
648
|
+
<key>0</key>
|
|
649
|
+
<dict>
|
|
650
|
+
<key>name</key>
|
|
651
|
+
<string>punctuation.definition.string.begin.sql</string>
|
|
652
|
+
</dict>
|
|
653
|
+
</dict>
|
|
654
|
+
<key>end</key>
|
|
655
|
+
<string>`</string>
|
|
656
|
+
<key>endCaptures</key>
|
|
657
|
+
<dict>
|
|
658
|
+
<key>0</key>
|
|
659
|
+
<dict>
|
|
660
|
+
<key>name</key>
|
|
661
|
+
<string>punctuation.definition.string.end.sql</string>
|
|
662
|
+
</dict>
|
|
663
|
+
</dict>
|
|
664
|
+
<key>name</key>
|
|
665
|
+
<string>string.quoted.other.backtick.sql</string>
|
|
666
|
+
<key>patterns</key>
|
|
667
|
+
<array>
|
|
668
|
+
<dict>
|
|
669
|
+
<key>include</key>
|
|
670
|
+
<string>#string_escape</string>
|
|
671
|
+
</dict>
|
|
672
|
+
</array>
|
|
673
|
+
</dict>
|
|
674
|
+
<dict>
|
|
675
|
+
<key>captures</key>
|
|
676
|
+
<dict>
|
|
677
|
+
<key>1</key>
|
|
678
|
+
<dict>
|
|
679
|
+
<key>name</key>
|
|
680
|
+
<string>punctuation.definition.string.begin.sql</string>
|
|
681
|
+
</dict>
|
|
682
|
+
<key>2</key>
|
|
683
|
+
<dict>
|
|
684
|
+
<key>name</key>
|
|
685
|
+
<string>punctuation.definition.string.end.sql</string>
|
|
686
|
+
</dict>
|
|
687
|
+
</dict>
|
|
688
|
+
<key>comment</key>
|
|
689
|
+
<string>this is faster than the next begin/end rule since sub-pattern will match till end-of-line and SQL files tend to have very long lines.</string>
|
|
690
|
+
<key>match</key>
|
|
691
|
+
<string>(")[^"#]*(")</string>
|
|
692
|
+
<key>name</key>
|
|
693
|
+
<string>string.quoted.double.sql</string>
|
|
694
|
+
</dict>
|
|
695
|
+
<dict>
|
|
696
|
+
<key>begin</key>
|
|
697
|
+
<string>"</string>
|
|
698
|
+
<key>beginCaptures</key>
|
|
699
|
+
<dict>
|
|
700
|
+
<key>0</key>
|
|
701
|
+
<dict>
|
|
702
|
+
<key>name</key>
|
|
703
|
+
<string>punctuation.definition.string.begin.sql</string>
|
|
704
|
+
</dict>
|
|
705
|
+
</dict>
|
|
706
|
+
<key>end</key>
|
|
707
|
+
<string>"</string>
|
|
708
|
+
<key>endCaptures</key>
|
|
709
|
+
<dict>
|
|
710
|
+
<key>0</key>
|
|
711
|
+
<dict>
|
|
712
|
+
<key>name</key>
|
|
713
|
+
<string>punctuation.definition.string.end.sql</string>
|
|
714
|
+
</dict>
|
|
715
|
+
</dict>
|
|
716
|
+
<key>name</key>
|
|
717
|
+
<string>string.quoted.double.sql</string>
|
|
718
|
+
<key>patterns</key>
|
|
719
|
+
<array>
|
|
720
|
+
<dict>
|
|
721
|
+
<key>include</key>
|
|
722
|
+
<string>#string_interpolation</string>
|
|
723
|
+
</dict>
|
|
724
|
+
</array>
|
|
725
|
+
</dict>
|
|
726
|
+
<dict>
|
|
727
|
+
<key>begin</key>
|
|
728
|
+
<string>%\{</string>
|
|
729
|
+
<key>beginCaptures</key>
|
|
730
|
+
<dict>
|
|
731
|
+
<key>0</key>
|
|
732
|
+
<dict>
|
|
733
|
+
<key>name</key>
|
|
734
|
+
<string>punctuation.definition.string.begin.sql</string>
|
|
735
|
+
</dict>
|
|
736
|
+
</dict>
|
|
737
|
+
<key>end</key>
|
|
738
|
+
<string>\}</string>
|
|
739
|
+
<key>endCaptures</key>
|
|
740
|
+
<dict>
|
|
741
|
+
<key>0</key>
|
|
742
|
+
<dict>
|
|
743
|
+
<key>name</key>
|
|
744
|
+
<string>punctuation.definition.string.end.sql</string>
|
|
745
|
+
</dict>
|
|
746
|
+
</dict>
|
|
747
|
+
<key>name</key>
|
|
748
|
+
<string>string.other.quoted.brackets.sql</string>
|
|
749
|
+
<key>patterns</key>
|
|
750
|
+
<array>
|
|
751
|
+
<dict>
|
|
752
|
+
<key>include</key>
|
|
753
|
+
<string>#string_interpolation</string>
|
|
754
|
+
</dict>
|
|
755
|
+
</array>
|
|
756
|
+
</dict>
|
|
757
|
+
</array>
|
|
758
|
+
</dict>
|
|
759
|
+
</dict>
|
|
760
|
+
<key>scopeName</key>
|
|
761
|
+
<string>source.sql</string>
|
|
762
|
+
<key>uuid</key>
|
|
763
|
+
<string>C49120AC-6ECC-11D9-ACC8-000D93589AF6</string>
|
|
764
|
+
</dict>
|
|
765
|
+
</plist>
|