rantjs 1.0.10 → 2.1.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.
@@ -1,441 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ChangeListManager">
4
- <list default="true" id="ffe6dafd-e8ac-4773-9953-7b273dc518ec" name="Default" comment="" />
5
- <ignored path="rantnpm.iws" />
6
- <ignored path=".idea/workspace.xml" />
7
- <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
8
- <option name="TRACKING_ENABLED" value="true" />
9
- <option name="SHOW_DIALOG" value="false" />
10
- <option name="HIGHLIGHT_CONFLICTS" value="true" />
11
- <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
12
- <option name="LAST_RESOLUTION" value="IGNORE" />
13
- </component>
14
- <component name="CreatePatchCommitExecutor">
15
- <option name="PATCH_PATH" value="" />
16
- </component>
17
- <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
18
- <component name="FavoritesManager">
19
- <favorites_list name="rantnpm" />
20
- </component>
21
- <component name="FileEditorManager">
22
- <leaf>
23
- <file leaf-file-name="index.js" pinned="false" current-in-tab="false">
24
- <entry file="file://$PROJECT_DIR$/index.js">
25
- <provider selected="true" editor-type-id="text-editor">
26
- <state relative-caret-position="589">
27
- <caret line="81" column="19" selection-start-line="81" selection-start-column="19" selection-end-line="81" selection-end-column="19" />
28
- <folding />
29
- </state>
30
- </provider>
31
- </entry>
32
- </file>
33
- <file leaf-file-name="index.min.js" pinned="false" current-in-tab="false">
34
- <entry file="file://$PROJECT_DIR$/index.min.js">
35
- <provider selected="true" editor-type-id="text-editor">
36
- <state relative-caret-position="-11924">
37
- <caret line="6" column="0" selection-start-line="6" selection-start-column="0" selection-end-line="6" selection-end-column="0" />
38
- <folding />
39
- </state>
40
- </provider>
41
- </entry>
42
- </file>
43
- <file leaf-file-name="rantjs.js" pinned="false" current-in-tab="false">
44
- <entry file="file://$PROJECT_DIR$/surge/rantjs.js">
45
- <provider selected="true" editor-type-id="text-editor">
46
- <state relative-caret-position="5093">
47
- <caret line="632" column="28" selection-start-line="632" selection-start-column="28" selection-end-line="632" selection-end-column="28" />
48
- <folding>
49
- <marker date="1476478362000" expanded="true" signature="113682:113684" ph="{...}" />
50
- </folding>
51
- </state>
52
- </provider>
53
- </entry>
54
- </file>
55
- <file leaf-file-name="index.html" pinned="false" current-in-tab="false">
56
- <entry file="file://$PROJECT_DIR$/surge/index.html">
57
- <provider selected="true" editor-type-id="text-editor">
58
- <state relative-caret-position="180">
59
- <caret line="12" column="0" selection-start-line="7" selection-start-column="0" selection-end-line="12" selection-end-column="0" />
60
- <folding />
61
- </state>
62
- </provider>
63
- </entry>
64
- </file>
65
- <file leaf-file-name="en_US.js" pinned="false" current-in-tab="true">
66
- <entry file="file://$PROJECT_DIR$/source/dic/en_US.js">
67
- <provider selected="true" editor-type-id="text-editor">
68
- <state relative-caret-position="240">
69
- <caret line="20" column="135" selection-start-line="20" selection-start-column="135" selection-end-line="20" selection-end-column="135" />
70
- <folding />
71
- </state>
72
- </provider>
73
- </entry>
74
- </file>
75
- <file leaf-file-name="lexer.js" pinned="false" current-in-tab="false">
76
- <entry file="file://$PROJECT_DIR$/source/core/lexer.js">
77
- <provider selected="true" editor-type-id="text-editor">
78
- <state relative-caret-position="0">
79
- <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
80
- <folding />
81
- </state>
82
- </provider>
83
- </entry>
84
- </file>
85
- <file leaf-file-name="tokens.js" pinned="false" current-in-tab="false">
86
- <entry file="file://$PROJECT_DIR$/source/dic/tokens.js">
87
- <provider selected="true" editor-type-id="text-editor">
88
- <state relative-caret-position="75">
89
- <caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
90
- <folding />
91
- </state>
92
- </provider>
93
- </entry>
94
- </file>
95
- </leaf>
96
- </component>
97
- <component name="GradleLocalSettings">
98
- <option name="externalProjectsViewState">
99
- <projects_view />
100
- </option>
101
- </component>
102
- <component name="IdeDocumentHistory">
103
- <option name="CHANGED_PATHS">
104
- <list>
105
- <option value="$PROJECT_DIR$/source/core/index.js" />
106
- <option value="$PROJECT_DIR$/index.js" />
107
- <option value="$PROJECT_DIR$/surge/index.html" />
108
- <option value="$PROJECT_DIR$/source/dic/tokens.js" />
109
- <option value="$PROJECT_DIR$/source/dic/en_US.js" />
110
- </list>
111
- </option>
112
- </component>
113
- <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
114
- <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
115
- <component name="JsGulpfileManager">
116
- <detection-done>true</detection-done>
117
- <sorting>DEFINITION_ORDER</sorting>
118
- </component>
119
- <component name="ProjectFrameBounds">
120
- <option name="x" value="20" />
121
- <option name="y" value="43" />
122
- <option name="width" value="1400" />
123
- <option name="height" value="833" />
124
- </component>
125
- <component name="ProjectLevelVcsManager" settingsEditedManually="false">
126
- <OptionsSetting value="true" id="Add" />
127
- <OptionsSetting value="true" id="Remove" />
128
- <OptionsSetting value="true" id="Checkout" />
129
- <OptionsSetting value="true" id="Update" />
130
- <OptionsSetting value="true" id="Status" />
131
- <OptionsSetting value="true" id="Edit" />
132
- <ConfirmationsSetting value="0" id="Add" />
133
- <ConfirmationsSetting value="0" id="Remove" />
134
- </component>
135
- <component name="ProjectView">
136
- <navigator currentView="ProjectPane" proportions="" version="1">
137
- <flattenPackages />
138
- <showMembers />
139
- <showModules />
140
- <showLibraryContents />
141
- <hideEmptyPackages />
142
- <abbreviatePackageNames />
143
- <autoscrollToSource />
144
- <autoscrollFromSource />
145
- <sortByType />
146
- <manualOrder />
147
- <foldersAlwaysOnTop value="true" />
148
- </navigator>
149
- <panes>
150
- <pane id="Scratches" />
151
- <pane id="ProjectPane">
152
- <subPane>
153
- <PATH>
154
- <PATH_ELEMENT>
155
- <option name="myItemId" value="rantnpm" />
156
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
157
- </PATH_ELEMENT>
158
- </PATH>
159
- <PATH>
160
- <PATH_ELEMENT>
161
- <option name="myItemId" value="rantnpm" />
162
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
163
- </PATH_ELEMENT>
164
- <PATH_ELEMENT>
165
- <option name="myItemId" value="rantnpm" />
166
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
167
- </PATH_ELEMENT>
168
- </PATH>
169
- <PATH>
170
- <PATH_ELEMENT>
171
- <option name="myItemId" value="rantnpm" />
172
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
173
- </PATH_ELEMENT>
174
- <PATH_ELEMENT>
175
- <option name="myItemId" value="rantnpm" />
176
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
177
- </PATH_ELEMENT>
178
- <PATH_ELEMENT>
179
- <option name="myItemId" value="surge" />
180
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
181
- </PATH_ELEMENT>
182
- </PATH>
183
- <PATH>
184
- <PATH_ELEMENT>
185
- <option name="myItemId" value="rantnpm" />
186
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
187
- </PATH_ELEMENT>
188
- <PATH_ELEMENT>
189
- <option name="myItemId" value="rantnpm" />
190
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
191
- </PATH_ELEMENT>
192
- <PATH_ELEMENT>
193
- <option name="myItemId" value="source" />
194
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
195
- </PATH_ELEMENT>
196
- </PATH>
197
- <PATH>
198
- <PATH_ELEMENT>
199
- <option name="myItemId" value="rantnpm" />
200
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
201
- </PATH_ELEMENT>
202
- <PATH_ELEMENT>
203
- <option name="myItemId" value="rantnpm" />
204
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
205
- </PATH_ELEMENT>
206
- <PATH_ELEMENT>
207
- <option name="myItemId" value="source" />
208
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
209
- </PATH_ELEMENT>
210
- <PATH_ELEMENT>
211
- <option name="myItemId" value="dic" />
212
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
213
- </PATH_ELEMENT>
214
- </PATH>
215
- <PATH>
216
- <PATH_ELEMENT>
217
- <option name="myItemId" value="rantnpm" />
218
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
219
- </PATH_ELEMENT>
220
- <PATH_ELEMENT>
221
- <option name="myItemId" value="rantnpm" />
222
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
223
- </PATH_ELEMENT>
224
- <PATH_ELEMENT>
225
- <option name="myItemId" value="source" />
226
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
227
- </PATH_ELEMENT>
228
- <PATH_ELEMENT>
229
- <option name="myItemId" value="core" />
230
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
231
- </PATH_ELEMENT>
232
- </PATH>
233
- </subPane>
234
- </pane>
235
- <pane id="PackagesPane" />
236
- <pane id="Scope" />
237
- </panes>
238
- </component>
239
- <component name="PropertiesComponent">
240
- <property name="last_opened_file_path" value="$PROJECT_DIR$" />
241
- <property name="nodejs_interpreter_path" value="/usr/local/bin/node" />
242
- </component>
243
- <component name="RunManager">
244
- <configuration default="true" type="Applet" factoryName="Applet">
245
- <option name="HTML_USED" value="false" />
246
- <option name="WIDTH" value="400" />
247
- <option name="HEIGHT" value="300" />
248
- <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
249
- <module />
250
- <method />
251
- </configuration>
252
- <configuration default="true" type="Application" factoryName="Application">
253
- <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
254
- <option name="MAIN_CLASS_NAME" />
255
- <option name="VM_PARAMETERS" />
256
- <option name="PROGRAM_PARAMETERS" />
257
- <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
258
- <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
259
- <option name="ALTERNATIVE_JRE_PATH" />
260
- <option name="ENABLE_SWING_INSPECTOR" value="false" />
261
- <option name="ENV_VARIABLES" />
262
- <option name="PASS_PARENT_ENVS" value="true" />
263
- <module name="" />
264
- <envs />
265
- <method />
266
- </configuration>
267
- <configuration default="true" type="JUnit" factoryName="JUnit">
268
- <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
269
- <module name="" />
270
- <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
271
- <option name="ALTERNATIVE_JRE_PATH" />
272
- <option name="PACKAGE_NAME" />
273
- <option name="MAIN_CLASS_NAME" />
274
- <option name="METHOD_NAME" />
275
- <option name="TEST_OBJECT" value="class" />
276
- <option name="VM_PARAMETERS" value="-ea" />
277
- <option name="PARAMETERS" />
278
- <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
279
- <option name="ENV_VARIABLES" />
280
- <option name="PASS_PARENT_ENVS" value="true" />
281
- <option name="TEST_SEARCH_SCOPE">
282
- <value defaultName="singleModule" />
283
- </option>
284
- <envs />
285
- <patterns />
286
- <method />
287
- </configuration>
288
- <configuration default="true" type="NodeJSConfigurationType" factoryName="Node.js" path-to-node="project" working-dir="">
289
- <method />
290
- </configuration>
291
- <configuration default="true" type="Remote" factoryName="Remote">
292
- <option name="USE_SOCKET_TRANSPORT" value="true" />
293
- <option name="SERVER_MODE" value="false" />
294
- <option name="SHMEM_ADDRESS" value="javadebug" />
295
- <option name="HOST" value="localhost" />
296
- <option name="PORT" value="5005" />
297
- <method />
298
- </configuration>
299
- <configuration default="true" type="TestNG" factoryName="TestNG">
300
- <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
301
- <module name="" />
302
- <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
303
- <option name="ALTERNATIVE_JRE_PATH" />
304
- <option name="SUITE_NAME" />
305
- <option name="PACKAGE_NAME" />
306
- <option name="MAIN_CLASS_NAME" />
307
- <option name="METHOD_NAME" />
308
- <option name="GROUP_NAME" />
309
- <option name="TEST_OBJECT" value="CLASS" />
310
- <option name="VM_PARAMETERS" value="-ea" />
311
- <option name="PARAMETERS" />
312
- <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
313
- <option name="OUTPUT_DIRECTORY" />
314
- <option name="ANNOTATION_TYPE" />
315
- <option name="ENV_VARIABLES" />
316
- <option name="PASS_PARENT_ENVS" value="true" />
317
- <option name="TEST_SEARCH_SCOPE">
318
- <value defaultName="singleModule" />
319
- </option>
320
- <option name="USE_DEFAULT_REPORTERS" value="false" />
321
- <option name="PROPERTIES_FILE" />
322
- <envs />
323
- <properties />
324
- <listeners />
325
- <method />
326
- </configuration>
327
- <configuration name="&lt;template&gt;" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" default="true" selected="false">
328
- <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
329
- </configuration>
330
- </component>
331
- <component name="ShelveChangesManager" show_recycled="false">
332
- <option name="remove_strategy" value="false" />
333
- </component>
334
- <component name="ToolWindowManager">
335
- <frame x="20" y="43" width="1400" height="833" extended-state="0" />
336
- <editor active="true" />
337
- <layout>
338
- <window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
339
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
340
- <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
341
- <window_info id="Palette&#9;" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
342
- <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
343
- <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
344
- <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
345
- <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
346
- <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
347
- <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
348
- <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
349
- <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
350
- <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
351
- <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
352
- <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
353
- <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
354
- <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
355
- <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
356
- </layout>
357
- </component>
358
- <component name="Vcs.Log.UiProperties">
359
- <option name="RECENTLY_FILTERED_USER_GROUPS">
360
- <collection />
361
- </option>
362
- <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
363
- <collection />
364
- </option>
365
- </component>
366
- <component name="VcsContentAnnotationSettings">
367
- <option name="myLimit" value="2678400000" />
368
- </component>
369
- <component name="XDebuggerManager">
370
- <breakpoint-manager />
371
- <watches-manager />
372
- </component>
373
- <component name="editorHistoryManager">
374
- <entry file="file://$PROJECT_DIR$/source/core/index.js">
375
- <provider selected="true" editor-type-id="text-editor">
376
- <state relative-caret-position="481">
377
- <caret line="73" column="29" selection-start-line="73" selection-start-column="29" selection-end-line="73" selection-end-column="29" />
378
- <folding />
379
- </state>
380
- </provider>
381
- </entry>
382
- <entry file="file://$PROJECT_DIR$/surge/rantjs.js">
383
- <provider selected="true" editor-type-id="text-editor">
384
- <state relative-caret-position="5093">
385
- <caret line="632" column="28" selection-start-line="632" selection-start-column="28" selection-end-line="632" selection-end-column="28" />
386
- <folding>
387
- <marker date="1476478362000" expanded="true" signature="113682:113684" ph="{...}" />
388
- </folding>
389
- </state>
390
- </provider>
391
- </entry>
392
- <entry file="file://$PROJECT_DIR$/index.min.js">
393
- <provider selected="true" editor-type-id="text-editor">
394
- <state relative-caret-position="-11924">
395
- <caret line="6" column="0" selection-start-line="6" selection-start-column="0" selection-end-line="6" selection-end-column="0" />
396
- <folding />
397
- </state>
398
- </provider>
399
- </entry>
400
- <entry file="file://$PROJECT_DIR$/index.js">
401
- <provider selected="true" editor-type-id="text-editor">
402
- <state relative-caret-position="589">
403
- <caret line="81" column="19" selection-start-line="81" selection-start-column="19" selection-end-line="81" selection-end-column="19" />
404
- <folding />
405
- </state>
406
- </provider>
407
- </entry>
408
- <entry file="file://$PROJECT_DIR$/surge/index.html">
409
- <provider selected="true" editor-type-id="text-editor">
410
- <state relative-caret-position="180">
411
- <caret line="12" column="0" selection-start-line="7" selection-start-column="0" selection-end-line="12" selection-end-column="0" />
412
- <folding />
413
- </state>
414
- </provider>
415
- </entry>
416
- <entry file="file://$PROJECT_DIR$/source/core/lexer.js">
417
- <provider selected="true" editor-type-id="text-editor">
418
- <state relative-caret-position="0">
419
- <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
420
- <folding />
421
- </state>
422
- </provider>
423
- </entry>
424
- <entry file="file://$PROJECT_DIR$/source/dic/tokens.js">
425
- <provider selected="true" editor-type-id="text-editor">
426
- <state relative-caret-position="75">
427
- <caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
428
- <folding />
429
- </state>
430
- </provider>
431
- </entry>
432
- <entry file="file://$PROJECT_DIR$/source/dic/en_US.js">
433
- <provider selected="true" editor-type-id="text-editor">
434
- <state relative-caret-position="240">
435
- <caret line="20" column="135" selection-start-line="20" selection-start-column="135" selection-end-line="20" selection-end-column="135" />
436
- <folding />
437
- </state>
438
- </provider>
439
- </entry>
440
- </component>
441
- </project>
package/.npmignore DELETED
@@ -1 +0,0 @@
1
- surge
package/index.js DELETED
@@ -1,83 +0,0 @@
1
- String.prototype.toTitleCase = function() {
2
- var i, j, str, lowers, uppers;
3
- str = this.replace(/([^\W_]+[^\s-]*) */g, function(txt) {
4
- return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
5
- });
6
-
7
- // Certain minor words should be left lowercase unless they are the first or last words in the string
8
- lowers = ['A', 'An', 'The', 'And', 'But', 'Or', 'For', 'Nor', 'As', 'At',
9
- 'By', 'For', 'From', 'In', 'Into', 'Near', 'Of', 'On', 'Onto', 'To', 'With'];
10
- for (i = 0, j = lowers.length; i < j; i++)
11
- str = str.replace(new RegExp('\\s' + lowers[i] + '\\s', 'g'),
12
- function(txt) {
13
- return txt.toLowerCase();
14
- });
15
-
16
- // Certain words should be left uppercase
17
- uppers = ['Id', 'Tv', 'Lsd'];
18
- for (i = 0, j = uppers.length; i < j; i++)
19
- str = str.replace(new RegExp('\\b' + uppers[i] + '\\b', 'g'),
20
- uppers[i].toUpperCase());
21
-
22
- return str;
23
- };
24
-
25
- String.prototype.toWordCase = function() {
26
- return this.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});
27
- };
28
-
29
- String.prototype.toSentenceCase = function() {
30
- var re = /(^\s*\w{1}|\.\s*\w{1})/gi;
31
- return this.replace(re, function(str) {
32
- return str.toUpperCase();
33
- });
34
- };
35
-
36
-
37
-
38
- function rant(inputStream, dic) {
39
- dic = dic || require('./source/dic/en_US');
40
- var outputStream = inputStream, re;
41
- var regex = /\<(.*?)\>/g;
42
- var matches, token, indexPos;
43
- var replacement, i = 0, tags = {};
44
- var repetitions = [];
45
- var separator = [];
46
- var stringCase = require("./source/core/getCase")(inputStream);
47
- outputStream = inputStream.toLowerCase(), regex = /(\[.*?\])/g;
48
- while (matches = regex.exec(inputStream)) {
49
- // [rep:4][sep:\s]{\8,x}
50
- re = new RegExp("\\w+", "g");
51
- token = matches[1].match(re);
52
- if (token[0] === "sep") {
53
- separator.push(token[1]);
54
- //separator=matches[0].match(/[^[\](sep:)]+(?=])/)[0];
55
- }
56
- if (token[0] === "rep") {
57
- repetitions.push(token[1]);
58
- }
59
- }
60
- repetitions.reverse();
61
- separator.reverse();
62
-
63
- // remove the brackets
64
- while (matches = regex.exec(inputStream)) {
65
- inputStream = inputStream.replace(/(\[.*?\])/g, '');
66
- }
67
-
68
- // instructions in the brackets will only be applied to tokens matched in curly braces
69
- regex = /(\{.*?\})/;
70
- var res = "";
71
- var curlymatch;
72
-
73
- while (curlymatch = regex.exec(inputStream)) {
74
- replacement = require("./source/core/braceParser")(inputStream, curlymatch[1], repetitions, separator, dic);
75
- inputStream = inputStream.replace(curlymatch[1], replacement);
76
- }
77
-
78
- // lexer matches (anything inside arrow notation)
79
- outputStream = require("./source/core/lexer")(inputStream, dic);
80
- return require("./source/core/capitalize")(outputStream, stringCase);
81
- }
82
- window.rant = rant;
83
- module.exports = rant;