├── .gitignore ├── .vscode └── launch.json ├── .vsixmanifest ├── CHANGELOG.md ├── LICENSE ├── README.md ├── language-configuration.json ├── netlinx.png ├── package-lock.json ├── package.json ├── snippets └── snippets.json ├── src └── extension.ts ├── syntaxes └── amx-netlinx.tmLanguage.json └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- 1 | out/ 2 | node_modules/ 3 | *.vsix -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | // A launch configuration that launches the extension inside a new window 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | { 6 | "version": "0.2.0", 7 | "configurations": [ 8 | { 9 | "name": "Extension", 10 | "type": "extensionHost", 11 | "request": "launch", 12 | "runtimeExecutable": "${execPath}", 13 | "args": [ 14 | "--extensionDevelopmentPath=${workspaceFolder}" 15 | ] 16 | } 17 | ] 18 | } -------------------------------------------------------------------------------- /.vsixmanifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | AMX Netlinx 6 | Extension for AMX Netlinx. Includes syntax highlighting, compiling, beautification and snippets. 7 | keybindings,netlinx,amx,__ext_axs,__ext_axi,__ext_axb 8 | Programming Languages 9 | Public 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | extension/License.md 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | ## 0.6.1 4 | - Changed AXI file to Netlinx Source 5 | - Changed aliases of languages to AMX Netlinx Source and AMX Netlinx Library 6 | 7 | ## 0.6.0 8 | - Added document format provider 9 | 10 | ## 0.5.4 11 | - Fixed beautifier finding false positives inside string literals 12 | 13 | ## 0.5.3 14 | - More code beautifier tweaking 15 | 16 | ### 0.5.2 17 | - Updated Netlinx grammar with most recent Netlinx.AXI constants and function names 18 | - Updated grammar types to get better theme integration support 19 | - Added .LIB file extension support 20 | 21 | ### 0.5.1 22 | - Updated Netlinx grammar for compiler directives and keywords (jwjames83) 23 | - Snippet updates (sentry07) 24 | 25 | ### 0.5.0 26 | - Added a second build task for compiling with local files only, ignoring the global folders. 27 | - Removed context shortcut and keyboard shortcut to compile the current file. Please use the Build tasks noted above. 28 | - Complete rewrite of the beautifier indentation code. Should be much more reliable now. 29 | 30 | ### 0.4.3 31 | - Debugging the new indentation logic 32 | 33 | ### 0.4.2 34 | - Rewrote code indentation logic in the code beautifier 35 | 36 | ### 0.4.1 37 | - Fixed build task showing up in other filetypes. Only shows up in .AXS file windows now. 38 | - Fixed excess terminal windows when opening helpfile/diagnostics/file transfer 39 | 40 | ### 0.4.0 41 | - Fixed build task generation - Use CTRL+SHIFT+B to build your source files! 42 | - Fixed problem matcher for newer NLRC.exe version output 43 | 44 | ### 0.3.3 45 | - Context menu organization 46 | - More snippets for storage types 47 | - Default editor config overrides 48 | 49 | ### 0.3.2 50 | - Bug fixes in syntax highlighting 51 | 52 | ### 0.3.0 53 | - Converted extension to TypeScript 54 | - Added Build command. Can use the previous shortcut or use CTRL+SHIFT+B and select the build task. 55 | - Added workspace configuration defaults for the extension to work better with snippets. 56 | 57 | ### 0.2.1 58 | - Removing double quoted strings as a string container. It prevented autocomplete and other things to function inside strings. 59 | - Fixed "FOR" code snippet 60 | 61 | ### 0.2.0 62 | - More Code Snippets 63 | - Published to Extension Marketplace 64 | 65 | ### 0.1.2 66 | - Added base Netlinx code snippets 67 | 68 | ### 0.1.1 69 | - Beta release 70 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | This is a language package for programming AMX Netlinx control systems. It has syntax highlighting, a code beautifier, snippets for a lot of Netlinx 2 | functions and code blocks, build tasks to compile your code, and shortcuts for the AMX programming help file, Netlinx Diagnostics, and the File Transfer utility. After installing the extension, please open your VSCode Settings (CTRL-Comma) and search for Netlinx and verify/update the locations in there. 3 | 4 | ## Use CTRL+SHIFT+B to compile your Netlinx code 5 | 6 | ## New in this release (0.6.0): 7 | + Added a document formatter provider. Use the context menu to select Format Document. You can also enable "Format on Save" in VSCode settings. 8 | * (0.6.1) Changed AXI file extension to be Netlinx Source so it can be compiled as well. 9 | 10 | ## Known Issues 11 | * Single line code blocks without {} brackets will not be detected by the code beautifier and will not be indented properly 12 | 13 | ## TODO 14 | * Fix known issues 15 | * Language server development 16 | 17 | ## Quality of life recommendations: 18 | * Install "Open In Application" extension by Fabio Spampinato: https://marketplace.visualstudio.com/items?itemName=fabiospampinato.vscode-open-in-application 19 | * Install "Bracket Pair Colorizer 2" by CoenraadS: https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer-2 20 | * Use a different theme than the default themes for full syntax highlighting (One Dark Pro is amazing) 21 | 22 | ## Extension Commands 23 | 24 | This extension contributes the following commands: 25 | 26 | * `extension.netlinx_help`: Opens the AMX Netlinx help reference file. 27 | * `extension.netlinx_diag`: Opens the AMX Netlinx Diagnostics executable (if installed). 28 | * `extension.netlinx_transfer`: Opens the AMX File Transfer Utility (if installed). 29 | * `extension.netlinx_openincludefolder`: Opens the global Netlinx includes folder in the current workspace (if configured in settings) 30 | * `extension.netlinx_openlibraryfolder`: Opens the global Netlinx libraries folder in the current workspace (if configured in settings) 31 | * `extension.netlinx_openmodulefolder`: Opens the global Netlinx modules folder in the current workspace (if configured in settings) 32 | 33 | ## Extension Settings 34 | 35 | This extension contributes the following settings: 36 | 37 | * `netlinx.compilerLocation`: sets the path of the Netlinx compiler. 38 | * `netlinx.helpLocation`: sets the path of the Netlinx reference guide. 39 | * `netlinx.diagLocation`: sets the path of the Netlinx Diagnostics program. 40 | * `netlinx.ftLocation`: sets the path of the Netlinx File Transfer utility. 41 | * `netlinx.terminalLocation`: sets path of the default windows cmd.exe. 42 | * `netlinx.includesLocation`: sets path of global Netlinx includes folder. 43 | * `netlinx.libraryLocation`: sets path of global Netlinx libraries folder. 44 | * `netlinx.modulesLocation`: sets path of global Netlinx modules folder. 45 | 46 | ## Keybindings and Menus 47 | 48 | All commands are added to the right click context menu of the editor tab, and the following keybindings have been added. 49 | 50 | * `ctrl+shift+F1`: Opens Netlinx Help 51 | * `ctrl+shift+F3`: Opens Netlinx Diagnostics 52 | * `ctrl+shift+F4`: Opens File Transfer Utility 53 | * `ctrl+shift+F5`: Opens Global Includes Folder in Workspace 54 | * `ctrl+shift+F6`: Opens Global Libraries Folder in Workspace 55 | * `ctrl+shift+F7`: Opens Global Modules Folder in Workspace 56 | 57 | ## Notes 58 | 59 | * `extension.netlinx_compile` requires Netlinx Studio 3.x or 4.x to be installed. Preferably 4.x. This is freely available at AMX.com. 60 | * `extension.netlinx_diag` requires Netlinx Diagnostics to be installed. This is freely available at AMX.com. 61 | * `extension.netlinx_transfer` requires File Transfer Utility 2 to be installed. This is not freely available, but you can try to get it from the following URL. Login may be required. 62 | https://trade.amx.com/techcenter/downloadConfirm.asp?fn=/assets/applicationFiles/FT2Setup.exe 63 | -------------------------------------------------------------------------------- /language-configuration.json: -------------------------------------------------------------------------------- 1 | { 2 | "comments": { 3 | // symbol used for single line comment. Remove this entry if your language does not support line comments 4 | "lineComment": "//", 5 | // symbols used for start and end a block comment. Remove this entry if your language does not support block comments 6 | "blockComment": [ "/*", "*/" ] 7 | }, 8 | // symbols used as brackets 9 | "brackets": [ 10 | ["{", "}"], 11 | ["[", "]"], 12 | ["(", ")"] 13 | ], 14 | // symbols that are auto closed when typing 15 | "autoClosingPairs": [ 16 | ["{", "}"], 17 | ["[", "]"], 18 | ["(", ")"], 19 | ["\"", "\""], 20 | ["'", "'"] 21 | ], 22 | // symbols that that can be used to surround a selection 23 | "surroundingPairs": [ 24 | ["{", "}"], 25 | ["[", "]"], 26 | ["(", ")"], 27 | ["\"", "\""], 28 | ["'", "'"] 29 | ], 30 | "indentationRules": { 31 | "increaseIndentPattern": "^((?!\\/\\/|['\\\"]).)*(\\{[^{}\\v]*|\\([^()\\*\\v]*|\\[[^\\[\\]\\v]*)$", 32 | "decreaseIndentPattern": "^((?!.*?\\/\\*).*\\*\\/)?\\s*[\\}\\]\\)].*$" 33 | } 34 | } -------------------------------------------------------------------------------- /netlinx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sentry07/vscode-amx-netlinx/9d2555caa1cb7a336a34e8a0cbe26571d9f472fc/netlinx.png -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "amx-netlinx", 3 | "version": "0.6.1", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@babel/code-frame": { 8 | "version": "7.8.3", 9 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", 10 | "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", 11 | "dev": true, 12 | "requires": { 13 | "@babel/highlight": "^7.8.3" 14 | } 15 | }, 16 | "@babel/helper-validator-identifier": { 17 | "version": "7.9.5", 18 | "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.9.5.tgz", 19 | "integrity": "sha512-/8arLKUFq882w4tWGj9JYzRpAlZgiWUJ+dtteNTDqrRBz9Iguck9Rn3ykuBDoUwh2TO4tSAJlrxDUOXWklJe4g==", 20 | "dev": true 21 | }, 22 | "@babel/highlight": { 23 | "version": "7.9.0", 24 | "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.9.0.tgz", 25 | "integrity": "sha512-lJZPilxX7Op3Nv/2cvFdnlepPXDxi29wxteT57Q965oc5R9v86ztx0jfxVrTcBk8C2kcPkkDa2Z4T3ZsPPVWsQ==", 26 | "dev": true, 27 | "requires": { 28 | "@babel/helper-validator-identifier": "^7.9.0", 29 | "chalk": "^2.0.0", 30 | "js-tokens": "^4.0.0" 31 | } 32 | }, 33 | "@tootallnate/once": { 34 | "version": "1.1.2", 35 | "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", 36 | "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", 37 | "dev": true 38 | }, 39 | "@types/mocha": { 40 | "version": "5.2.7", 41 | "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-5.2.7.tgz", 42 | "integrity": "sha512-NYrtPht0wGzhwe9+/idPaBB+TqkY9AhTvOLMkThm0IoEfLaiVQZwBwyJ5puCkO3AUCWrmcoePjp2mbFocKy4SQ==", 43 | "dev": true 44 | }, 45 | "@types/node": { 46 | "version": "11.15.53", 47 | "resolved": "https://registry.npmjs.org/@types/node/-/node-11.15.53.tgz", 48 | "integrity": "sha512-X4K0pwvbFZ7+x5wyJUSROj4TJvyXxL0MY4OaxyphfEfgw+0DdYDltyqTX14LiYTIQdY49sDA/MabdtYc973yFg==", 49 | "dev": true 50 | }, 51 | "agent-base": { 52 | "version": "6.0.2", 53 | "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", 54 | "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", 55 | "dev": true, 56 | "requires": { 57 | "debug": "4" 58 | } 59 | }, 60 | "ansi-styles": { 61 | "version": "3.2.1", 62 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 63 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 64 | "dev": true, 65 | "requires": { 66 | "color-convert": "^1.9.0" 67 | } 68 | }, 69 | "argparse": { 70 | "version": "1.0.10", 71 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 72 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 73 | "dev": true, 74 | "requires": { 75 | "sprintf-js": "~1.0.2" 76 | } 77 | }, 78 | "azure-devops-node-api": { 79 | "version": "11.2.0", 80 | "resolved": "https://registry.npmjs.org/azure-devops-node-api/-/azure-devops-node-api-11.2.0.tgz", 81 | "integrity": "sha512-XdiGPhrpaT5J8wdERRKs5g8E0Zy1pvOYTli7z9E8nmOn3YGp4FhtjhrOyFmX/8veWCwdI69mCHKJw6l+4J/bHA==", 82 | "dev": true, 83 | "requires": { 84 | "tunnel": "0.0.6", 85 | "typed-rest-client": "^1.8.4" 86 | } 87 | }, 88 | "balanced-match": { 89 | "version": "1.0.0", 90 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 91 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", 92 | "dev": true 93 | }, 94 | "base64-js": { 95 | "version": "1.5.1", 96 | "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", 97 | "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", 98 | "dev": true 99 | }, 100 | "bl": { 101 | "version": "4.1.0", 102 | "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", 103 | "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", 104 | "dev": true, 105 | "requires": { 106 | "buffer": "^5.5.0", 107 | "inherits": "^2.0.4", 108 | "readable-stream": "^3.4.0" 109 | } 110 | }, 111 | "boolbase": { 112 | "version": "1.0.0", 113 | "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", 114 | "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", 115 | "dev": true 116 | }, 117 | "brace-expansion": { 118 | "version": "1.1.11", 119 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 120 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 121 | "dev": true, 122 | "requires": { 123 | "balanced-match": "^1.0.0", 124 | "concat-map": "0.0.1" 125 | } 126 | }, 127 | "browser-stdout": { 128 | "version": "1.3.1", 129 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", 130 | "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", 131 | "dev": true 132 | }, 133 | "buffer": { 134 | "version": "5.7.1", 135 | "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", 136 | "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", 137 | "dev": true, 138 | "requires": { 139 | "base64-js": "^1.3.1", 140 | "ieee754": "^1.1.13" 141 | } 142 | }, 143 | "buffer-crc32": { 144 | "version": "0.2.13", 145 | "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", 146 | "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", 147 | "dev": true 148 | }, 149 | "buffer-from": { 150 | "version": "1.1.1", 151 | "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", 152 | "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", 153 | "dev": true 154 | }, 155 | "builtin-modules": { 156 | "version": "1.1.1", 157 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", 158 | "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", 159 | "dev": true 160 | }, 161 | "call-bind": { 162 | "version": "1.0.2", 163 | "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", 164 | "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", 165 | "dev": true, 166 | "requires": { 167 | "function-bind": "^1.1.1", 168 | "get-intrinsic": "^1.0.2" 169 | } 170 | }, 171 | "chalk": { 172 | "version": "2.4.2", 173 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 174 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 175 | "dev": true, 176 | "requires": { 177 | "ansi-styles": "^3.2.1", 178 | "escape-string-regexp": "^1.0.5", 179 | "supports-color": "^5.3.0" 180 | } 181 | }, 182 | "cheerio": { 183 | "version": "1.0.0-rc.12", 184 | "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.12.tgz", 185 | "integrity": "sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==", 186 | "dev": true, 187 | "requires": { 188 | "cheerio-select": "^2.1.0", 189 | "dom-serializer": "^2.0.0", 190 | "domhandler": "^5.0.3", 191 | "domutils": "^3.0.1", 192 | "htmlparser2": "^8.0.1", 193 | "parse5": "^7.0.0", 194 | "parse5-htmlparser2-tree-adapter": "^7.0.0" 195 | } 196 | }, 197 | "cheerio-select": { 198 | "version": "2.1.0", 199 | "resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-2.1.0.tgz", 200 | "integrity": "sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==", 201 | "dev": true, 202 | "requires": { 203 | "boolbase": "^1.0.0", 204 | "css-select": "^5.1.0", 205 | "css-what": "^6.1.0", 206 | "domelementtype": "^2.3.0", 207 | "domhandler": "^5.0.3", 208 | "domutils": "^3.0.1" 209 | } 210 | }, 211 | "chownr": { 212 | "version": "1.1.4", 213 | "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", 214 | "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", 215 | "dev": true 216 | }, 217 | "color-convert": { 218 | "version": "1.9.3", 219 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 220 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 221 | "dev": true, 222 | "requires": { 223 | "color-name": "1.1.3" 224 | } 225 | }, 226 | "color-name": { 227 | "version": "1.1.3", 228 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 229 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", 230 | "dev": true 231 | }, 232 | "commander": { 233 | "version": "2.20.3", 234 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", 235 | "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", 236 | "dev": true 237 | }, 238 | "concat-map": { 239 | "version": "0.0.1", 240 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 241 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 242 | "dev": true 243 | }, 244 | "css-select": { 245 | "version": "5.1.0", 246 | "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz", 247 | "integrity": "sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==", 248 | "dev": true, 249 | "requires": { 250 | "boolbase": "^1.0.0", 251 | "css-what": "^6.1.0", 252 | "domhandler": "^5.0.2", 253 | "domutils": "^3.0.1", 254 | "nth-check": "^2.0.1" 255 | } 256 | }, 257 | "css-what": { 258 | "version": "6.1.0", 259 | "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", 260 | "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", 261 | "dev": true 262 | }, 263 | "debug": { 264 | "version": "4.3.1", 265 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", 266 | "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==", 267 | "dev": true, 268 | "requires": { 269 | "ms": "2.1.2" 270 | } 271 | }, 272 | "decompress-response": { 273 | "version": "6.0.0", 274 | "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", 275 | "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", 276 | "dev": true, 277 | "requires": { 278 | "mimic-response": "^3.1.0" 279 | } 280 | }, 281 | "deep-extend": { 282 | "version": "0.6.0", 283 | "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", 284 | "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", 285 | "dev": true 286 | }, 287 | "detect-libc": { 288 | "version": "2.0.1", 289 | "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.1.tgz", 290 | "integrity": "sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==", 291 | "dev": true 292 | }, 293 | "diff": { 294 | "version": "4.0.2", 295 | "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", 296 | "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", 297 | "dev": true 298 | }, 299 | "dom-serializer": { 300 | "version": "2.0.0", 301 | "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", 302 | "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", 303 | "dev": true, 304 | "requires": { 305 | "domelementtype": "^2.3.0", 306 | "domhandler": "^5.0.2", 307 | "entities": "^4.2.0" 308 | } 309 | }, 310 | "domelementtype": { 311 | "version": "2.3.0", 312 | "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", 313 | "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", 314 | "dev": true 315 | }, 316 | "domhandler": { 317 | "version": "5.0.3", 318 | "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", 319 | "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", 320 | "dev": true, 321 | "requires": { 322 | "domelementtype": "^2.3.0" 323 | } 324 | }, 325 | "domutils": { 326 | "version": "3.0.1", 327 | "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.0.1.tgz", 328 | "integrity": "sha512-z08c1l761iKhDFtfXO04C7kTdPBLi41zwOZl00WS8b5eiaebNpY00HKbztwBq+e3vyqWNwWF3mP9YLUeqIrF+Q==", 329 | "dev": true, 330 | "requires": { 331 | "dom-serializer": "^2.0.0", 332 | "domelementtype": "^2.3.0", 333 | "domhandler": "^5.0.1" 334 | } 335 | }, 336 | "end-of-stream": { 337 | "version": "1.4.4", 338 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", 339 | "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", 340 | "dev": true, 341 | "requires": { 342 | "once": "^1.4.0" 343 | } 344 | }, 345 | "entities": { 346 | "version": "4.4.0", 347 | "resolved": "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz", 348 | "integrity": "sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA==", 349 | "dev": true 350 | }, 351 | "es6-promise": { 352 | "version": "4.2.8", 353 | "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", 354 | "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==", 355 | "dev": true 356 | }, 357 | "es6-promisify": { 358 | "version": "5.0.0", 359 | "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz", 360 | "integrity": "sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM=", 361 | "dev": true, 362 | "requires": { 363 | "es6-promise": "^4.0.3" 364 | } 365 | }, 366 | "escape-string-regexp": { 367 | "version": "1.0.5", 368 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 369 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", 370 | "dev": true 371 | }, 372 | "esprima": { 373 | "version": "4.0.1", 374 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", 375 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", 376 | "dev": true 377 | }, 378 | "expand-template": { 379 | "version": "2.0.3", 380 | "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz", 381 | "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==", 382 | "dev": true 383 | }, 384 | "fd-slicer": { 385 | "version": "1.1.0", 386 | "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", 387 | "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", 388 | "dev": true, 389 | "requires": { 390 | "pend": "~1.2.0" 391 | } 392 | }, 393 | "fs-constants": { 394 | "version": "1.0.0", 395 | "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", 396 | "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", 397 | "dev": true 398 | }, 399 | "fs.realpath": { 400 | "version": "1.0.0", 401 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 402 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", 403 | "dev": true 404 | }, 405 | "function-bind": { 406 | "version": "1.1.1", 407 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", 408 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", 409 | "dev": true 410 | }, 411 | "get-intrinsic": { 412 | "version": "1.1.3", 413 | "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", 414 | "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", 415 | "dev": true, 416 | "requires": { 417 | "function-bind": "^1.1.1", 418 | "has": "^1.0.3", 419 | "has-symbols": "^1.0.3" 420 | } 421 | }, 422 | "github-from-package": { 423 | "version": "0.0.0", 424 | "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", 425 | "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==", 426 | "dev": true 427 | }, 428 | "glob": { 429 | "version": "7.1.6", 430 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", 431 | "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", 432 | "dev": true, 433 | "requires": { 434 | "fs.realpath": "^1.0.0", 435 | "inflight": "^1.0.4", 436 | "inherits": "2", 437 | "minimatch": "^3.0.4", 438 | "once": "^1.3.0", 439 | "path-is-absolute": "^1.0.0" 440 | } 441 | }, 442 | "growl": { 443 | "version": "1.10.5", 444 | "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", 445 | "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", 446 | "dev": true 447 | }, 448 | "has": { 449 | "version": "1.0.3", 450 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", 451 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", 452 | "dev": true, 453 | "requires": { 454 | "function-bind": "^1.1.1" 455 | } 456 | }, 457 | "has-flag": { 458 | "version": "3.0.0", 459 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 460 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", 461 | "dev": true 462 | }, 463 | "has-symbols": { 464 | "version": "1.0.3", 465 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", 466 | "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", 467 | "dev": true 468 | }, 469 | "he": { 470 | "version": "1.1.1", 471 | "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz", 472 | "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=", 473 | "dev": true 474 | }, 475 | "hosted-git-info": { 476 | "version": "4.1.0", 477 | "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", 478 | "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", 479 | "dev": true, 480 | "requires": { 481 | "lru-cache": "^6.0.0" 482 | } 483 | }, 484 | "htmlparser2": { 485 | "version": "8.0.1", 486 | "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.1.tgz", 487 | "integrity": "sha512-4lVbmc1diZC7GUJQtRQ5yBAeUCL1exyMwmForWkRLnwyzWBFxN633SALPMGYaWZvKe9j1pRZJpauvmxENSp/EA==", 488 | "dev": true, 489 | "requires": { 490 | "domelementtype": "^2.3.0", 491 | "domhandler": "^5.0.2", 492 | "domutils": "^3.0.1", 493 | "entities": "^4.3.0" 494 | } 495 | }, 496 | "http-proxy-agent": { 497 | "version": "4.0.1", 498 | "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", 499 | "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", 500 | "dev": true, 501 | "requires": { 502 | "@tootallnate/once": "1", 503 | "agent-base": "6", 504 | "debug": "4" 505 | } 506 | }, 507 | "https-proxy-agent": { 508 | "version": "5.0.0", 509 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", 510 | "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", 511 | "dev": true, 512 | "requires": { 513 | "agent-base": "6", 514 | "debug": "4" 515 | } 516 | }, 517 | "ieee754": { 518 | "version": "1.2.1", 519 | "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", 520 | "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", 521 | "dev": true 522 | }, 523 | "inflight": { 524 | "version": "1.0.6", 525 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 526 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 527 | "dev": true, 528 | "requires": { 529 | "once": "^1.3.0", 530 | "wrappy": "1" 531 | } 532 | }, 533 | "inherits": { 534 | "version": "2.0.4", 535 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 536 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 537 | "dev": true 538 | }, 539 | "ini": { 540 | "version": "1.3.8", 541 | "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", 542 | "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", 543 | "dev": true 544 | }, 545 | "js-tokens": { 546 | "version": "4.0.0", 547 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", 548 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", 549 | "dev": true 550 | }, 551 | "js-yaml": { 552 | "version": "3.13.1", 553 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", 554 | "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", 555 | "dev": true, 556 | "requires": { 557 | "argparse": "^1.0.7", 558 | "esprima": "^4.0.0" 559 | } 560 | }, 561 | "keytar": { 562 | "version": "7.9.0", 563 | "resolved": "https://registry.npmjs.org/keytar/-/keytar-7.9.0.tgz", 564 | "integrity": "sha512-VPD8mtVtm5JNtA2AErl6Chp06JBfy7diFQ7TQQhdpWOl6MrCRB+eRbvAZUsbGQS9kiMq0coJsy0W0vHpDCkWsQ==", 565 | "dev": true, 566 | "requires": { 567 | "node-addon-api": "^4.3.0", 568 | "prebuild-install": "^7.0.1" 569 | } 570 | }, 571 | "leven": { 572 | "version": "3.1.0", 573 | "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", 574 | "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", 575 | "dev": true 576 | }, 577 | "linkify-it": { 578 | "version": "3.0.3", 579 | "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-3.0.3.tgz", 580 | "integrity": "sha512-ynTsyrFSdE5oZ/O9GEf00kPngmOfVwazR5GKDq6EYfhlpFug3J2zybX56a2PRRpc9P+FuSoGNAwjlbDs9jJBPQ==", 581 | "dev": true, 582 | "requires": { 583 | "uc.micro": "^1.0.1" 584 | } 585 | }, 586 | "lru-cache": { 587 | "version": "6.0.0", 588 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 589 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 590 | "dev": true, 591 | "requires": { 592 | "yallist": "^4.0.0" 593 | } 594 | }, 595 | "markdown-it": { 596 | "version": "12.3.2", 597 | "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-12.3.2.tgz", 598 | "integrity": "sha512-TchMembfxfNVpHkbtriWltGWc+m3xszaRD0CZup7GFFhzIgQqxIfn3eGj1yZpfuflzPvfkt611B2Q/Bsk1YnGg==", 599 | "dev": true, 600 | "requires": { 601 | "argparse": "^2.0.1", 602 | "entities": "~2.1.0", 603 | "linkify-it": "^3.0.1", 604 | "mdurl": "^1.0.1", 605 | "uc.micro": "^1.0.5" 606 | }, 607 | "dependencies": { 608 | "argparse": { 609 | "version": "2.0.1", 610 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 611 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 612 | "dev": true 613 | }, 614 | "entities": { 615 | "version": "2.1.0", 616 | "resolved": "https://registry.npmjs.org/entities/-/entities-2.1.0.tgz", 617 | "integrity": "sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==", 618 | "dev": true 619 | } 620 | } 621 | }, 622 | "mdurl": { 623 | "version": "1.0.1", 624 | "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", 625 | "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==", 626 | "dev": true 627 | }, 628 | "mime": { 629 | "version": "1.6.0", 630 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 631 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", 632 | "dev": true 633 | }, 634 | "mimic-response": { 635 | "version": "3.1.0", 636 | "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", 637 | "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", 638 | "dev": true 639 | }, 640 | "minimatch": { 641 | "version": "3.0.4", 642 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 643 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 644 | "dev": true, 645 | "requires": { 646 | "brace-expansion": "^1.1.7" 647 | } 648 | }, 649 | "minimist": { 650 | "version": "1.2.5", 651 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", 652 | "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", 653 | "dev": true 654 | }, 655 | "mkdirp": { 656 | "version": "0.5.5", 657 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", 658 | "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", 659 | "dev": true, 660 | "requires": { 661 | "minimist": "^1.2.5" 662 | } 663 | }, 664 | "mkdirp-classic": { 665 | "version": "0.5.3", 666 | "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", 667 | "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", 668 | "dev": true 669 | }, 670 | "mocha": { 671 | "version": "5.2.0", 672 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-5.2.0.tgz", 673 | "integrity": "sha512-2IUgKDhc3J7Uug+FxMXuqIyYzH7gJjXECKe/w43IGgQHTSj3InJi+yAA7T24L9bQMRKiUEHxEX37G5JpVUGLcQ==", 674 | "dev": true, 675 | "requires": { 676 | "browser-stdout": "1.3.1", 677 | "commander": "2.15.1", 678 | "debug": "3.1.0", 679 | "diff": "3.5.0", 680 | "escape-string-regexp": "1.0.5", 681 | "glob": "7.1.2", 682 | "growl": "1.10.5", 683 | "he": "1.1.1", 684 | "minimatch": "3.0.4", 685 | "mkdirp": "0.5.1", 686 | "supports-color": "5.4.0" 687 | }, 688 | "dependencies": { 689 | "commander": { 690 | "version": "2.15.1", 691 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", 692 | "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", 693 | "dev": true 694 | }, 695 | "debug": { 696 | "version": "3.1.0", 697 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", 698 | "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", 699 | "dev": true, 700 | "requires": { 701 | "ms": "2.0.0" 702 | } 703 | }, 704 | "diff": { 705 | "version": "3.5.0", 706 | "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", 707 | "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", 708 | "dev": true 709 | }, 710 | "glob": { 711 | "version": "7.1.2", 712 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", 713 | "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", 714 | "dev": true, 715 | "requires": { 716 | "fs.realpath": "^1.0.0", 717 | "inflight": "^1.0.4", 718 | "inherits": "2", 719 | "minimatch": "^3.0.4", 720 | "once": "^1.3.0", 721 | "path-is-absolute": "^1.0.0" 722 | } 723 | }, 724 | "minimist": { 725 | "version": "0.0.8", 726 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", 727 | "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", 728 | "dev": true 729 | }, 730 | "mkdirp": { 731 | "version": "0.5.1", 732 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", 733 | "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", 734 | "dev": true, 735 | "requires": { 736 | "minimist": "0.0.8" 737 | } 738 | }, 739 | "ms": { 740 | "version": "2.0.0", 741 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 742 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", 743 | "dev": true 744 | }, 745 | "supports-color": { 746 | "version": "5.4.0", 747 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", 748 | "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", 749 | "dev": true, 750 | "requires": { 751 | "has-flag": "^3.0.0" 752 | } 753 | } 754 | } 755 | }, 756 | "ms": { 757 | "version": "2.1.2", 758 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 759 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 760 | "dev": true 761 | }, 762 | "mute-stream": { 763 | "version": "0.0.8", 764 | "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", 765 | "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", 766 | "dev": true 767 | }, 768 | "napi-build-utils": { 769 | "version": "1.0.2", 770 | "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz", 771 | "integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==", 772 | "dev": true 773 | }, 774 | "node-abi": { 775 | "version": "3.30.0", 776 | "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.30.0.tgz", 777 | "integrity": "sha512-qWO5l3SCqbwQavymOmtTVuCWZE23++S+rxyoHjXqUmPyzRcaoI4lA2gO55/drddGnedAyjA7sk76SfQ5lfUMnw==", 778 | "dev": true, 779 | "requires": { 780 | "semver": "^7.3.5" 781 | }, 782 | "dependencies": { 783 | "semver": { 784 | "version": "7.3.8", 785 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", 786 | "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", 787 | "dev": true, 788 | "requires": { 789 | "lru-cache": "^6.0.0" 790 | } 791 | } 792 | } 793 | }, 794 | "node-addon-api": { 795 | "version": "4.3.0", 796 | "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-4.3.0.tgz", 797 | "integrity": "sha512-73sE9+3UaLYYFmDsFZnqCInzPyh3MqIwZO9cw58yIqAZhONrrabrYyYe3TuIqtIiOuTXVhsGau8hcrhhwSsDIQ==", 798 | "dev": true 799 | }, 800 | "nth-check": { 801 | "version": "2.1.1", 802 | "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", 803 | "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", 804 | "dev": true, 805 | "requires": { 806 | "boolbase": "^1.0.0" 807 | } 808 | }, 809 | "object-inspect": { 810 | "version": "1.12.2", 811 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", 812 | "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", 813 | "dev": true 814 | }, 815 | "once": { 816 | "version": "1.4.0", 817 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 818 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 819 | "dev": true, 820 | "requires": { 821 | "wrappy": "1" 822 | } 823 | }, 824 | "parse-semver": { 825 | "version": "1.1.1", 826 | "resolved": "https://registry.npmjs.org/parse-semver/-/parse-semver-1.1.1.tgz", 827 | "integrity": "sha512-Eg1OuNntBMH0ojvEKSrvDSnwLmvVuUOSdylH/pSCPNMIspLlweJyIWXCE+k/5hm3cj/EBUYwmWkjhBALNP4LXQ==", 828 | "dev": true, 829 | "requires": { 830 | "semver": "^5.1.0" 831 | } 832 | }, 833 | "parse5": { 834 | "version": "7.1.2", 835 | "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", 836 | "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", 837 | "dev": true, 838 | "requires": { 839 | "entities": "^4.4.0" 840 | } 841 | }, 842 | "parse5-htmlparser2-tree-adapter": { 843 | "version": "7.0.0", 844 | "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.0.0.tgz", 845 | "integrity": "sha512-B77tOZrqqfUfnVcOrUvfdLbz4pu4RopLD/4vmu3HUPswwTA8OH0EMW9BlWR2B0RCoiZRAHEUu7IxeP1Pd1UU+g==", 846 | "dev": true, 847 | "requires": { 848 | "domhandler": "^5.0.2", 849 | "parse5": "^7.0.0" 850 | } 851 | }, 852 | "path-is-absolute": { 853 | "version": "1.0.1", 854 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 855 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 856 | "dev": true 857 | }, 858 | "path-parse": { 859 | "version": "1.0.7", 860 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", 861 | "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", 862 | "dev": true 863 | }, 864 | "pend": { 865 | "version": "1.2.0", 866 | "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", 867 | "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", 868 | "dev": true 869 | }, 870 | "prebuild-install": { 871 | "version": "7.1.1", 872 | "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.1.tgz", 873 | "integrity": "sha512-jAXscXWMcCK8GgCoHOfIr0ODh5ai8mj63L2nWrjuAgXE6tDyYGnx4/8o/rCgU+B4JSyZBKbeZqzhtwtC3ovxjw==", 874 | "dev": true, 875 | "requires": { 876 | "detect-libc": "^2.0.0", 877 | "expand-template": "^2.0.3", 878 | "github-from-package": "0.0.0", 879 | "minimist": "^1.2.3", 880 | "mkdirp-classic": "^0.5.3", 881 | "napi-build-utils": "^1.0.1", 882 | "node-abi": "^3.3.0", 883 | "pump": "^3.0.0", 884 | "rc": "^1.2.7", 885 | "simple-get": "^4.0.0", 886 | "tar-fs": "^2.0.0", 887 | "tunnel-agent": "^0.6.0" 888 | } 889 | }, 890 | "pump": { 891 | "version": "3.0.0", 892 | "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", 893 | "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", 894 | "dev": true, 895 | "requires": { 896 | "end-of-stream": "^1.1.0", 897 | "once": "^1.3.1" 898 | } 899 | }, 900 | "qs": { 901 | "version": "6.11.0", 902 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", 903 | "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", 904 | "dev": true, 905 | "requires": { 906 | "side-channel": "^1.0.4" 907 | } 908 | }, 909 | "rc": { 910 | "version": "1.2.8", 911 | "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", 912 | "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", 913 | "dev": true, 914 | "requires": { 915 | "deep-extend": "^0.6.0", 916 | "ini": "~1.3.0", 917 | "minimist": "^1.2.0", 918 | "strip-json-comments": "~2.0.1" 919 | } 920 | }, 921 | "read": { 922 | "version": "1.0.7", 923 | "resolved": "https://registry.npmjs.org/read/-/read-1.0.7.tgz", 924 | "integrity": "sha512-rSOKNYUmaxy0om1BNjMN4ezNT6VKK+2xF4GBhc81mkH7L60i6dp8qPYrkndNLT3QPphoII3maL9PVC9XmhHwVQ==", 925 | "dev": true, 926 | "requires": { 927 | "mute-stream": "~0.0.4" 928 | } 929 | }, 930 | "readable-stream": { 931 | "version": "3.6.0", 932 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", 933 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", 934 | "dev": true, 935 | "requires": { 936 | "inherits": "^2.0.3", 937 | "string_decoder": "^1.1.1", 938 | "util-deprecate": "^1.0.1" 939 | } 940 | }, 941 | "resolve": { 942 | "version": "1.15.1", 943 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.15.1.tgz", 944 | "integrity": "sha512-84oo6ZTtoTUpjgNEr5SJyzQhzL72gaRodsSfyxC/AXRvwu0Yse9H8eF9IpGo7b8YetZhlI6v7ZQ6bKBFV/6S7w==", 945 | "dev": true, 946 | "requires": { 947 | "path-parse": "^1.0.6" 948 | } 949 | }, 950 | "rimraf": { 951 | "version": "3.0.2", 952 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", 953 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", 954 | "dev": true, 955 | "requires": { 956 | "glob": "^7.1.3" 957 | } 958 | }, 959 | "safe-buffer": { 960 | "version": "5.2.1", 961 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 962 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 963 | "dev": true 964 | }, 965 | "sax": { 966 | "version": "1.2.4", 967 | "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", 968 | "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", 969 | "dev": true 970 | }, 971 | "semver": { 972 | "version": "5.7.1", 973 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", 974 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", 975 | "dev": true 976 | }, 977 | "side-channel": { 978 | "version": "1.0.4", 979 | "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", 980 | "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", 981 | "dev": true, 982 | "requires": { 983 | "call-bind": "^1.0.0", 984 | "get-intrinsic": "^1.0.2", 985 | "object-inspect": "^1.9.0" 986 | } 987 | }, 988 | "simple-concat": { 989 | "version": "1.0.1", 990 | "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", 991 | "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", 992 | "dev": true 993 | }, 994 | "simple-get": { 995 | "version": "4.0.1", 996 | "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz", 997 | "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==", 998 | "dev": true, 999 | "requires": { 1000 | "decompress-response": "^6.0.0", 1001 | "once": "^1.3.1", 1002 | "simple-concat": "^1.0.0" 1003 | } 1004 | }, 1005 | "source-map": { 1006 | "version": "0.6.1", 1007 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", 1008 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", 1009 | "dev": true 1010 | }, 1011 | "source-map-support": { 1012 | "version": "0.5.19", 1013 | "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz", 1014 | "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==", 1015 | "dev": true, 1016 | "requires": { 1017 | "buffer-from": "^1.0.0", 1018 | "source-map": "^0.6.0" 1019 | } 1020 | }, 1021 | "sprintf-js": { 1022 | "version": "1.0.3", 1023 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 1024 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", 1025 | "dev": true 1026 | }, 1027 | "string_decoder": { 1028 | "version": "1.3.0", 1029 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", 1030 | "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", 1031 | "dev": true, 1032 | "requires": { 1033 | "safe-buffer": "~5.2.0" 1034 | } 1035 | }, 1036 | "strip-json-comments": { 1037 | "version": "2.0.1", 1038 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", 1039 | "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", 1040 | "dev": true 1041 | }, 1042 | "supports-color": { 1043 | "version": "5.5.0", 1044 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 1045 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 1046 | "dev": true, 1047 | "requires": { 1048 | "has-flag": "^3.0.0" 1049 | } 1050 | }, 1051 | "tar-fs": { 1052 | "version": "2.1.1", 1053 | "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", 1054 | "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", 1055 | "dev": true, 1056 | "requires": { 1057 | "chownr": "^1.1.1", 1058 | "mkdirp-classic": "^0.5.2", 1059 | "pump": "^3.0.0", 1060 | "tar-stream": "^2.1.4" 1061 | } 1062 | }, 1063 | "tar-stream": { 1064 | "version": "2.2.0", 1065 | "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", 1066 | "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", 1067 | "dev": true, 1068 | "requires": { 1069 | "bl": "^4.0.3", 1070 | "end-of-stream": "^1.4.1", 1071 | "fs-constants": "^1.0.0", 1072 | "inherits": "^2.0.3", 1073 | "readable-stream": "^3.1.1" 1074 | } 1075 | }, 1076 | "tmp": { 1077 | "version": "0.2.1", 1078 | "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", 1079 | "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==", 1080 | "dev": true, 1081 | "requires": { 1082 | "rimraf": "^3.0.0" 1083 | } 1084 | }, 1085 | "tslib": { 1086 | "version": "1.11.1", 1087 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.11.1.tgz", 1088 | "integrity": "sha512-aZW88SY8kQbU7gpV19lN24LtXh/yD4ZZg6qieAJDDg+YBsJcSmLGK9QpnUjAKVG/xefmvJGd1WUmfpT/g6AJGA==", 1089 | "dev": true 1090 | }, 1091 | "tslint": { 1092 | "version": "5.20.1", 1093 | "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.1.tgz", 1094 | "integrity": "sha512-EcMxhzCFt8k+/UP5r8waCf/lzmeSyVlqxqMEDQE7rWYiQky8KpIBz1JAoYXfROHrPZ1XXd43q8yQnULOLiBRQg==", 1095 | "dev": true, 1096 | "requires": { 1097 | "@babel/code-frame": "^7.0.0", 1098 | "builtin-modules": "^1.1.1", 1099 | "chalk": "^2.3.0", 1100 | "commander": "^2.12.1", 1101 | "diff": "^4.0.1", 1102 | "glob": "^7.1.1", 1103 | "js-yaml": "^3.13.1", 1104 | "minimatch": "^3.0.4", 1105 | "mkdirp": "^0.5.1", 1106 | "resolve": "^1.3.2", 1107 | "semver": "^5.3.0", 1108 | "tslib": "^1.8.0", 1109 | "tsutils": "^2.29.0" 1110 | } 1111 | }, 1112 | "tsutils": { 1113 | "version": "2.29.0", 1114 | "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", 1115 | "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", 1116 | "dev": true, 1117 | "requires": { 1118 | "tslib": "^1.8.1" 1119 | } 1120 | }, 1121 | "tunnel": { 1122 | "version": "0.0.6", 1123 | "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", 1124 | "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==", 1125 | "dev": true 1126 | }, 1127 | "tunnel-agent": { 1128 | "version": "0.6.0", 1129 | "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", 1130 | "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", 1131 | "dev": true, 1132 | "requires": { 1133 | "safe-buffer": "^5.0.1" 1134 | } 1135 | }, 1136 | "typed-rest-client": { 1137 | "version": "1.8.9", 1138 | "resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.8.9.tgz", 1139 | "integrity": "sha512-uSmjE38B80wjL85UFX3sTYEUlvZ1JgCRhsWj/fJ4rZ0FqDUFoIuodtiVeE+cUqiVTOKPdKrp/sdftD15MDek6g==", 1140 | "dev": true, 1141 | "requires": { 1142 | "qs": "^6.9.1", 1143 | "tunnel": "0.0.6", 1144 | "underscore": "^1.12.1" 1145 | } 1146 | }, 1147 | "typescript": { 1148 | "version": "3.9.9", 1149 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.9.tgz", 1150 | "integrity": "sha512-kdMjTiekY+z/ubJCATUPlRDl39vXYiMV9iyeMuEuXZh2we6zz80uovNN2WlAxmmdE/Z/YQe+EbOEXB5RHEED3w==", 1151 | "dev": true 1152 | }, 1153 | "uc.micro": { 1154 | "version": "1.0.6", 1155 | "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz", 1156 | "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==", 1157 | "dev": true 1158 | }, 1159 | "underscore": { 1160 | "version": "1.13.6", 1161 | "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.6.tgz", 1162 | "integrity": "sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A==", 1163 | "dev": true 1164 | }, 1165 | "url-join": { 1166 | "version": "4.0.1", 1167 | "resolved": "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz", 1168 | "integrity": "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==", 1169 | "dev": true 1170 | }, 1171 | "util-deprecate": { 1172 | "version": "1.0.2", 1173 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 1174 | "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", 1175 | "dev": true 1176 | }, 1177 | "vsce": { 1178 | "version": "2.15.0", 1179 | "resolved": "https://registry.npmjs.org/vsce/-/vsce-2.15.0.tgz", 1180 | "integrity": "sha512-P8E9LAZvBCQnoGoizw65JfGvyMqNGlHdlUXD1VAuxtvYAaHBKLBdKPnpy60XKVDAkQCfmMu53g+gq9FM+ydepw==", 1181 | "dev": true, 1182 | "requires": { 1183 | "azure-devops-node-api": "^11.0.1", 1184 | "chalk": "^2.4.2", 1185 | "cheerio": "^1.0.0-rc.9", 1186 | "commander": "^6.1.0", 1187 | "glob": "^7.0.6", 1188 | "hosted-git-info": "^4.0.2", 1189 | "keytar": "^7.7.0", 1190 | "leven": "^3.1.0", 1191 | "markdown-it": "^12.3.2", 1192 | "mime": "^1.3.4", 1193 | "minimatch": "^3.0.3", 1194 | "parse-semver": "^1.1.1", 1195 | "read": "^1.0.7", 1196 | "semver": "^5.1.0", 1197 | "tmp": "^0.2.1", 1198 | "typed-rest-client": "^1.8.4", 1199 | "url-join": "^4.0.1", 1200 | "xml2js": "^0.4.23", 1201 | "yauzl": "^2.3.1", 1202 | "yazl": "^2.2.2" 1203 | }, 1204 | "dependencies": { 1205 | "commander": { 1206 | "version": "6.2.1", 1207 | "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", 1208 | "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==", 1209 | "dev": true 1210 | } 1211 | } 1212 | }, 1213 | "vscode": { 1214 | "version": "1.1.37", 1215 | "resolved": "https://registry.npmjs.org/vscode/-/vscode-1.1.37.tgz", 1216 | "integrity": "sha512-vJNj6IlN7IJPdMavlQa1KoFB3Ihn06q1AiN3ZFI/HfzPNzbKZWPPuiU+XkpNOfGU5k15m4r80nxNPlM7wcc0wg==", 1217 | "dev": true, 1218 | "requires": { 1219 | "glob": "^7.1.2", 1220 | "http-proxy-agent": "^4.0.1", 1221 | "https-proxy-agent": "^5.0.0", 1222 | "mocha": "^5.2.0", 1223 | "semver": "^5.4.1", 1224 | "source-map-support": "^0.5.0", 1225 | "vscode-test": "^0.4.1" 1226 | } 1227 | }, 1228 | "vscode-test": { 1229 | "version": "0.4.3", 1230 | "resolved": "https://registry.npmjs.org/vscode-test/-/vscode-test-0.4.3.tgz", 1231 | "integrity": "sha512-EkMGqBSefZH2MgW65nY05rdRSko15uvzq4VAPM5jVmwYuFQKE7eikKXNJDRxL+OITXHB6pI+a3XqqD32Y3KC5w==", 1232 | "dev": true, 1233 | "requires": { 1234 | "http-proxy-agent": "^2.1.0", 1235 | "https-proxy-agent": "^2.2.1" 1236 | }, 1237 | "dependencies": { 1238 | "agent-base": { 1239 | "version": "4.3.0", 1240 | "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", 1241 | "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==", 1242 | "dev": true, 1243 | "requires": { 1244 | "es6-promisify": "^5.0.0" 1245 | } 1246 | }, 1247 | "debug": { 1248 | "version": "3.1.0", 1249 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", 1250 | "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", 1251 | "dev": true, 1252 | "requires": { 1253 | "ms": "2.0.0" 1254 | } 1255 | }, 1256 | "http-proxy-agent": { 1257 | "version": "2.1.0", 1258 | "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-2.1.0.tgz", 1259 | "integrity": "sha512-qwHbBLV7WviBl0rQsOzH6o5lwyOIvwp/BdFnvVxXORldu5TmjFfjzBcWUWS5kWAZhmv+JtiDhSuQCp4sBfbIgg==", 1260 | "dev": true, 1261 | "requires": { 1262 | "agent-base": "4", 1263 | "debug": "3.1.0" 1264 | } 1265 | }, 1266 | "https-proxy-agent": { 1267 | "version": "2.2.4", 1268 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz", 1269 | "integrity": "sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg==", 1270 | "dev": true, 1271 | "requires": { 1272 | "agent-base": "^4.3.0", 1273 | "debug": "^3.1.0" 1274 | } 1275 | }, 1276 | "ms": { 1277 | "version": "2.0.0", 1278 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1279 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", 1280 | "dev": true 1281 | } 1282 | } 1283 | }, 1284 | "wrappy": { 1285 | "version": "1.0.2", 1286 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1287 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", 1288 | "dev": true 1289 | }, 1290 | "xml2js": { 1291 | "version": "0.4.23", 1292 | "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.23.tgz", 1293 | "integrity": "sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==", 1294 | "dev": true, 1295 | "requires": { 1296 | "sax": ">=0.6.0", 1297 | "xmlbuilder": "~11.0.0" 1298 | } 1299 | }, 1300 | "xmlbuilder": { 1301 | "version": "11.0.1", 1302 | "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", 1303 | "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", 1304 | "dev": true 1305 | }, 1306 | "yallist": { 1307 | "version": "4.0.0", 1308 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 1309 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", 1310 | "dev": true 1311 | }, 1312 | "yauzl": { 1313 | "version": "2.10.0", 1314 | "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", 1315 | "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", 1316 | "dev": true, 1317 | "requires": { 1318 | "buffer-crc32": "~0.2.3", 1319 | "fd-slicer": "~1.1.0" 1320 | } 1321 | }, 1322 | "yazl": { 1323 | "version": "2.5.1", 1324 | "resolved": "https://registry.npmjs.org/yazl/-/yazl-2.5.1.tgz", 1325 | "integrity": "sha512-phENi2PLiHnHb6QBVot+dJnaAZ0xosj7p3fWl+znIjBDlnMI2PsZCJZ306BPTFOaHf5qdDEI8x5qFrSOBN5vrw==", 1326 | "dev": true, 1327 | "requires": { 1328 | "buffer-crc32": "~0.2.3" 1329 | } 1330 | } 1331 | } 1332 | } 1333 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "amx-netlinx", 3 | "displayName": "AMX Netlinx", 4 | "description": "Extension for AMX Netlinx. Includes syntax highlighting and compiling.", 5 | "version": "0.6.1", 6 | "publisher": "sentry07", 7 | "icon": "netlinx.png", 8 | "repository": { 9 | "type": "git", 10 | "url": "https://github.com/sentry07/vscode-amx-netlinx.git" 11 | }, 12 | "license": "GPL-3.0", 13 | "engines": { 14 | "vscode": "^1.28.0" 15 | }, 16 | "categories": [ 17 | "Programming Languages", 18 | "Snippets", 19 | "Formatters" 20 | ], 21 | "activationEvents": [ 22 | "onCommand:extension.netlinx_transfer", 23 | "onCommand:extension.netlinx_diag", 24 | "onCommand:extension.netlinx_help", 25 | "onCommand:extension.netlinx_openincludefolder", 26 | "onCommand:extension.netlinx_openlibraryfolder", 27 | "onCommand:extension.netlinx_openmodulefolder", 28 | "onCommand:workbench.action.tasks.runTask", 29 | "onLanguage:netlinx-source", 30 | "onLanguage:netlinx-library" 31 | ], 32 | "main": "./out/extension", 33 | "contributes": { 34 | "commands": [ 35 | { 36 | "command": "extension.netlinx_transfer", 37 | "title": "Open AMX File Transfer Utility" 38 | }, 39 | { 40 | "command": "extension.netlinx_diag", 41 | "title": "Open Netlinx Diagnostics" 42 | }, 43 | { 44 | "command": "extension.netlinx_help", 45 | "title": "Open Netlinx Help Reference" 46 | }, 47 | { 48 | "command": "extension.netlinx_openincludefolder", 49 | "title": "Open Global Include Folder in Workspace" 50 | }, 51 | { 52 | "command": "extension.netlinx_openlibraryfolder", 53 | "title": "Open Global Library Folder in Workspace" 54 | }, 55 | { 56 | "command": "extension.netlinx_openmodulefolder", 57 | "title": "Open Global Module Folder in Workspace" 58 | } 59 | ], 60 | "configuration": [ 61 | { 62 | "title": "Netlinx", 63 | "properties": { 64 | "netlinx.compilerLocation": { 65 | "type": "string", 66 | "default": "C:\\Program Files (x86)\\Common Files\\AMXShare\\COM\\NLRC.exe", 67 | "description": "Location of the Netlinx compiler. Please use double \\\\ for the path." 68 | }, 69 | "netlinx.transferLocation": { 70 | "type": "string", 71 | "default": "C:\\Program Files (x86)\\AMX Control Disc\\FileTransfer 2\\FileTransfer2.exe", 72 | "description": "Location of the Netlinx File Transfer utility" 73 | }, 74 | "netlinx.diagLocation": { 75 | "type": "string", 76 | "default": "C:\\Program Files (x86)\\AMX Control Disc\\NetLinx Diagnostics\\NlDiagsPgm.exe", 77 | "description": "Location of the Netlinx Diagnostics utility" 78 | }, 79 | "netlinx.helpLocation": { 80 | "type": "string", 81 | "default": "C:\\Program Files (x86)\\AMX Control Disc\\NetLinx Studio 4\\Netlinx-Keywords.chm", 82 | "description": "Location of the Netlinx Help reference" 83 | }, 84 | "netlinx.terminalLocation": { 85 | "type": "string", 86 | "default": "C:\\WINDOWS\\System32\\cmd.exe", 87 | "description": "Location of the default windows cmd.exe" 88 | }, 89 | "netlinx.includesLocation": { 90 | "type": "string", 91 | "default": "", 92 | "description": "Location of your global Netlinx includes folder for compiling. Leave blank if none." 93 | }, 94 | "netlinx.librariesLocation": { 95 | "type": "string", 96 | "default": "", 97 | "description": "Location of your global Netlinx libraries folder for compiling. Leave blank if none." 98 | }, 99 | "netlinx.modulesLocation": { 100 | "type": "string", 101 | "default": "", 102 | "description": "Location of your global Netlinx modules folder for compiling. Leave blank if none." 103 | } 104 | } 105 | } 106 | ], 107 | "menus": { 108 | "editor/context": [ 109 | { 110 | "command": "extension.netlinx_help", 111 | "group": "navigation@1", 112 | "when": "resourceLangId == netlinx-source" 113 | }, 114 | { 115 | "command": "extension.netlinx_help", 116 | "group": "navigation@1", 117 | "when": "resourceLangId == netlinx-library" 118 | }, 119 | { 120 | "command": "extension.netlinx_diag", 121 | "group": "navigation@2", 122 | "when": "resourceLangId == netlinx-source" 123 | }, 124 | { 125 | "command": "extension.netlinx_diag", 126 | "group": "navigation@2", 127 | "when": "resourceLangId == netlinx-library" 128 | }, 129 | { 130 | "command": "extension.netlinx_transfer", 131 | "group": "navigation@3", 132 | "when": "resourceLangId == netlinx-source" 133 | }, 134 | { 135 | "command": "extension.netlinx_transfer", 136 | "group": "navigation@3", 137 | "when": "resourceLangId == netlinx-library" 138 | }, 139 | { 140 | "command": "extension.netlinx_openincludefolder", 141 | "group": "z_commands@1", 142 | "when": "resourceLangId == netlinx-source" 143 | }, 144 | { 145 | "command": "extension.netlinx_openincludefolder", 146 | "group": "z_commands@1", 147 | "when": "resourceLangId == netlinx-library" 148 | }, 149 | { 150 | "command": "extension.netlinx_openlibraryfolder", 151 | "group": "z_commands@2", 152 | "when": "resourceLangId == netlinx-source" 153 | }, 154 | { 155 | "command": "extension.netlinx_openlibraryfolder", 156 | "group": "z_commands@2", 157 | "when": "resourceLangId == netlinx-library" 158 | }, 159 | { 160 | "command": "extension.netlinx_openmodulefolder", 161 | "group": "z_commands@3", 162 | "when": "resourceLangId == netlinx-source" 163 | }, 164 | { 165 | "command": "extension.netlinx_openmodulefolder", 166 | "group": "z_commands@3", 167 | "when": "resourceLangId == netlinx-library" 168 | } 169 | ] 170 | }, 171 | "keybindings": [ 172 | { 173 | "command": "extension.netlinx_openmodulefolder", 174 | "key": "ctrl+shift+f7", 175 | "when": "resourceLangId == netlinx-source" 176 | }, 177 | { 178 | "command": "extension.netlinx_openmodulefolder", 179 | "key": "ctrl+shift+f7", 180 | "when": "resourceLangId == netlinx-library" 181 | }, 182 | { 183 | "command": "extension.netlinx_openlibraryfolder", 184 | "key": "ctrl+shift+f6", 185 | "when": "resourceLangId == netlinx-source" 186 | }, 187 | { 188 | "command": "extension.netlinx_openlibraryfolder", 189 | "key": "ctrl+shift+f6", 190 | "when": "resourceLangId == netlinx-library" 191 | }, 192 | { 193 | "command": "extension.netlinx_openincludefolder", 194 | "key": "ctrl+shift+f5", 195 | "when": "resourceLangId == netlinx-source" 196 | }, 197 | { 198 | "command": "extension.netlinx_openincludefolder", 199 | "key": "ctrl+shift+f5", 200 | "when": "resourceLangId == netlinx-library" 201 | }, 202 | { 203 | "command": "extension.netlinx_transfer", 204 | "key": "ctrl+shift+f4", 205 | "when": "resourceLangId == netlinx-source" 206 | }, 207 | { 208 | "command": "extension.netlinx_transfer", 209 | "key": "ctrl+shift+f4", 210 | "when": "resourceLangId == netlinx-library" 211 | }, 212 | { 213 | "command": "extension.netlinx_diag", 214 | "key": "ctrl+shift+f3", 215 | "when": "resourceLangId == netlinx-source" 216 | }, 217 | { 218 | "command": "extension.netlinx_diag", 219 | "key": "ctrl+shift+f3", 220 | "when": "resourceLangId == netlinx-library" 221 | }, 222 | { 223 | "command": "extension.netlinx_help", 224 | "key": "ctrl+shift+f1", 225 | "when": "resourceLangId == netlinx-source" 226 | }, 227 | { 228 | "command": "extension.netlinx_help", 229 | "key": "ctrl+shift+f1", 230 | "when": "resourceLangId == netlinx-library" 231 | } 232 | ], 233 | "languages": [ 234 | { 235 | "id": "netlinx-source", 236 | "aliases": [ 237 | "AMX Netlinx Source" 238 | ], 239 | "extensions": [ 240 | ".axs", 241 | ".axi" 242 | ], 243 | "configuration": "./language-configuration.json" 244 | }, 245 | { 246 | "id": "netlinx-library", 247 | "aliases": [ 248 | "AMX Netlinx Library" 249 | ], 250 | "extensions": [ 251 | ".axb", 252 | ".lib" 253 | ], 254 | "configuration": "./language-configuration.json" 255 | } 256 | ], 257 | "grammars": [ 258 | { 259 | "language": "netlinx-source", 260 | "scopeName": "source.netlinx", 261 | "path": "./syntaxes/amx-netlinx.tmLanguage.json" 262 | }, 263 | { 264 | "language": "netlinx-library", 265 | "scopeName": "source.netlinx", 266 | "path": "./syntaxes/amx-netlinx.tmLanguage.json" 267 | } 268 | ], 269 | "snippets": [ 270 | { 271 | "language": "netlinx-source", 272 | "path": "./snippets/snippets.json" 273 | }, 274 | { 275 | "language": "netlinx-library", 276 | "path": "./snippets/snippets.json" 277 | } 278 | ], 279 | "taskDefinitions": [ 280 | { 281 | "type": "netlinx", 282 | "properties": { 283 | "buildPath": { 284 | "type": "string" 285 | } 286 | } 287 | } 288 | ], 289 | "problemMatchers": [ 290 | { 291 | "name": "nlrc", 292 | "owner": "amx-netlinx", 293 | "fileLocation": [ 294 | "absolute" 295 | ], 296 | "pattern": { 297 | "regexp": "(?:ERROR|WARNING):\\s+(.*?)\\(([0-9]+)\\)([ \\w\\-:&,.\\[\\]]*)[\\v]?", 298 | "file": 1, 299 | "location": 2, 300 | "message": 3 301 | } 302 | } 303 | ], 304 | "configurationDefaults": { 305 | "[netlinx-source]": { 306 | "editor.wordBasedSuggestions": true, 307 | "editor.suggest.snippetsPreventQuickSuggestions": false, 308 | "editor.quickSuggestions": { 309 | "other": true, 310 | "comments": false, 311 | "strings": false 312 | }, 313 | "editor.snippetSuggestions": "top" 314 | }, 315 | "[netlinx-library]": { 316 | "editor.wordBasedSuggestions": true, 317 | "editor.suggest.snippetsPreventQuickSuggestions": false, 318 | "editor.quickSuggestions": { 319 | "other": true, 320 | "comments": false, 321 | "strings": false 322 | }, 323 | "editor.snippetSuggestions": "top" 324 | } 325 | } 326 | }, 327 | "scripts": { 328 | "compile": "tsc -p ./", 329 | "watch": "tsc -watch -p ./", 330 | "postinstall": "node ./node_modules/vscode/bin/install", 331 | "test": "npm run compile && node ./node_modules/vscode/bin/test" 332 | }, 333 | "devDependencies": { 334 | "@types/mocha": "^5.2.6", 335 | "@types/node": "^11.15.53", 336 | "tslint": "^5.14.0", 337 | "typescript": "^3.9.9", 338 | "vsce": "^2.15.0", 339 | "vscode": "^1.1.37" 340 | }, 341 | "__metadata": { 342 | "id": "sentry07.amx-netlinx", 343 | "publisherId": "sentry07", 344 | "publisherDisplayName": "Eric Walters" 345 | } 346 | } 347 | -------------------------------------------------------------------------------- /snippets/snippets.json: -------------------------------------------------------------------------------- 1 | { 2 | "Data_Event Codeblock":{ 3 | "prefix": "DATA_EVENT", 4 | "body": [ 5 | "DATA_EVENT[${1:device}]", 6 | "{", 7 | "\tONLINE:", 8 | "\t{", 9 | "\t\t$0", 10 | "\t}", 11 | "\tOFFLINE: { }", 12 | "\tCOMMAND: { }", 13 | "\tSTRING:", 14 | "\t{", 15 | "\t\t", 16 | "\t}", 17 | "}" 18 | ], 19 | "description": "Basic DATA_EVENT block" 20 | }, 21 | "Channel_Event Codeblock":{ 22 | "prefix": "channel_event", 23 | "body": [ 24 | "CHANNEL_EVENT[${1:device},${2:channel}]", 25 | "{", 26 | "\tON:", 27 | "\t{", 28 | "\t\t$0", 29 | "\t}", 30 | "\tOFF:", 31 | "\t{", 32 | "\t\t", 33 | "\t}", 34 | "}" 35 | ], 36 | "description": "Basic CHANNEL_EVENT block" 37 | }, 38 | "Level_Event Codeblock":{ 39 | "prefix": "level_event", 40 | "body": [ 41 | "LEVEL_EVENT[${1:device},${2:level}]", 42 | "{", 43 | "\tSTACK_VAR INTEGER nLevel", 44 | "\tnLevel = LEVEL.VALUE", 45 | "\t", 46 | "\t$0", 47 | "}" 48 | ], 49 | "description": "Basic LEVEL_EVENT block" 50 | }, 51 | "Timeline_Event Codeblock":{ 52 | "prefix": "timeline_event", 53 | "body": [ 54 | "TIMELINE_EVENT[${1:timeline}]", 55 | "{", 56 | "\t$0", 57 | "}" 58 | ], 59 | "description": "Basic TIMELINE_EVENT block" 60 | }, 61 | "Button Event Codeblock":{ 62 | "prefix": "button_event", 63 | "body": [ 64 | "BUTTON_EVENT[${1:device},${2:channel}]", 65 | "{", 66 | "\tPUSH:", 67 | "\t{", 68 | "\t\t$0", 69 | "\t}", 70 | "}" 71 | ], 72 | "description": "Basic BUTTON_EVENT block with PUSH" 73 | }, 74 | "Hold Event Codeblock":{ 75 | "prefix": "hold", 76 | "body": [ 77 | "HOLD[${1:time}${2:,REPEAT}]:", 78 | "{", 79 | "\t$0", 80 | "}" 81 | ], 82 | "description": "Basic HOLD event block" 83 | }, 84 | "Release Event Codeblock":{ 85 | "prefix": "release", 86 | "body": [ 87 | "RELEASE:", 88 | "{", 89 | "\t$0", 90 | "}" 91 | ], 92 | "description": "Basic RELEASE event block" 93 | }, 94 | "For Loop Codeblock":{ 95 | "prefix": "for", 96 | "body": [ 97 | "FOR (${1:var} = ${2:start}; ${1:var} <= ${3:end}; ${1:var}++)", 98 | "{", 99 | "\t$0", 100 | "}" 101 | ], 102 | "description": "Basic FOR loop block" 103 | }, 104 | "If Codeblock":{ 105 | "prefix": "if", 106 | "body": [ 107 | "IF (${1:conditional})", 108 | "{", 109 | "\t$0", 110 | "}" 111 | ], 112 | "description": "IF conditional block" 113 | }, 114 | "Else Codeblock":{ 115 | "prefix": "else", 116 | "body": [ 117 | "ELSE", 118 | "{", 119 | "\t$0", 120 | "}" 121 | ], 122 | "description": "ELSE code block" 123 | }, 124 | "Else If Codeblock":{ 125 | "prefix": "else if", 126 | "body": [ 127 | "ELSE IF (${1:conditional})", 128 | "{", 129 | "\t$0", 130 | "}" 131 | ], 132 | "description": "ELSE IF conditional block" 133 | }, 134 | "While Codeblock":{ 135 | "prefix": "while", 136 | "body": [ 137 | "WHILE (${1:conditional})", 138 | "{", 139 | "\t$0", 140 | "}" 141 | ], 142 | "description": "WHILE conditional block" 143 | }, 144 | "Switch Codeblock":{ 145 | "prefix": "switch", 146 | "body": [ 147 | "SWITCH (${1:variable})", 148 | "{", 149 | "\tCASE ${2:value}:", 150 | "\t{", 151 | "\t\t$0", 152 | "\t}", 153 | "}" 154 | ], 155 | "description": "SWITCH conditional block" 156 | }, 157 | "Case Codeblock":{ 158 | "prefix": "case", 159 | "body": [ 160 | "CASE ${2:value}:", 161 | "{", 162 | "\t$0", 163 | "}" 164 | ], 165 | "description": "CASE conditional block" 166 | }, 167 | "Select Codeblock":{ 168 | "prefix": "select", 169 | "body": [ 170 | "SELECT", 171 | "{", 172 | "\tACTIVE (${1:conditional}):", 173 | "\t{", 174 | "\t\t$0", 175 | "\t}", 176 | "}" 177 | ], 178 | "description": "SELECT conditional block" 179 | }, 180 | "Active Codeblock":{ 181 | "prefix": "active", 182 | "body": [ 183 | "ACTIVE (${2:value}):", 184 | "{", 185 | "\t$0", 186 | "}" 187 | ], 188 | "description": "ACTIVE conditional block" 189 | }, 190 | "Define_Function Codeblock":{ 191 | "prefix": "define_function", 192 | "body": [ 193 | "DEFINE_FUNCTION ${1:return_type} ${2:function_name} (${3:parameters})", 194 | "{", 195 | "\t$0", 196 | "}" 197 | ], 198 | "description": "DEFINE_FUNCTION code block" 199 | }, 200 | "Get_Last Function":{ 201 | "prefix": "get_last", 202 | "body": "GET_LAST(${1:array})$0", 203 | "description": "Get_Last() function call" 204 | }, 205 | "Length_Array Function":{ 206 | "prefix": "length_array", 207 | "body": "LENGTH_ARRAY(${1:var})$0", 208 | "description": "Length_Array() function call" 209 | }, 210 | "Max_Length_Array Function":{ 211 | "prefix": "max_length_array", 212 | "body": "MAX_LENGTH_ARRAY(${1:var})$0", 213 | "description": "Max_Length_Array() function call" 214 | }, 215 | "Set_Length_Array Function":{ 216 | "prefix": "set_length_array", 217 | "body": "SET_LENGTH_ARRAY(${1:var},${2:length})$0", 218 | "description": "Set_Length_Array() function call" 219 | }, 220 | "Length_String Function":{ 221 | "prefix": "length_string", 222 | "body": "LENGTH_STRING(${1:var})$0", 223 | "description": "Length_String() function call" 224 | }, 225 | "Find_String Function":{ 226 | "prefix": "find_string", 227 | "body": "FIND_STRING(${1:haystack},${2:needle},${3:startpos})$0", 228 | "description": "Find_String() function call" 229 | }, 230 | "Remove_String Function":{ 231 | "prefix": "remove_string", 232 | "body": "REMOVE_STRING(${1:haystack},${2:needle},${3:startpos})$0", 233 | "description": "Length_Array() function call" 234 | }, 235 | "Left_String Function":{ 236 | "prefix": "left_string", 237 | "body": "LEFT_STRING(${1:var},${2:length})$0", 238 | "description": "Left_String() function call" 239 | }, 240 | "Right_String Function":{ 241 | "prefix": "right_string", 242 | "body": "RIGHT_STRING(${1:var},${2:length})$0", 243 | "description": "Right_String() function call" 244 | }, 245 | "Mid_String Function":{ 246 | "prefix": "mid_string", 247 | "body": "MID_STRING(${1:var},${2:startpos},${3:endpos})$0", 248 | "description": "Mid_String() function call" 249 | }, 250 | "Integer Storage Type":{ 251 | "prefix": "integer", 252 | "body": "INTEGER $0", 253 | "description": "Integer variable type" 254 | }, 255 | "SInteger Storage Type":{ 256 | "prefix": "sinteger", 257 | "body": "SINTEGER $0", 258 | "description": "Signed Integer variable type" 259 | }, 260 | "Char Storage Type":{ 261 | "prefix": "char", 262 | "body": "CHAR $0", 263 | "description": "Char variable type" 264 | }, 265 | "Long Storage Type":{ 266 | "prefix": "long", 267 | "body": "LONG $0", 268 | "description": "Long variable type" 269 | }, 270 | "SLong Storage Type":{ 271 | "prefix": "slong", 272 | "body": "SLONG $0", 273 | "description": "SLong variable type" 274 | }, 275 | "Float Storage Type":{ 276 | "prefix": "float", 277 | "body": "FLOAT $0", 278 | "description": "Float variable type" 279 | }, 280 | "Double Storage Type":{ 281 | "prefix": "double", 282 | "body": "DOUBLE $0", 283 | "description": "Double variable type" 284 | }, 285 | "Local_Var Declaration":{ 286 | "prefix": "local_var", 287 | "body": "LOCAL_VAR $0", 288 | "description": "Local_Var context declaration" 289 | }, 290 | "Local_Var Integer Declaration":{ 291 | "prefix": "local_var integer", 292 | "body": "LOCAL_VAR INTEGER $0", 293 | "description": "Local_Var Integer variable declaration" 294 | }, 295 | "Local_Var SInteger Declaration":{ 296 | "prefix": "local_var sinteger", 297 | "body": "LOCAL_VAR SINTEGER $0", 298 | "description": "Local_Var Signed Integer variable declaration" 299 | }, 300 | "Local_Var Char Declaration":{ 301 | "prefix": "local_var char", 302 | "body": "LOCAL_VAR CHAR $0", 303 | "description": "Local_Var Char variable declaration" 304 | }, 305 | "Local_Var Long Declaration":{ 306 | "prefix": "local_var long", 307 | "body": "LOCAL_VAR LONG $0", 308 | "description": "Local_Var Long variable declaration" 309 | }, 310 | "Local_Var SLong Declaration":{ 311 | "prefix": "local_var slong", 312 | "body": "LOCAL_VAR SLONG $0", 313 | "description": "Local_Var SLong variable declaration" 314 | }, 315 | "Local_Var Float Declaration":{ 316 | "prefix": "local_var float", 317 | "body": "LOCAL_VAR FLOAT $0", 318 | "description": "Local_Var Float variable declaration" 319 | }, 320 | "Local_Var Double Declaration":{ 321 | "prefix": "local_var double", 322 | "body": "LOCAL_VAR DOUBLE $0", 323 | "description": "Local_Var Double variable declaration" 324 | }, 325 | "Stack_Var Declaration":{ 326 | "prefix": "stack_var", 327 | "body": "STACK_VAR $0", 328 | "description": "Stack_Var context declaration" 329 | }, 330 | "Stack_Var Char Declaration":{ 331 | "prefix": "stack_var char", 332 | "body": "STACK_VAR CHAR $0", 333 | "description": "Stack_Var Char context declaration" 334 | }, 335 | "Stack_Var Integer Declaration":{ 336 | "prefix": "stack_var integer", 337 | "body": "STACK_VAR INTEGER $0", 338 | "description": "Stack_Var Integer context declaration" 339 | }, 340 | "Stack_Var SInteger Declaration":{ 341 | "prefix": "stack_var sinteger", 342 | "body": "STACK_VAR SINTEGER $0", 343 | "description": "Stack_Var Signed Integer context declaration" 344 | }, 345 | "Stack_Var Long Declaration":{ 346 | "prefix": "stack_var long", 347 | "body": "STACK_VAR LONG $0", 348 | "description": "Stack_Var Long context declaration" 349 | }, 350 | "Stack_Var SLong Declaration":{ 351 | "prefix": "stack_var slong", 352 | "body": "STACK_VAR SLONG $0", 353 | "description": "Stack_Var SLong context declaration" 354 | }, 355 | "Stack_Var Float Declaration":{ 356 | "prefix": "stack_var float", 357 | "body": "STACK_VAR FLOAT $0", 358 | "description": "Stack_Var Float context declaration" 359 | }, 360 | "Stack_Var Double Declaration":{ 361 | "prefix": "stack_var double", 362 | "body": "STACK_VAR DOUBLE $0", 363 | "description": "Stack_Var Double context declaration" 364 | }, 365 | "Send_Command Function":{ 366 | "prefix": "send_command", 367 | "body": "SEND_COMMAND $0", 368 | "description": "Send_Command function declaration" 369 | }, 370 | "Send_String Function":{ 371 | "prefix": "send_string", 372 | "body": "SEND_STRING $0", 373 | "description": "Send_String function declaration" 374 | }, 375 | "Comment header":{ 376 | "prefix": "__com", 377 | "body": [ 378 | "// ---------------------------------------------------------------------------------------------------------------------", 379 | "// ${1:Comment}", 380 | "// ---------------------------------------------------------------------------------------------------------------------", 381 | "$0" 382 | ], 383 | "description": "Comment header block" 384 | }, 385 | "Upper_String Function":{ 386 | "prefix": "upper_string", 387 | "body": "UPPER_STRING(${1:var})$0", 388 | "description": "Upper_String() function call" 389 | }, 390 | "Lower_String Function":{ 391 | "prefix": "lower_string", 392 | "body": "LOWER_STRING(${1:var})$0", 393 | "description": "Lower_String() function call" 394 | }, 395 | "Do_Push Function":{ 396 | "prefix": "do_push", 397 | "body": "DO_PUSH(${1:dev},${2:channel})\n$0", 398 | "description": "Do_Push function declaration" 399 | }, 400 | "Do_Push_Timed Function":{ 401 | "prefix": "do_push_timed", 402 | "body": "DO_PUSH_TIMED(${1:dev},${2:channel})\n$0", 403 | "description": "Do_Push_Timed function declaration" 404 | }, 405 | "Do_Release Function":{ 406 | "prefix": "do_release", 407 | "body": "DO_RELEASE(${1:dev},${2:channel})\n$0", 408 | "description": "Do_Release function declaration" 409 | }, 410 | "To Function":{ 411 | "prefix": "to", 412 | "body": "TO[${1:dev},${2:channel}]\n$0", 413 | "description": "To function declaration" 414 | }, 415 | "Pulse Function":{ 416 | "prefix": "pulse", 417 | "body": "PULSE[${1:dev},${2:channel}]\n$0", 418 | "description": "Pulse function declaration" 419 | }, 420 | "Set_Pulse_Time Function":{ 421 | "prefix": "set_pulse_time", 422 | "body": "SET_PULSE_TIME(${1:time})\n$0", 423 | "description": "Set_Pulse_Time function declaration" 424 | }, 425 | "Add_Url_Entry Function":{ 426 | "prefix": "add_url_entry", 427 | "body": "ADD_URL_ENTRY(${1:master_dev},${2:url_struct})\n$0", 428 | "description": [ 429 | "Add_Url_Entry function declaration. Requires a D:P:S for the master_dev.\n", 430 | "The URL_STRUCT is predefined as follows:", 431 | "STRUCTURE URL_STRUCT", 432 | "{", 433 | "\tCHAR Flags; // Connection Type (normally 1)", 434 | "\tINTEGER Port; // TCP port (normally 1319)", 435 | "\tCHAR URL[128]; // string: URL or IP address", 436 | "\tCHAR User[20]; // optional account info for ICSPS", 437 | "\tCHAR Password[20]; // optional account info for ICSPS", 438 | "}" 439 | ] 440 | }, 441 | "Delete_Url_Entry Function":{ 442 | "prefix": "delete_url_entry", 443 | "body": "DELETE_URL_ENTRY(${1:master_dev},${2:url_struct})\n$0", 444 | "description": [ 445 | "Delete_Url_Entry function declaration. Requires a D:P:S for the master_dev.\n", 446 | "The URL_STRUCT is predefined as follows:", 447 | "STRUCTURE URL_STRUCT", 448 | "{", 449 | "\tCHAR Flags; // Connection Type (normally 1)", 450 | "\tINTEGER Port; // TCP port (normally 1319)", 451 | "\tCHAR URL[128]; // string: URL or IP address", 452 | "\tCHAR User[20]; // optional account info for ICSPS", 453 | "\tCHAR Password[20]; // optional account info for ICSPS", 454 | "}" 455 | ] 456 | }, 457 | "Get_Url_List Function":{ 458 | "prefix": "get_url_list", 459 | "body": "GET_URL_LIST(${1:master_dev},${2:url_struct_array},${3|0,1,2|})\n$0", 460 | "description": [ 461 | "Get_Url_List function declaration. Requires a D:P:S for the master_dev.\n", 462 | "The URL_STRUCT is predefined as follows:", 463 | "STRUCTURE URL_STRUCT", 464 | "{", 465 | "\tCHAR Flags; // Connection Type (normally 1)", 466 | "\tINTEGER Port; // TCP port (normally 1319)", 467 | "\tCHAR URL[128]; // string: URL or IP address", 468 | "\tCHAR User[20]; // optional account info for ICSPS", 469 | "\tCHAR Password[20]; // optional account info for ICSPS", 470 | "}", 471 | "The third parameter is the type of URL: 0 = All, 1 = IDE Programmed, 2 = NetLinx Programmed" 472 | ] 473 | }, 474 | "Ip_Client_Open function": { 475 | "prefix": "ip_client_open", 476 | "body": "IP_CLIENT_OPEN(${1:localport},'${2:serveraddress}',${3:serverport},${4|IP_TCP,IP_UDP,IP_UDP_2WAY|})\n$0", 477 | "description": "Ip_Client_Open function definition" 478 | }, 479 | "Ip_Client_Close function": { 480 | "prefix": "ip_client_close", 481 | "body": "IP_CLIENT_CLOSE(${1:localport})\n$0", 482 | "description": "Ip_Client_Close function definition" 483 | }, 484 | "Ssh_Client_Open function": { 485 | "prefix": "ssh_client_open", 486 | "body": "SSH_CLIENT_OPEN(${1:localport},'${2:serveraddress}',${3:serverport},'${4:username}','${5:password}','/certs/id_rsa','${6:keypass}')\n$0", 487 | "description": "Ssh_Client_Open function definition" 488 | }, 489 | "Ssh_Client_Close function": { 490 | "prefix": "ssh_client_close", 491 | "body": "SSH_CLIENT_CLOSE(${1:localport})\n$0", 492 | "description": "Ssh_Client_Close function definition" 493 | }, 494 | "Tls_Client_Open function": { 495 | "prefix": "tls_client_open", 496 | "body": "TLS_CLIENT_OPEN(${1:localport},'${2:serveraddress}',${3:serverport},0)\n$0", 497 | "description": "Tls_Client_Open function definition" 498 | }, 499 | "Tls_Client_Close function": { 500 | "prefix": "tls_client_close", 501 | "body": "TLS_CLIENT_CLOSE(${1:localport})\n$0", 502 | "description": "Tls_Client_Close function definition" 503 | } 504 | 505 | } -------------------------------------------------------------------------------- /src/extension.ts: -------------------------------------------------------------------------------- 1 | import { 2 | ExtensionContext, 3 | Disposable, 4 | languages, 5 | Range, 6 | TextDocument, 7 | TextEdit, 8 | workspace, 9 | tasks, 10 | window, 11 | Task, 12 | commands, 13 | TaskDefinition, 14 | Uri, 15 | ShellExecution, 16 | TaskGroup, 17 | OutputChannel, 18 | FormattingOptions, 19 | CancellationToken, 20 | DocumentRangeFormattingEditProvider, 21 | DocumentFormattingEditProvider, 22 | } from "vscode"; 23 | 24 | 25 | let taskProvider: Disposable | undefined; 26 | 27 | export function activate(context: ExtensionContext) { 28 | let transfer_command = commands.registerCommand("extension.netlinx_transfer", () => { 29 | callShellCommand(workspace.getConfiguration("netlinx").transferLocation); 30 | }); 31 | 32 | let diag_command = commands.registerCommand("extension.netlinx_diag", () => { 33 | callShellCommand(workspace.getConfiguration("netlinx").diagLocation); 34 | }); 35 | 36 | let help_command = commands.registerCommand("extension.netlinx_help", () => { 37 | callShellCommand(workspace.getConfiguration("netlinx").helpLocation); 38 | }); 39 | 40 | let open_includefolder = commands.registerCommand("extension.netlinx_openincludefolder", () => { 41 | if (workspace.getConfiguration("netlinx").includesLocation.length) { 42 | addFolderToWorkspace(workspace.getConfiguration("netlinx").includesLocation, "Global Includes") 43 | } 44 | else { 45 | window.showErrorMessage("Global Include folder not configured. Please open user settings and set the folder URI."); 46 | } 47 | }); 48 | 49 | let open_libraryfolder = commands.registerCommand("extension.netlinx_openlibraryfolder", () => { 50 | if (workspace.getConfiguration("netlinx").librariesLocation.length) { 51 | addFolderToWorkspace(workspace.getConfiguration("netlinx").librariesLocation, "Global Libraries"); 52 | } 53 | else { 54 | window.showErrorMessage("Global Library folder not configured. Please open user settings and set the folder URI."); 55 | } 56 | }); 57 | 58 | let open_modulefolder = commands.registerCommand("extension.netlinx_openmodulefolder", () => { 59 | if (workspace.getConfiguration("netlinx").modulesLocation.length) { 60 | addFolderToWorkspace(workspace.getConfiguration("netlinx").modulesLocation, "Global Modules"); 61 | } 62 | else { 63 | window.showErrorMessage("Global Module folder not configured. Please open user settings and set the folder URI."); 64 | } 65 | }); 66 | 67 | function rebuildTaskList(): void { 68 | if (taskProvider) { 69 | taskProvider.dispose(); 70 | taskProvider = undefined; 71 | } 72 | if (!taskProvider && window.activeTextEditor.document.languageId === "netlinx-source") { 73 | let netlinxPromise: Thenable | undefined = undefined; 74 | taskProvider = tasks.registerTaskProvider('netlinx', { 75 | provideTasks: () => { 76 | if (!netlinxPromise) { 77 | netlinxPromise = getCompileTasks(); 78 | } 79 | 80 | return netlinxPromise; 81 | }, 82 | resolveTask: () => { 83 | return undefined; 84 | } 85 | }) 86 | } 87 | } 88 | 89 | let thisFormatProvider = new formattingProvider(formatProvider); 90 | languages.registerDocumentFormattingEditProvider({ scheme: 'file', language: 'netlinx-source' }, thisFormatProvider); 91 | languages.registerDocumentFormattingEditProvider({ scheme: 'file', language: 'netlinx-include' }, thisFormatProvider); 92 | 93 | context.subscriptions.push(transfer_command); 94 | context.subscriptions.push(diag_command); 95 | context.subscriptions.push(help_command); 96 | context.subscriptions.push(open_includefolder); 97 | context.subscriptions.push(open_libraryfolder); 98 | context.subscriptions.push(open_modulefolder); 99 | 100 | workspace.onDidChangeConfiguration(rebuildTaskList); 101 | workspace.onDidOpenTextDocument(rebuildTaskList); 102 | window.onDidChangeActiveTextEditor(rebuildTaskList); 103 | rebuildTaskList(); 104 | } 105 | 106 | export interface RangeFormattingOptions { 107 | rangeStart: number; 108 | rangeEnd: number; 109 | } 110 | 111 | export class formattingProvider 112 | implements 113 | DocumentRangeFormattingEditProvider, 114 | DocumentFormattingEditProvider { 115 | constructor( 116 | private provideEdits: ( 117 | document: TextDocument, 118 | options?: RangeFormattingOptions 119 | ) => Promise 120 | ) { } 121 | 122 | 123 | public async provideDocumentRangeFormattingEdits( 124 | document: TextDocument, 125 | range: Range, 126 | options: FormattingOptions, 127 | token: CancellationToken 128 | ): Promise { 129 | return this.provideEdits(document, { 130 | rangeEnd: document.offsetAt(range.end), 131 | rangeStart: document.offsetAt(range.start), 132 | }); 133 | } 134 | 135 | public async provideDocumentFormattingEdits( 136 | document: TextDocument, 137 | options: FormattingOptions, 138 | token: CancellationToken 139 | ): Promise { 140 | return this.provideEdits(document); 141 | } 142 | } 143 | 144 | function fullDocumentRange(document: TextDocument): Range { 145 | const lastLineId = document.lineCount - 1; 146 | return new Range(0, 0, lastLineId, document.lineAt(lastLineId).text.length); 147 | } 148 | 149 | async function formatProvider(document: TextDocument, options?: RangeFormattingOptions): Promise { 150 | let outputText = formatText(document.getText()); 151 | return [new TextEdit( 152 | fullDocumentRange(document), 153 | outputText)]; 154 | } 155 | 156 | function formatText(docText: string): string { 157 | let outputText = ""; 158 | let indentLevel = 0; // Current line indent level (number of tabs) 159 | let inComment = 0; // If we're in a comment and what level 160 | let startingComment = 0; // Check if this line starts a comment 161 | let endingComment = 0; // Check if this line ends a comment 162 | let docLines = docText.split(/\r?\n/); // Split into lines 163 | 164 | // Comment weeders 165 | let reDeCom1 = /(\/\/.*)/gm; // Single line comment 166 | let reDeCom2 = /((?:\(\*|\/\*).*(?:\*\)|\*\/))/gm; // Fully enclosed multiline comment 167 | let reDeCom3 = /(.*(?:\*\)|\*\/))/gm; // Closing multiline comment 168 | let reDeCom4 = /((?:\(\*|\/\*).*)/gm; // Opening multiline comment 169 | let reString = /'[^']*'/gm; 170 | 171 | for (var line = 0; line < docLines.length; line++) { 172 | startingComment = 0; 173 | endingComment = 0; 174 | let thisLine = docLines[line]; 175 | let thisLineTrimmed = docLines[line].trimLeft(); 176 | let thisLineClean = docLines[line].trimLeft().replace(reDeCom1, "").replace(reDeCom2, ""); // Remove any single line comments and fully enclosed multiline comments 177 | 178 | if (reDeCom3.test(thisLineClean) && inComment > 0) { // If a multiline comment closes on this line, decrease our comment level 179 | inComment = inComment - 1; 180 | if (inComment === 0) { 181 | endingComment = 1; 182 | } 183 | } 184 | if (reDeCom4.test(thisLineClean)) { // If a multiline comment opens on this line, increase our comment level 185 | if (inComment === 0) { 186 | startingComment = 1; // If this line starts a multiline comment, it still needs to be checked 187 | } 188 | inComment = inComment + 1; 189 | } 190 | 191 | thisLineClean = thisLineClean.replace(reDeCom3, "").replace(reDeCom4, ""); // Remove any code that we think is inside multiline comments 192 | thisLineClean = thisLineClean.replace(reString, ""); // Remove any string literals from the line so we don't get false positives 193 | let brOpen = countChars(thisLineClean, '{') - countChars(thisLineClean, '}'); // Check the delta for squiggly brackets 194 | let sqOpen = countChars(thisLineClean, '[') - countChars(thisLineClean, ']'); // Check the delta for square brackets 195 | let parOpen = countChars(thisLineClean, '(') - countChars(thisLineClean, ')'); // Check the delta for parenthesis 196 | let indentDelta = brOpen + sqOpen + parOpen; // Calculate total delta 197 | 198 | // Indent Increase Rules 199 | if ((inComment > 0 && !startingComment) || (!inComment && endingComment)) { // If we're in a multiline comment, just leave the line alone unless it's the start of a ML comment 200 | outputText = outputText + thisLine + "\r"; 201 | } 202 | else if (indentDelta > 0) { // If we're increasing indent delta because of this line, the add it, then increase indent 203 | outputText = outputText + ('\t'.repeat(indentLevel)) + thisLineTrimmed + "\r"; 204 | indentLevel = (indentLevel + indentDelta >= 0) ? (indentLevel + indentDelta) : 0; 205 | } 206 | // If we're decreasing delta, and the line starts with the character that is decreasing it, then decrease first, and then add this line 207 | else if (indentDelta < 0 && (thisLineClean[0] === '}' || thisLineClean[0] === ']' || thisLineClean[0] === ')')) { 208 | indentLevel = (indentLevel + indentDelta >= 0) ? (indentLevel + indentDelta) : 0; 209 | outputText = outputText + ('\t'.repeat(indentLevel)) + thisLineTrimmed + "\r"; 210 | } 211 | else if (indentDelta < 0) { // If we're decreasing delta but the first character isn't the cause, then we're still inside the block 212 | outputText = outputText + ('\t'.repeat(indentLevel)) + thisLineTrimmed + "\r"; 213 | indentLevel = (indentLevel + indentDelta >= 0) ? (indentLevel + indentDelta) : 0; 214 | } 215 | else { // indentDelta === 0; do nothing except add the line with the indent 216 | outputText = outputText + ('\t'.repeat(indentLevel)) + thisLineTrimmed + "\r"; 217 | } 218 | }; 219 | 220 | return outputText; 221 | } 222 | 223 | // Creates a terminal, calls the command, then closes the terminal 224 | function callShellCommand(shellCommand: string): void { 225 | let term = window.createTerminal('netlinx', workspace.getConfiguration("netlinx").terminalLocation); 226 | term.sendText("\"" + shellCommand + "\"", true); 227 | term.sendText("exit", true); 228 | } 229 | 230 | // Adds a folder to the workspace 231 | function addFolderToWorkspace(folder: string, folderName: string): void { 232 | let folderLocation = Uri.file(folder); 233 | workspace.updateWorkspaceFolders(workspace.workspaceFolders ? workspace.workspaceFolders.length : 0, null, { "uri": folderLocation, "name": folderName }); 234 | } 235 | 236 | function getCompileCommand(fileName: string, useGlobal: boolean): string { 237 | let compiler = new NetlinxCompiler(); 238 | compiler.filepaths.push(fileName); 239 | if (useGlobal) { 240 | if (workspace.getConfiguration("netlinx").includesLocation.length > 0) { 241 | compiler.filepaths.push("-I" + workspace.getConfiguration("netlinx").includesLocation); 242 | } 243 | if (workspace.getConfiguration("netlinx").librariesLocation.length > 0) { 244 | compiler.filepaths.push("-L" + workspace.getConfiguration("netlinx").librariesLocation); 245 | } 246 | if (workspace.getConfiguration("netlinx").modulesLocation.length > 0) { 247 | compiler.filepaths.push("-M" + workspace.getConfiguration("netlinx").modulesLocation); 248 | } 249 | } 250 | 251 | return compiler.buildCommand(); 252 | } 253 | 254 | function countChars(haystack: string, needle: string): number { 255 | let count = 0; 256 | for (var i = 0; i < haystack.length; i++) { 257 | if (haystack[i] === needle) { 258 | count++; 259 | } 260 | } 261 | return count; 262 | } 263 | 264 | interface NetlinxTaskDefinition extends TaskDefinition { 265 | buildPath: string; 266 | } 267 | 268 | async function getCompileTasks(): Promise { 269 | let workspaceRoot = workspace.rootPath; 270 | let emptyTasks: Task[] = []; 271 | 272 | if (!workspaceRoot) { 273 | return emptyTasks; 274 | } 275 | 276 | try { 277 | let result: Task[] = []; 278 | let editor = window.activeTextEditor; 279 | let doc = editor.document; 280 | let executable = 'c:\\windows\\system32\\cmd.exe'; 281 | 282 | // Create "Local" build, ignoring global folders 283 | let buildCommand = getCompileCommand(doc.fileName, false); 284 | 285 | let taskDef: NetlinxTaskDefinition = { 286 | type: 'shell', 287 | label: 'Netlinx Build Local', 288 | buildPath: buildCommand 289 | } 290 | 291 | let command: ShellExecution = new ShellExecution(`"${buildCommand}"`, { executable: executable, shellArgs: ['/c'] }); 292 | let task = new Task(taskDef, 'Compile w/Local Files', 'amx-netlinx', command, `$nlrc`); 293 | task.definition = taskDef; 294 | task.group = TaskGroup.Build; 295 | 296 | result.push(task); 297 | 298 | // Create "Global" build, including global folders 299 | buildCommand = getCompileCommand(doc.fileName, true); 300 | 301 | taskDef = { 302 | type: 'shell', 303 | label: 'Netlinx Build w/Globals', 304 | buildPath: buildCommand 305 | } 306 | 307 | command = new ShellExecution(`"${buildCommand}"`, { executable: executable, shellArgs: ['/c'] }); 308 | task = new Task(taskDef, 'Compile w/Global Files', 'amx-netlinx', command, `$nlrc`); 309 | task.definition = taskDef; 310 | task.group = TaskGroup.Build; 311 | 312 | result.push(task); 313 | return result; 314 | } 315 | catch (err) { 316 | let channel = getOutputChannel(); 317 | console.log(err); 318 | if (err.stderr) { 319 | channel.appendLine(err.stderr); 320 | } 321 | if (err.stdout) { 322 | channel.appendLine(err.stdout); 323 | } 324 | 325 | channel.appendLine('Netlinx compile failed'); 326 | channel.show(true); 327 | return emptyTasks; 328 | } 329 | } 330 | 331 | let _channel: OutputChannel; 332 | function getOutputChannel(): OutputChannel { 333 | if (!_channel) { 334 | _channel = window.createOutputChannel("Netlinx Compile"); 335 | } 336 | return _channel; 337 | } 338 | 339 | class NetlinxCompiler { 340 | constructor() { 341 | this.filepaths = []; 342 | this.compilerPath = "\"" + workspace.getConfiguration("netlinx").compilerLocation + "\""; 343 | } 344 | buildCommand() { 345 | let filepathConcat = ""; 346 | this.filepaths.forEach(element => { 347 | filepathConcat += "\"" + element + "\" "; 348 | }); 349 | return this.compilerPath + 350 | " " + 351 | filepathConcat; 352 | } 353 | 354 | filepaths: string[]; 355 | compilerPath: string; 356 | } 357 | // this method is called when your extension is deactivated 358 | function deactivate(): void { 359 | if (taskProvider) { 360 | taskProvider.dispose(); 361 | } 362 | } 363 | exports.deactivate = deactivate; 364 | //# sourceMappingURL=extension.js.map 365 | -------------------------------------------------------------------------------- /syntaxes/amx-netlinx.tmLanguage.json: -------------------------------------------------------------------------------- 1 | { 2 | "scopeName": "source.netlinx", 3 | "fileTypes": [ 4 | "axs", 5 | "axi", 6 | "axb", 7 | "lib" 8 | ], 9 | "patterns": [ 10 | { 11 | "include": "#comment_blocks" 12 | }, 13 | { 14 | "include": "#comment_lines" 15 | }, 16 | { 17 | "include": "#constant_numerics" 18 | }, 19 | { 20 | "include": "#constant_netlinx_axi" 21 | }, 22 | { 23 | "include": "#entity_define_sections" 24 | }, 25 | { 26 | "include": "#entity_events" 27 | }, 28 | { 29 | "include": "#keyword_operators" 30 | }, 31 | { 32 | "include": "#keyword_preprocs" 33 | }, 34 | { 35 | "include": "#keyword_netlinx" 36 | }, 37 | { 38 | "include": "#storage_netlinx" 39 | }, 40 | { 41 | "include": "#string_netlinx" 42 | }, 43 | { 44 | "include": "#support_structures" 45 | }, 46 | { 47 | "include": "#support_variables" 48 | } 49 | ], 50 | "repository": { 51 | "comment_blocks": { 52 | "comment": "Block comment", 53 | "name": "comment.block.netlinx", 54 | "begin": "/\\*|\\(\\*", 55 | "end": "\\*/|\\*\\)" 56 | }, 57 | "comment_lines": { 58 | "comment": "Line comment", 59 | "name": "comment.line.double-slash.netlinx", 60 | "begin": "//", 61 | "end": "$" 62 | }, 63 | "constant_numerics": { 64 | "comment": "Numbers", 65 | "patterns": [ 66 | { 67 | "name": "constant.numeric.ipaddr.netlinx", 68 | "match": "[\\d]{1,3}[.][\\d]{1,3}[.][\\d]{1,3}[.][\\d]{1,3}" 69 | }, 70 | { 71 | "name": "keyword.other.netlinx", 72 | "match": "([0-9]{1,5}:[0-9]{1,5}:[0-9]{1,5})" 73 | }, 74 | { 75 | "name": "constant.numeric.netlinx", 76 | "match": "([-]?[.]?\\b[\\d.]+)" 77 | }, 78 | { 79 | "name": "constant.numeric.hex.netlinx", 80 | "match": "((?:\\$|0x)[0-9a-fA-F]+)" 81 | } 82 | ] 83 | }, 84 | "constant_netlinx_axi": { 85 | "comment": "NetLinx.axi Constants", 86 | "patterns": [ 87 | { 88 | "name": "constant.netlinx_axi", 89 | "match": "(?i)\\b(NETLINX_AXI_VERSION)\\b" 90 | }, 91 | { 92 | "name": "constant.netlinx_axi", 93 | "match": "(?i)\\b(NULL_STR)\\b" 94 | }, 95 | { 96 | "name": "constant.netlinx_axi", 97 | "match": "(?i)\\b(TRUE|FALSE)\\b" 98 | }, 99 | { 100 | "name": "constant.netlinx_axi", 101 | "match": "(?i)\\b(URL_Flg_TCP|URL_Flg_AcctInfoPresent|URL_Flg_Temp|URL_Flg_Stat_PrgNetLinx|URL_Flg_Stat_Mask|URL_Flg_Stat_Lookup|URL_Flg_Stat_Connecting|URL_Flg_Stat_Waiting|URL_Flg_Stat_Connected|IP_Addr_Flg_DHCP)\\b" 102 | }, 103 | { 104 | "name": "constant.netlinx_axi", 105 | "match": "(?i)\\b(FIRST_LOCAL_PORT|FIRST_VIRTUAL_DEVICE|DYNAMIC_VIRTUAL_DEVICE)\\b" 106 | }, 107 | { 108 | "name": "constant.netlinx_axi", 109 | "match": "(?i)\\b(TIMELINE_ONCE|TIMELINE_REPEAT|TIMELINE_ABSOLUTE|TIMELINE_RELATIVE)\\b" 110 | }, 111 | { 112 | "name": "constant.netlinx_axi", 113 | "match": "(?i)\\b(SOURCE_TYPE_NO_ADDRESS|SOURCE_TYPE_NEURON_ID|SOURCE_TYPE_IP_ADDRESS|SOURCE_TYPE_AXLINK|SOURCE_TYPE_NEURON_SUBNODE_ICSP|SOURCE_TYPE_NEURON_SUBNODE_PL|SOURCE_TYPE_IP_SOCKET_ADDRESS|SOURCE_TYPE_RS232|SOURCE_TYPE_INTERNAL|SOURCE_TYPE_MAC_ADDRESS|SOURCE_TYPE_IPv4_PORT|SOURCE_TYPE_IPv4_PORT_MAC_ADDRESS)\\b" 114 | }, 115 | { 116 | "name": "constant.netlinx_axi", 117 | "match": "(?i)\\b(INTERNAL_QUEUE_SIZE_INDEX_INTERPRETER|INTERNAL_QUEUE_SIZE_INDEX_NOTIFICATION_MGR|INTERNAL_QUEUE_SIZE_INDEX_CONNECTION_MGR|INTERNAL_QUEUE_SIZE_INDEX_ROUTE_MGR|INTERNAL_QUEUE_SIZE_INDEX_DEVICE_MGR|INTERNAL_QUEUE_SIZE_INDEX_DIAGNOSTIC_MGR|INTERNAL_QUEUE_SIZE_INDEX_TCP_TX|INTERNAL_QUEUE_SIZE_INDEX_IPCONNECTION_MGR|INTERNAL_QUEUE_SIZE_INDEX_MESSAGE_DISPATCHER|INTERNAL_QUEUE_SIZE_INDEX_AXLINK_TX|INTERNAL_QUEUE_SIZE_INDEX_PHASTLINK_TX|INTERNAL_QUEUE_SIZE_INDEX_ICSPLONTALK_TX|INTERNAL_QUEUE_SIZE_INDEX_ICSP232_TX|INTERNAL_QUEUE_SIZE_INDEX_ICSPIP_TX|INTERNAL_QUEUE_SIZE_INDEX_NI_DEVICE|INTERNAL_THRESHOLD_INDEX_INTERPRETER|INTERNAL_THRESHOLD_INDEX_LONTALK|INTERNAL_THRESHOLD_INDEX_IP)\\b" 118 | }, 119 | { 120 | "name": "constant.netlinx_axi", 121 | "match": "(?i)\\b(FILE_READ_ONLY|FILE_RW_NEW|FILE_RW_APPEND)\\b" 122 | }, 123 | { 124 | "name": "constant.netlinx_axi", 125 | "match": "(?i)\\b(IP_TCP|IP_UDP(_2WAY)?)\\b" 126 | }, 127 | { 128 | "name": "constant.netlinx_axi", 129 | "match": "(?i)\\b(XML_ENCODE_TYPES|XML_ENCODE_CHAR_AS_LIST|XML_ENCODE_LE|XML_DECODE_TYPES|XML_DECODE_NO_PRESERVE)\\b" 130 | }, 131 | { 132 | "name": "constant.netlinx_axi", 133 | "match": "(?i)\\b(DUET_DEV_TYPE_DISPLAY_DEVICE|DUET_DEV_TYPE_RFIDSYSTEM_DEVICE|DUET_DEV_TYPE_LIGHTSYSTEM_DEVICE|DUET_DEV_TYPE_IO_DEVICE|DUET_DEV_TYPE_RELAY_DEVICE|DUET_DEV_TYPE_UPS|DUET_DEV_TYPE_AMPLIFIER|DUET_DEV_TYPE_AUDIO_CONFERENCER|DUET_DEV_TYPE_AUDIO_MIXER|DUET_DEV_TYPE_AUDIO_PROCESSOR|DUET_DEV_TYPE_AUDIO_TUNER_DEVICE|DUET_DEV_TYPE_CAMERA|DUET_DEV_TYPE_DIGITAL_MEDIA_ENCODER|DUET_DEV_TYPE_DIGITAL_MEDIA_DECODER|DUET_DEV_TYPE_DIGITAL_MEDIA_SERVER|DUET_DEV_TYPE_DSS|DUET_DEV_TYPE_DVR|DUET_DEV_TYPE_DISC_DEVICE|DUET_DEV_TYPE_DOCUMENT_CAMERA|DUET_DEV_TYPE_AUDIO_TAPE|DUET_DEV_TYPE_HVAC|DUET_DEV_TYPE_KEYPAD|DUET_DEV_TYPE_LIGHT|DUET_DEV_TYPE_MONITOR|DUET_DEV_TYPE_MOTOR|DUET_DEV_TYPE_MULTI_WINDOW|DUET_DEV_TYPE_POOL_SPA|DUET_DEV_TYPE_PREAMP_SURROUND_SOUND_PROCESSOR|DUET_DEV_TYPE_RECEIVER|DUET_DEV_TYPE_SECURITY_SYSTEM|DUET_DEV_TYPE_SENSOR_DEVICE|DUET_DEV_TYPE_SETTOP_BOX|DUET_DEV_TYPE_SLIDE_PROJECTOR|DUET_DEV_TYPE_SWITCHER|DUET_DEV_TYPE_TEXT_KEYPAD|DUET_DEV_TYPE_TV|DUET_DEV_TYPE_UTILITY|DUET_DEV_TYPE_VCR|DUET_DEV_TYPE_VIDEO_CONFERENCER|DUET_DEV_TYPE_VIDEO_PROCESSOR|DUET_DEV_TYPE_VIDEO_PROJECTOR|DUET_DEV_TYPE_VIDEO_WALL|DUET_DEV_TYPE_VOLUME_CONTROLLER|DUET_DEV_TYPE_WEATHER)\\b" 134 | }, 135 | { 136 | "name": "constant.netlinx_axi", 137 | "match": "(?i)\\b(DUET_DEV_NOT_POLLED|DUET_DEV_POLLED)\\b" 138 | }, 139 | { 140 | "name": "constant.netlinx_axi", 141 | "match": "(?i)\\b(CLKMGR_MODE_NETWORK|CLKMGR_MODE_STANDALONE)\\b" 142 | }, 143 | { 144 | "name": "constant.netlinx_axi", 145 | "match": "(?i)\\b(NORMAL_STANDBY|NORMAL_WAKE)\\b" 146 | }, 147 | { 148 | "name": "constant.netlinx_axi", 149 | "match": "(?i)\\b(IP_MULTICAST_TTL_OPTION|IP_TTL_SUBNET|IP_TTL_SITE|IP_TTL_REGION|IP_TTL_CONTINENT|IP_TCP_NODELAY_OPTION|IP_NODELAY_ON|IP_NODELAY_OFF)\\b" 150 | }, 151 | { 152 | "name": "constant.netlinx_axi", 153 | "match": "(?i)\\b(AMX_ERROR|AMX_WARNING|AMX_INFO|AMX_DEBUG)\\b" 154 | }, 155 | { 156 | "name": "constant.netlinx_axi", 157 | "match": "(?i)\\b(SMTP_ADDRESS|SMTP_PORT_NUMBER|SMTP_USERNAME|SMTP_PASSWORD|SMTP_REQUIRE_TLS|SMTP_FROM|SMTP_TLS_TRUE|SMTP_TLS_FALSE)\\b" 158 | }, 159 | { 160 | "name": "constant.netlinx_axi", 161 | "match": "(?i)\\b(DO_PUSH_TIMED_INFINITE)\\b" 162 | }, 163 | { 164 | "name": "constant.netlinx_axi", 165 | "match": "(?i)\\b(NETLINX_LOGIN_SUCCESS|NETLINX_LOGIN_FAIL|NETLINX_LOGOUT|MAX_LAST_LOGIN_INFO_LENGTH)\\b" 166 | }, 167 | { 168 | "name": "constant.netlinx_axi", 169 | "match": "(?i)\\b(VALID_ACCOUNT|ERR_NAME_INVALID|ERR_PASSWORD_INVALID|ERR_INVALID_ACCOUNT|ERR_NO_AUTHORIZATION|ERR_INVALID_PARAMETER|ERR_USER_LOCKED_OUT|ERR_USER_ACCOUNT_EXPIRED|ERR_GENERAL_ERROR|ERR_AUTHENTICATION_ERROR)\\b" 170 | }, 171 | { 172 | "name": "constant.netlinx_axi", 173 | "match": "(?i)\\b(LISTVIEW_ON_ROW_SELECT_EVENT|DATA_STRUCTURE_UNKNOWN|DATA_STRUCTURE_DATAFEED|DATA_STRUCTURE_DATARECORDSET|DATA_STRUCTURE_DATARECORD|DATA_STRUCTURE_DATAFIELD|DATA_MAX_CONTENT_FIELD_COUNT|DATA_MAX_METADATA_FIELD_COUNT|DATA_MAX_ID_LENGTH|DATA_MAX_NAME_LENGTH|DATA_MAX_DESCRIPTION_LENGTH|DATA_MAX_TYPE_LENGTH|DATA_MAX_FORMAT_LENGTH|DATA_MAX_SOURCE_LENGTH|DATA_MAX_VALUE_LENGTH|DATA_MAX_LABEL_LENGTH|DATA_MAX_URL_LENGTH)\\b" 174 | }, 175 | { 176 | "name": "constant.netlinx_axi", 177 | "match": "(?i)\\b(DATA_TYPE_UNKNOWN|DATA_TYPE_STRING|DATA_TYPE_DATETIME|DATA_TYPE_DATE|DATA_TYPE_TIME|DATA_TYPE_IMAGE|DATA_FORMAT_URL|DATA_FORMAT_PHONE|DATA_FORMAT_EMAIL|DATA_FORMAT_ISO8601)\\b" 178 | }, 179 | { 180 | "name": "constant.netlinx_axi", 181 | "match": "(?i)\\b(AUDITLOG_PRIV|CONFIGURATION_PRIV|DEVICECONFIG_PRIV|FTP_PRIV|HTTP_PRIV|NETWORKCONFIG_PRIV|PROGRAMPORT_PRIV|REMOTEUI_PRIV|SECURITYCONTROL_PRIV|SOFTWAREMANAGEMENT_PRIV|TERMINAL_PRIV|TPADMIN_PRIV|USER1_PRIV|USER2_PRIV|USER3_PRIV|USER4_PRIV|USERMANAGEMENT_PRIV)\\b" 182 | }, 183 | { 184 | "name": "constant.netlinx_axi", 185 | "match": "(?i)\\b(TLS_IGNORE_CERTIFICATE_ERRORS|TLS_VALIDATE_CERTIFICATE)\\b" 186 | } 187 | ] 188 | }, 189 | "entity_define_sections": { 190 | "comment": "Define Section Blocks", 191 | "patterns": [ 192 | { 193 | "name": "entity.name.section.axcess", 194 | "match": "(?i)\\b(DEFINE_CONSTANT|DEFINE_DEVICE|DEFINE_LATCHING|DEFINE_MUTUALLY_EXCLUSIVE|DEFINE_PROGRAM|DEFINE_START|DEFINE_TOGGLING|DEFINE_VARIABLE|DEFINE_COMBINE|DEFINE_CONNECT_LEVEL)\\b" 195 | }, 196 | { 197 | "name": "meta.function.netlinx", 198 | "match": "(?i)\\b(DEFINE_CALL)\\s+\\\"(\\w+)\\\"", 199 | "captures": { 200 | "1": { 201 | "name": "keyword.control.netlinx" 202 | }, 203 | "2": { 204 | "name": "entity.name.function.netlinx" 205 | } 206 | } 207 | }, 208 | { 209 | "name": "entity.name.section.netlinx", 210 | "match": "(?i)\\b(DEFINE_EVENT|DEFINE_TYPE)\\b" 211 | }, 212 | { 213 | "name": "meta.function.netlinx", 214 | "comment": "Match a function definition without a return value.", 215 | "match": "(?i)\\b(DEFINE_FUNCTION)\\s+(\\w+)\\s*\\(", 216 | "captures": { 217 | "1": { 218 | "name": "keyword.control.netlinx" 219 | }, 220 | "2": { 221 | "name": "entity.name.function.netlinx" 222 | } 223 | } 224 | }, 225 | { 226 | "name": "meta.function.netlinx", 227 | "comment": "Match a function definition with a return value.", 228 | "match": "(?i)\\b(DEFINE_FUNCTION)\\s+([a-zA-Z0-9_\\[\\]]+)\\s+(\\w*)\\s*\\(", 229 | "captures": { 230 | "1": { 231 | "name": "keyword.control.netlinx" 232 | }, 233 | "2": { 234 | "name": "storage.type.intrinsic.netlinx" 235 | }, 236 | "3": { 237 | "name": "entity.name.function.netlinx" 238 | } 239 | } 240 | }, 241 | { 242 | "name": "variable.other.netlinx", 243 | "match": "(?i)\\b(RETURN)\\b" 244 | } 245 | ] 246 | }, 247 | "entity_events": { 248 | "comment": "Define Events", 249 | "patterns": [ 250 | { 251 | "name": "entity.name.type.netlinx", 252 | "match": "(?i)\\b(DATA_EVENT|CHANNEL_EVENT|LEVEL_EVENT|BUTTON_EVENT|TIMELINE_EVENT|CUSTOM_EVENT)\\b" 253 | }, 254 | { 255 | "name": "constant.eventdata.netlinx", 256 | "match": "(?i)\\b(DATA.DEVICE.NUMBER|DATA.DEVICE.PORT|DATA.DEVICE.SYSTEM|DATA.DEVICE|DATA.NUMBER|DATA.SourceIP|DATA.SourcePort|DATA.TEXT)\\b" 257 | }, 258 | { 259 | "name": "constant.eventdata.netlinx", 260 | "match": "(?i)\\b(CHANNEL.DEVICE.NUMBER|CHANNEL.DEVICE.PORT|CHANNEL.DEVICE.SYSTEM|CHANNEL.DEVICE|CHANNEL.CHANNEL)\\b" 261 | }, 262 | { 263 | "name": "constant.eventdata.netlinx", 264 | "match": "(?i)\\b(LEVEL.INPUT.DEVICE.NUMBER|LEVEL.INPUT.DEVICE.PORT|LEVEL.INPUT.DEVICE.SYSTEM|LEVEL.INPUT.DEVICE|LEVEL.INPUT.LEVEL|LEVEL.INPUT|LEVEL.VALUE)\\b" 265 | }, 266 | { 267 | "name": "constant.eventdata.netlinx", 268 | "match": "(?i)\\b(BUTTON.INPUT.CHANNEL|BUTTON.INPUT.DEVICE.NUMBER|BUTTON.INPUT.DEVICE.PORT|BUTTON.INPUT.DEVICE.SYSTEM|BUTTON.INPUT.DEVICE|BUTTON.INPUT|BUTTON.HOLDTIME)\\b" 269 | }, 270 | { 271 | "name": "constant.eventdata.netlinx", 272 | "match": "(?i)\\b(TIMELINE.ID|TIMELINE.SEQUENCE|TIMELINE.TIME|TIMELINE.RELATIVE|TIMELINE.REPETITION)\\b" 273 | }, 274 | { 275 | "name": "constant.eventdata.netlinx", 276 | "match": "(?i)\\b(CUSTOM.DEVICE.NUMBER|CUSTOM.DEVICE.PORT|CUSTOM.DEVICE.SYSTEM|CUSTOM.DEVICE|CUSTOM.ID|CUSTOM.TYPE|CUSTOM.FLAG|CUSTOM.VALUE1|CUSTOM.VALUE2|CUSTOM.VALUE3|CUSTOM.TEXT|CUSTOM.ENCODE|CUSTOM.SOURCEDEV.NUMBER|CUSTOM.SOURCEDEV.PORT|CUSTOM.SOURCEDEV.SYSTEM|CUSTOM.SOURCEDEV)\\b" 277 | } 278 | ] 279 | }, 280 | "keyword_operators": { 281 | "comment": "Keyword operators", 282 | "patterns": [ 283 | { 284 | "name": "keyword.operator.netlinx", 285 | "match": "[\\+\\-/*%<>=!&|]+" 286 | }, 287 | { 288 | "name": "keyword.operator.logical.netlinx", 289 | "match": "(?i)\\b(AND|NOT|OR|XOR)\\b" 290 | }, 291 | { 292 | "name": "keyword.operator.bitwise.netlinx", 293 | "match": "(?i)\\b(BAND|BNOT|BOR|BXOR|LSHIFT|RSHIFT)\\b" 294 | } 295 | ] 296 | }, 297 | "keyword_preprocs": { 298 | "comment": "NetLinx Compiler Directives", 299 | "patterns": [ 300 | { 301 | "name": "keyword.control.netlinx", 302 | "match": "(?i)#\\b(DEFINE|IF_DEFINED|IF_NOT_DEFINED|ELSE|END_IF|WARN|DISABLE_WARNING)\\b" 303 | }, 304 | { 305 | "name": "keyword.control.netlinx", 306 | "match": "(?i)\\b(__NETLINX__|__TIME__|__DATE__|__LDATE__|__FILE__|__LINE__|__NAME__|__VERSION__|___RESERVED___)\\b" 307 | }, 308 | { 309 | "name": "keyword.control.netlinx", 310 | "match": "(?i)#?\\b(INCLUDE)\\b" 311 | } 312 | ] 313 | }, 314 | "keyword_netlinx": { 315 | "comment": "NetLinx Keywords", 316 | "patterns": [ 317 | { 318 | "name": "keyword.control.netlinx", 319 | "match": "(?i)\\b(WAIT|CANCEL_WAIT|CANCEL_ALL_WAIT|PAUSE_WAIT|RESTART_WAIT|RESTART_ALL_WAIT)\\b" 320 | }, 321 | { 322 | "name": "keyword.control.netlinx", 323 | "match": "(?i)\\b(WAIT_UNTIL|CANCEL_WAIT_UNTIL|CANCEL_ALL_WAIT_UNTIL|PAUSE_ALL_WAIT|TIMED_WAIT_UNTIL)\\b" 324 | }, 325 | { 326 | "name": "keyword.control.netlinx", 327 | "match": "(?i)\\b(CREATE_BUFFER|CREATE_MULTI_BUFFER|CREATE_LEVEL)\\b" 328 | }, 329 | { 330 | "name": "keyword.control.netlinx", 331 | "match": "(?i)\\b(CLEAR_BUFFER|GET_BUFFER_CHAR|GET_MULTI_BUFFER_STRING|GET_BUFFER_STRING)\\b" 332 | }, 333 | { 334 | "name": "keyword.control.netlinx", 335 | "match": "(?i)\\b(FIND_STRING|REMOVE_STRING|LEFT_STRING|MID_STRING|RIGHT_STRING|LOWER_STRING|UPPER_STRING|COMPARE_STRING)\\b" 336 | }, 337 | { 338 | "name": "keyword.control.netlinx", 339 | "match": "(?i)\\b(DEVICE_ID_STRING|DEVICE_ID|DEVICE_INFO)\\b" 340 | }, 341 | { 342 | "name": "keyword.control.netlinx", 343 | "match": "(?i)\\b(DO_PUSH_TIMED|DO_PUSH|DO_RELEASE|DO_CUSTOM_EVENT|REBUILD_EVENT)\\b" 344 | }, 345 | { 346 | "name": "keyword.control.netlinx", 347 | "match": "(?i)\\b(PROGRAM_NAME|MODULE_NAME)\\b" 348 | }, 349 | { 350 | "name": "keyword.control.netlinx", 351 | "match": "(?i)\\b(SET_TIMER|GET_TIMER)\\b" 352 | }, 353 | { 354 | "name": "keyword.control.netlinx", 355 | "match": "(?i)\\b(IF|ELSE|SELECT|ACTIVE|LONG_WHILE|MEDIUM_WHILE|WHILE|BREAK|FOR|NEXT|SWITCH|CASE|DEFAULT)\\b" 356 | }, 357 | { 358 | "name": "keyword.control.netlinx", 359 | "match": "(?i)\\b(UNCOMBINE_DEVICES|COMBINE_DEVICES|UNCOMBINE_CHANNELS|COMBINE_CHANNELS|UNCOMBINE_LEVELS|COMBINE_LEVELS)\\b" 360 | }, 361 | { 362 | "name": "keyword.control.netlinx", 363 | "match": "(?i)\\b(STRING|COMMAND|PUSH|RELEASE|HOLD|REPEAT|ONLINE|OFFLINE|ONERROR|STANDBY|WAKE)\\b" 364 | }, 365 | { 366 | "name": "keyword.control.netlinx", 367 | "match": "(?i)\\b(SEND_COMMAND|SEND_LEVEL|SEND_STRING|REDIRECT_STRING)\\b" 368 | }, 369 | { 370 | "name": "keyword.control.netlinx", 371 | "match": "(?i)\\b(TO|MIN_TO|OFF|ON|PULSE|TOTAL_OFF|SET_PULSE_TIME|GET_PULSE_TIME)\\b" 372 | }, 373 | { 374 | "name": "keyword.control.netlinx", 375 | "match": "(?i)\\b(CALL|SYSTEM_CALL)\\b" 376 | }, 377 | { 378 | "name": "keyword.control.netlinx", 379 | "match": "(?i)\\b(DEFINE_MODULE|UNLOAD_DUET_MODULE|LOAD_DUET_MODULE)\\b" 380 | }, 381 | { 382 | "name": "keyword.control.netlinx", 383 | "match": "(?i)\\b(FIRST_LOCAL_PORT|STATIC_PORT_BINDING|STATIC_IP_BINDING|DYNAMIC_POLLED_PORT|DYNAMIC_APPLICATION_DEVICE)\\b" 384 | }, 385 | { 386 | "name": "keyword.control.netlinx", 387 | "match": "(?i)\\b(REBOOT|DEVICE_STANDBY|DEVICE_WAKE)\\b" 388 | }, 389 | { 390 | "name": "keyword.control.netlinx", 391 | "match": "(?i)\\b(ITOA|ITOHEX|ATOI|ATOL|ATOF|FTOA|HEXTOI)\\b" 392 | }, 393 | { 394 | "name": "keyword.control.netlinx", 395 | "match": "(?i)\\b(ABS_VALUE|MAX_VALUE|MIN_VALUE)\\b" 396 | }, 397 | { 398 | "name": "keyword.control.netlinx", 399 | "match": "(?i)\\b(STRING_TO_VARIABLE|LENGTH_VARIABLE_TO_STRING|VARIABLE_TO_STRING|XML_TO_VARIABLE|LENGTH_VARIABLE_TO_XML|VARIABLE_TO_XML)\\b" 400 | }, 401 | { 402 | "name": "keyword.control.netlinx", 403 | "match": "(?i)\\b(TYPE_CAST|FORMAT|RAW_BE|RAW_LE)\\b" 404 | }, 405 | { 406 | "name": "keyword.control.netlinx", 407 | "match": "(?i)\\b(DATE_TO_DAY|DATE_TO_MONTH|DATE_TO_YEAR|DAY_OF_WEEK)\\b" 408 | }, 409 | { 410 | "name": "keyword.control.netlinx", 411 | "match": "(?i)\\b(FILE_CLOSE|FILE_OPEN|FILE_DELETE|FILE_COPY|FILE_DIR|FILE_SETDIR|FILE_GETDIR|FILE_CREATEDIR|FILE_REMOVEDIR|FILE_READ_LINE|FILE_READ|FILE_RENAME|FILE_SEEK|FILE_WRITE_LINE|FILE_WRITE)\\b" 412 | }, 413 | { 414 | "name": "keyword.control.netlinx", 415 | "match": "(?i)\\b(IP_CLIENT_CLOSE|IP_CLIENT_OPEN|IP_SERVER_CLOSE|IP_SERVER_OPEN|IP_MC_SERVER_OPEN|IP_SET_OPTION|IP_BOUND_CLIENT_OPEN)\\b" 416 | }, 417 | { 418 | "name": "keyword.control.netlinx", 419 | "match": "(?i)\\b(MAX_LENGTH_ARRAY|MAX_LENGTH_STRING|SET_LENGTH_ARRAY|SET_LENGTH_STRING|LENGTH_ARRAY|LENGTH_STRING)\\b" 420 | }, 421 | { 422 | "name": "keyword.control.netlinx", 423 | "match": "(?i)\\b(INTERNAL_QUEUE_SIZE_SET|INTERNAL_QUEUE_SIZE_GET|INTERNAL_THRESHOLD_SET|INTERNAL_THRESHOLD_GET|DUET_MEM_SIZE_SET|DUET_MEM_SIZE_GET)\\b" 424 | }, 425 | { 426 | "name": "keyword.control.netlinx", 427 | "match": "(?i)\\b(TIME_TO_HOUR|TIME_TO_MINUTE|TIME_TO_SECOND|ASTRO_CLOCK)\\b" 428 | }, 429 | { 430 | "name": "keyword.control.netlinx", 431 | "match": "(?i)\\b(TIMELINE_CREATE|TIMELINE_KILL|TIMELINE_RELOAD|TIMELINE_PAUSE|TIMELINE_RESTART|TIMELINE_SET|TIMELINE_GET|TIMELINE_ACTIVE|TIMELINE_DYNAMIC_ID)\\b" 432 | }, 433 | { 434 | "name": "keyword.control.netlinx", 435 | "match": "(?i)\\b(GET_LAST|GET_MASTER_BUILD|GET_UNIQUE_ID|GET_SERIAL_NUMBER|GET_SYSTEM_NUMBER|SET_SYSTEM_NUMBER|GET_DNS_LIST|SET_DNS_LIST|GET_IP_ADDRESS|SET_IP_ADDRESS|SET_VALIDATION_CODE|GET_URL_LIST|ADD_URL_ENTRY|DELETE_URL_ENTRY|RANDOM_NUMBER)\\b" 436 | }, 437 | { 438 | "name": "keyword.control.netlinx", 439 | "match": "(?i)\\b(SET_OUTDOOR_TEMPATURE|SET_OUTDOOR_TEMPERATURE)\\b" 440 | }, 441 | { 442 | "name": "keyword.control.netlinx", 443 | "match": "(?i)\\b(SET_VIRTUAL_LEVEL_COUNT|SET_VIRTUAL_CHANNEL_COUNT|SET_VIRTUAL_PORT_COUNT)\\b" 444 | }, 445 | { 446 | "name": "keyword.control.netlinx", 447 | "match": "(?i)\\b(CLKMGR_IS_NETWORK_SOURCED|CLKMGR_SET_CLK_SOURCE|CLKMGR_IS_DAYLIGHTSAVINGS_ON|CLKMGR_SET_DAYLIGHTSAVINGS_MODE|CLKMGR_GET_TIMEZONE|CLKMGR_SET_TIMEZONE|CLKMGR_GET_RESYNC_PERIOD|CLKMGR_SET_RESYNC_PERIOD|CLKMGR_GET_DAYLIGHTSAVINGS_OFFSET|CLKMGR_SET_DAYLIGHTSAVINGS_OFFSET|CLKMGR_GET_ACTIVE_TIMESERVER|CLKMGR_SET_ACTIVE_TIMESERVER|CLKMGR_GET_TIMESERVERS|CLKMGR_ADD_USERDEFINED_TIMESERVER|CLKMGR_DELETE_USERDEFINED_TIMESERVER|CLKMGR_GET_START_DAYLIGHTSAVINGS_RULE|CLKMGR_SET_START_DAYLIGHTSAVINGS_RULE|CLKMGR_GET_END_DAYLIGHTSAVINGS_RULE|CLKMGR_SET_END_DAYLIGHTSAVINGS_RULE)\\b" 448 | }, 449 | { 450 | "name": "keyword.control.netlinx", 451 | "match": "(?i)\\b(SET_LOG_LEVEL|GET_LOG_LEVEL|AMX_LOG)\\b" 452 | }, 453 | { 454 | "name": "keyword.control.netlinx", 455 | "match": "(?i)\\b(SMTP_SERVER_CONFIG_SET|SMTP_SERVER_CONFIG_GET|SMTP_SEND)\\b" 456 | }, 457 | { 458 | "name": "keyword.control.netlinx", 459 | "match": "(?i)\\b(EXP_VALUE|LOG_VALUE|LOG10_VALUE|POWER_VALUE|SQRT_VALUE)\\b" 460 | }, 461 | { 462 | "name": "keyword.control.netlinx", 463 | "match": "(?i)\\b(_WC_ENCODE_INT|_WC_DECODE_INT|_WC_INT|_WC_TO_CH_INT|_CH_TO_WC_INT|_WC_FIND_STRING_INT|_WC_LEFT_STRING_INT|_WC_LOWER_STRING_INT|_WC_MID_STRING_INT|_WC_REMOVE_STRING_INT|_WC_RIGHT_STRING_INT|_WC_UPPER_STRING_INT|_WC_COMPARE_STRING_INT|_WC_GET_BUFFER_CHAR_INT|_WC_GET_BUFFER_STRING_INT|_WC_CONCAT_STRING_INT|_WC_FILE_OPEN_INT|_WC_FILE_CLOSE_INT|_WC_FILE_READ_INT|_WC_FILE_READ_LINE_INT|_WC_FILE_WRITE_INT|_WC_FILE_WRITE_LINE_INT)\\b" 464 | }, 465 | { 466 | "name": "keyword.control.netlinx", 467 | "match": "(?i)\\b(VALIDATE_NETLINX_ACCOUNT|AUDIT_NETLINX_SESSION_EVENT|AUDIT_NETLINX_GENERIC_EVENT|VALIDATE_NETLINX_ACCOUNT_WITH_PERMISSION|AUTHENTICATE_CERTIFICATE)\\b" 468 | }, 469 | { 470 | "name": "keyword.control.netlinx", 471 | "match": "(?i)\\b(GET_AVAILABLE_FLASH_DISK_SPACE|GET_MAX_FLASH_DISK_SPACE)\\b" 472 | }, 473 | { 474 | "name": "keyword.control.netlinx", 475 | "match": "(?i)\\b(DATA_CREATE_FEED|DATA_DELETE_FEED|DATA_PUBLISH_FEED|DATA_GET_PUBLISHED_FEED|DATA_ADD_RECORD|DATA_GET_EVENT_RECORD)\\b" 476 | }, 477 | { 478 | "name": "keyword.control.netlinx", 479 | "match": "(?i)\\b(_WC_DATA_CREATE_FEED|_WC_DATA_ADD_RECORD|_WC_DATA_GET_EVENT_RECORD)\\b" 480 | }, 481 | { 482 | "name": "keyword.control.netlinx", 483 | "match": "(?i)\\b(SSH_CLIENT_CLOSE|SSH_CLIENT_OPEN|TLS_CLIENT_CLOSE|TLS_CLIENT_OPEN)\\b" 484 | } 485 | ] 486 | }, 487 | "storage_netlinx": { 488 | "comment": "NetLinx variables", 489 | "patterns": [ 490 | { 491 | "name": "meta.variable.netlinx", 492 | "comment": "Full variable or constant definition line", 493 | "match": "(?i)^\\s*\\b(CONSTANT|NON_VOLATILE|VOLATILE|PERSISTENT|LOCAL_VAR|STACK_VAR)?\\b\\s*(DEV|DEVCHAN|DEVLEV|CHAR|WIDECHAR|INTEGER|SINTEGER|LONG|SLONG|FLOAT|DOUBLE)\\b(?:[ \\[])?\\s*([\\w]+)(?:\\[[a-zA-Z0-9_]*\\])*(?:[ =\\t]+)*", 494 | "captures": { 495 | "1": { 496 | "name": "storage.modifier.netlinx" 497 | }, 498 | "2": { 499 | "name": "storage.type.intrinsic.netlinx" 500 | }, 501 | "3": { 502 | "name": "variable.other.netlinx" 503 | } 504 | } 505 | } 506 | ] 507 | }, 508 | "string_netlinx": { 509 | "comment": "Strings", 510 | "patterns": [ 511 | { 512 | "name": "string.quoted.single.netlinx", 513 | "begin": "'", 514 | "end": "'" 515 | } 516 | ] 517 | }, 518 | "support_structures": { 519 | "comment": "Custom Data Types", 520 | "patterns": [ 521 | { 522 | "name": "support.type.primitive.netlinx", 523 | "match": "(?i)\\b(STRUCTURE)\\b" 524 | }, 525 | { 526 | "name": "support.type.primitive.struct.netlinx_axi", 527 | "match": "(?i)\\b(TBUTTON|TCHANNEL|TDATA|TLEVEL|TTIMELINE|TCUSTOM|URL_STRUCT|DNS_STRUCT|IP_ADDRESS_STRUCT|DEV_INFO_STRUCT|CLKMGR_TIMEOFFSET_STRUCT|CLKMGR_TIMESERVER_STRUCT)\\b" 528 | }, 529 | { 530 | "name": "support.type.primitive.struct.netlinx_axi", 531 | "match": "(?i)\\b(DATA_FEED|DATA_FIELD|DATA_RECORD|WC_DATA_FEED|WC_DATA_FIELD|WC_DATA_RECORD|LAST_LOGIN_INFO)\\b" 532 | } 533 | ] 534 | }, 535 | "support_variables": { 536 | "comment": "Variables", 537 | "patterns": [ 538 | { 539 | "name": "variable.other.netlinx_axi", 540 | "match": "(?i)\\b(PUSH_DEVICE|PUSH_CHANNEL|PUSH_DEVCHAN|RELEASE_DEVICE|RELEASE_CHANNEL|RELEASE_DEVCHAN|MASTER_SLOT|DAY|DATE|TIME|MASTER_SN|SYSTEM_NUMBER|LDATE|BUTTON|DV_CHANNEL|DATA|LEVEL|TIMELINE|CHANNEL|CUSTOM)\\b" 541 | } 542 | ] 543 | } 544 | } 545 | } -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es6", 5 | "outDir": "out", 6 | "lib": ["es6","dom"], 7 | "sourceMap": true, 8 | "rootDir": "src" 9 | }, 10 | "include": ["src"], 11 | "exclude": ["node_modules",".vscode-test"] 12 | } 13 | --------------------------------------------------------------------------------